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

Infinite loop

1 Answer 61 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ohsha
Top achievements
Rank 1
Ohsha asked on 20 Jul 2012, 07:05 PM
Hi, 

Is there any way to have a Infinite loop in Web Test?
Would a zero in here do?
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/logical-steps/loop.aspx 

thanks

1 Answer, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 20 Jul 2012, 09:53 PM
Hello Ohsha,

May I ask what automation challenge you're trying to solve by using an infinite loop? Typically they are intentionally avoided and can often cause a computer crash.

No, a Loop step set to execute zero times will not achieve this. In fact it will simply not execute its containing steps at all. It will, however, accept a number as high as 999,999,999.

The only way to achieve this through Test Studio is with a loop in a coded step deliberately set to never exit.

All the best,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Ohsha
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Share this question
or