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

Steps skipped during second iteration

3 Answers 105 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pravin
Top achievements
Rank 1
Pravin asked on 11 Apr 2018, 12:11 PM

Hi, 

Need a little help on the issue i'm having. I have a script that is based on iteration and the flow is something like this : 

1) Launch site

2) Go to a sub site based on a url (Excel Data Driven)

3) Gets total count of objects in the page and compares that information with data in another sheet of excel.

4) Wait for 5 second

5) Coded step to close the browser.

6) Step 1 to 6 repeats for the second iteration (second sub site in Excel sheet)

7) Process repeats until all the sub site are browsed. 

During the first iteration, the scripts executes without failure. 

The issue i'm having however is, during the second iteration, step 4 and step 5 is not being executed and Test Studio skips directly to step 6. For some reason, step 4 and step 5 is skipped. 

I've attached the Test Studio Test Runner log image. As you can see, iteration 2 completes even tough step 4 and step 5 is not executed.

Many thanks in advance, 

Best Regards,

Pravin

praja@orsted.dk

 

3 Answers, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 16 Apr 2018, 11:10 AM
Hello Pravin,

Thank you for the detailed information. 

As far as I could see in the provided details the actions in point 3. of your script are being executed in a sub-test. The last executed step before the iterations is terminated seems to be a coded step. The only reason why an iteration could be terminated is a failing step. 

Having the above said, it seems that coded step executed before the Wait step is failing for some reason. Since you are making some validation in it I would advise you double check the code to find out why it fails. While debugging you could use the quick execute results to find out what is causing the failure. 

I hope this will be helpful for you! Thank you! 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Pravin
Top achievements
Rank 1
answered on 07 May 2018, 08:30 AM

Hi Elena, 

Found the issue. The issue was with one of the site. The configuration of the site was incorrect.

Thanks for advice :) 

Best Regards,

Pravin

 

 

 

0
Elena
Telerik team
answered on 07 May 2018, 09:50 AM
Hello Pravin,

Thank you for getting back to me. I am glad to know my hints were helpful! 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Pravin
Top achievements
Rank 1
Answers by
Elena
Telerik team
Pravin
Top achievements
Rank 1
Share this question
or