Is there a way to end the current iteration in the middle of a test and go to the next iteration?
if x == false
//end iteration (and automatically begin the next)
if x == true
//continue on with remaining test steps
3 Answers, 1 is accepted
answered on 21 Nov 2012, 11:46 PM
Do you care whether or not that iteration is marked PASS or FAIL? You could always just throw an exception in a coded step to force that iteration to stop. But this will mark that iteration as failed in the process:
if (some condition is true)
throw new Exception("Aborting due to condition X");
In the above example the iteration will only abort if the condition being tested is true. Else it will continue on to the next test step.
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.