Loop & Verify statement

4 posts, 0 answers
  1. John
    John avatar
    13 posts
    Member since:
    Apr 2012

    Posted 26 Apr 2012 Link to this post

    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
  2. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 26 Apr 2012 Link to this post

    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
  3. John
    John avatar
    13 posts
    Member since:
    Apr 2012

    Posted 27 Apr 2012 Link to this post

    Anthony,

    I dont want to go to next iteration of the loop instead I want to go to next Verify statement in the loop.
  4. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 30 Apr 2012 Link to this post

    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
Back to Top