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

Loop & Verify statement

3 Answers 90 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 26 Apr 2012, 01:17 PM
Hi All,

I have added Loop(say of count 5) and under that loop I have added Verify statement(which is my first step) which goes and verifies some text on page.And for this Verify statement ContinueOnFailure is set to true.
Now what I want is, in that loop if first Verify statement is failing it should go and execute next Verify statement so that depending upon some text I can take corrective action.But what is happening is if first Verify statement fails it is going to next iteration of Loop and then loop fails.
please help

3 Answers, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 26 Apr 2012, 04:57 PM
Hello John,

You'll need to set the Loop step itself to Continue On Failure = True. That way, if a step within the Loop fails, the Loop continues to its next iteration as desired.

Kind regards,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
John
Top achievements
Rank 1
answered on 27 Apr 2012, 05:23 AM
Anthony,

I dont want to go to next iteration of the loop instead I want to go to next Verify statement in the loop.
0
Anthony
Telerik team
answered on 30 Apr 2012, 06:21 PM
Hello John,

In that case you'll set the Loop step itself and the first Verify in the loop to Continue On Failure = True.

Regards,
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
John
Top achievements
Rank 1
Answers by
Anthony
Telerik team
John
Top achievements
Rank 1
Share this question
or