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

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

2 Answers 122 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
karla
Top achievements
Rank 1
karla asked on 26 Jul 2011, 09:26 PM

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 Answers, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 26 Jul 2011, 09:57 PM
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?
0
karla
Top achievements
Rank 1
answered on 26 Jul 2011, 11:41 PM

Thank you for the information, I will take a look..
Tags
General Discussions
Asked by
karla
Top achievements
Rank 1
Answers by
Anthony
Telerik team
karla
Top achievements
Rank 1
Share this question
or