Steps skipped during second iteration

4 posts, 0 answers
  1. Pravin
    Pravin avatar
    22 posts
    Member since:
    Dec 2016

    Posted 11 Apr Link to this post

    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

     

  2. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    934 posts

    Posted 16 Apr Link to this post

    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!
  3. Pravin
    Pravin avatar
    22 posts
    Member since:
    Dec 2016

    Posted 07 May in reply to Elena Tsvetkova Link to this post

    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

     

     

     

  4. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    934 posts

    Posted 07 May Link to this post

    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!
Back to Top