Loop, there is a way to create an infinite loop?

3 posts, 0 answers
  1. karla
    karla avatar
    23 posts
    Member since:
    Apr 2011

    Posted 26 Jul 2011 Link to this post


    Hi,

    I was using the logical "loop" button. But there just could be defined a count of iterations on the steps, there is a way I can define a loop infinite?

    Thanks
  2. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 26 Jul 2011 Link to this post

    Hello Karla,

    Yes, you can use a While...Loop and ensure the verification it is based on is never met.

    In the example on the page linked above, a random number is generated between 1 and 10. A new number is repeatedly generated until the Result equals 4.

    To alter this scenario to be infinite, change the While Loop's verification to a number higher than 10. So, while the Result's InnerText does NotContain 11, click the Generate button. Since the number will never be 11, the loop is infinitely executed.

    All the best,
    Anthony
    the Telerik team
    Check out the Test Studio roadmap to find out more about the new performance testing functionality coming in our R2 2011 release this September!

    Have you looked at the new Online User Guide for Telerik Test Studio?
  3. karla
    karla avatar
    23 posts
    Member since:
    Apr 2011

    Posted 26 Jul 2011 Link to this post


    Thank you for the information, I will take a look..
Back to Top