Winforms DataGrid Problems

1 Answer 77 Views
Test Execution
Fernanda
Top achievements
Rank 1
Fernanda asked on 13 Feb 2023, 11:06 PM

We are facing some issues, some of them are: in our interface, there is a DataGrid with multiple rows. When this DataGrid passes a certain number "x" of rows (we haven't figured out the number yet), the TestStudio takes a long time to become "ready to record" and frequently identifies the wrong control. Another issue: Telerik recognizes controls that do not match the parameters inserted in the script as correct. For example, a "Quantity" field recognized in a "X" field as correct.

What is the criteria for the fields? What could be the reason for this failure to be recorded as correct in the script?

 

Thanks!

1 Answer, 1 is accepted

Sort by
0
Tsvetko
Telerik team
answered on 14 Feb 2023, 11:36 AM

Hi Fernanda,

I am sorry to hear you are experiencing issues with Desktop testing. 

Such a behavior usually is caused by timing issues or controls that do not implement UIAutomation peers properly. Test Studio supports several algorithms for locating elements that can work around such issues. In order to find the algorithm that will work best with the application under test, you can try the different settings Test Studio provides for generating find expressions. Please note that after changing the such a setting, you need to re-record the steps. 

You can find information about available options here. Having in mind the situation you describe I would recommend choosing xPath since it is the fastest.

The setting can be found in Project -> Settings -> Smart Find Logic -> Desktop if you are using standalone Test Studio or you can use this article to locate the dialog in Test Studio Dev Edition. The dialog looks like this:

 

I hope this will be of further help for you. Don't hesitate to follow up in case you have any additional questions.

Regards,

Tsvetko Progress Telerik

Virtual Classroom is the free self-paced technical training portal that gets you up to speed with Telerik and Kendo UI products including Telerik Test Studio! Check it out at https://learn.telerik.com/.
Tags
Test Execution
Asked by
Fernanda
Top achievements
Rank 1
Answers by
Tsvetko
Telerik team
Share this question
or