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
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.
Boyan Boev
the Telerik team
Vote now
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
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.
Boyan Boev
the Telerik team
Vote now
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
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,
the Telerik team
Test Studio Trainings
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
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.
Boyan Boev
the Telerik team
Test Studio Trainings