While loop doesnt work

4 posts, 0 answers
  1. Igor
    Igor avatar
    1 posts
    Member since:
    Jul 2014

    Posted 16 Aug 2014 Link to this post


    I need help with while loop -my test case contains several steps as part of while loop,  I want to check status of one element and repeat steps inside loop as long as element has specified status, it jumps into loop first time but after that it crashes even that status of element has not been changed. I tried almost everything but wihout success ..

    so this loop is useless because it doesnt repeat steps inside it in case of true condition I dont know where is the problem,  i am aware that main point here is that element in verification condition must be available at the end of the loop (i am verifying this by adding same verification at the end of the loop what pasess of course), i tried also build custom element and use it as verify condition in form of ExistNot but issue persists..    

    thanks for help
  2. Cody
    Cody avatar
    3354 posts

    Posted 20 Aug 2014 Link to this post

    Hi Igor,

    When you state "but after that it crashes" do you mean the test fails and stops, or do you mean Test Studio itself crashes? If you mean the test fails, please go to Step Failure Details, find and click Export then attach the generated .zip file for us to analyze. It contains valuable information we need to start diagnosing the cause of a test failure.

    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  3. Michele
    Michele avatar
    1 posts
    Member since:
    Aug 2016

    Posted 02 Aug 2016 in reply to Cody Link to this post

    I am experiencing a similar scenario that was posted earlier. I have my While loop and it works on the first go, but then it moves to the next step just like it is an IF statement. So it is not looping. Is there a trick that I am missing? 
  4. Boyan Boev
    Boyan Boev avatar
    1072 posts

    Posted 05 Aug 2016 Link to this post

    Hello Michele,

    In order to assist you best we need more detailed information on your scenario. 

    1. Send us the execution log of the test.

    2. Send us your test so we can have a better picture what you are trying to achieve.

    3. Are you able to grant us a direct access to your application so we can debug the issue?

    Hope to hear from you soon.

    Boyan Boev
    Telerik by Progress
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top