I am facing issue when i run tests in the test list. same piece of code is running successfully in one test but it is failing on other tests.

1 Answer 95 Views
WPF Testing
Satyavathi
Top achievements
Rank 1
Satyavathi asked on 25 May 2022, 05:26 AM

I am using WPF application and facing issue when i run tests in the test list.
If I run the tests individually, the tests are running successfully and result is pass.
when I add them in the testlist and run, it is failing particularly on one step on exporting the audit report.


In our application, there is an option to export Audit report.
When i click export audit report, it opens Report viewer window, in that there will be a save dropdown button. Clicking on save button it give 2 options to select CSV or PDF. the teststudio tool is failing to open the save button dropdown.

I am using this code in the multiple tests. same piece of code is running successfully in one test but it is failing on other tests.

I have attached Screenshot and Test log.

 

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 26 May 2022, 11:00 AM

Hello Satyavathi,

Thanks for sharing details on the issue you encounter. 

Since these steps fail only for some of the test runs, most probably the occurrence is related to lack of synchronization between the actions in the test and the time needed for the application to proceed these actions. The control to handle is a dropdown so it requires some time to render the items. This could be even part of the second, but the automated tests are really fast as well. 

So, I will recommend to insert small execution delay steps between opening the dropdown and selecting the PDF option from it. You can try with the default 250 msec and try to decrease it gradually until you identify the timeout which works best for the scenario. 

I hope this information will be useful for you. Thank you for your cooperation once again. 

Regards,
Elena
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Test Studio course! Check it out at https://learn.telerik.com/.
Tags
WPF Testing
Asked by
Satyavathi
Top achievements
Rank 1
Answers by
Elena
Telerik team
Share this question
or