This is a migrated thread and some comments may be shown as answers.

gridviewrow on replay a test allways show the first row

7 Answers 117 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Simona
Top achievements
Rank 1
Simona asked on 21 Nov 2012, 01:31 PM

Hi,

I have some issue with recording some steps in test studio.I am a beginer in test studio. I have a wpf application. On its interface I have a zone with properties for controls I use. This list is displayed into a radgridview. When select the first cell from each row all the step are recorded, but when refer to the second cell on each row(this cell contain radnumericupdown) then the step is recorded but when replay the test this step fails because allways show the dates from first row.

Any idea why?

When I looked  in "Find element" on XamlPath I found this:
/gridviewvirtualizingpanel[name=PART_GridViewVirtualizingPanel]
/gridviewgrouprow[2]
/grid[name=PART_GroupExpanderGrid]
/border[name=Content]
/stackpanel[0]
/gridviewvirtualizingpanel[name=PART_GridViewVirtualizingPanel]
/gridviewrow[automationid=Row_-1]

Thank you in advance.

 

Regards,

Simona

7 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 22 Nov 2012, 02:34 PM
Hi Simona,

Unfortunately I was not able to reproduce your issue. I recorded two short videos to show. The first one is with RadGridView and the second with RadNumericUpDown. Please ensure that you are verifying the entire RadNumericUpDown as in the attached screenshot.

In order to help you best please record a short video demonstrating the issue (Jing is a great piece of software for this) or send us your project and give us an access for further investigations. 

Thank you for your cooperation.

All the best,
Boyan Boev
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
0
Simona
Top achievements
Rank 1
answered on 27 Nov 2012, 07:56 AM
Hi Boyan,

I've attached a picture which should explain my problem better.
It is possible the reason be that - controls have no automationid?

Thanks,
Best regards,
Simona
0
Boyan Boev
Telerik team
answered on 27 Nov 2012, 10:38 AM
Hi Simona,

I am still unable to reproduce your issue. An option you can try is to change your find logic. Make it more specific, use more finding rules. Try to use TagIndex find rule in the find logic - see the attached screenshot. Please read more about Find Element here.

If the issue persists I recommend to send us your project with access to the application or please record a short video to show us how exactly you are recording the test and reproducing the issue.

Thank you for your cooperation.

All the best,
Boyan Boev
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
0
Simona
Top achievements
Rank 1
answered on 28 Nov 2012, 09:10 AM
Hi Boyan,

 I've used find logic but on tagIndex i have radnumericupdown:0 and I need to be radnumericupdown:1.
It is ok to change the id (number) manually or should be autogenerate when run application?

Thanks,
Best Regards,
Simona
0
Boyan Boev
Telerik team
answered on 28 Nov 2012, 11:16 AM
Hi Simona,

The ID should be generated automatically if the test step is recorded correctly, however yes, you can change the ID manually.You can edit these settings by typing in new properties, selecting a new modifier in the drop-down menu, or changing the values. Click Validate (see atached screen shot) to confirm whether the element can be found using the current Find Settings.

Note that if you change the ID to locate the next element, you should change also the Name attribute in the find logic if you are using it. The next element has a different name probably. Let's try to use XamlTag and TagIndex or only TagIndex in the find logic (see the second screen shot).

Regards,

Boyan Boev
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Simona
Top achievements
Rank 1
answered on 28 Nov 2012, 01:34 PM
Hi Boyan,

Thanks for your help.
If I change manually the id - the test doesn't fail any longer.
For the moment is solving my issue but it still has to be a way to automatically generate it.

Best Regards,
Simona
0
Boyan Boev
Telerik team
answered on 29 Nov 2012, 03:03 PM
Hi Simona,

I am happy to hear you have solved the problem.

Yes, it should be generated automatically, however I cannot say why it is not without a direct access to your application and test project. You can record a short video to show me the recording process of the test and its subsequent execution. Jing is a great piece of software for this.

Kind regards,
Boyan Boev
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Simona
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Simona
Top achievements
Rank 1
Share this question
or