Use step pass/fail as if condition

4 posts, 0 answers
  1. Tory
    Tory avatar
    6 posts
    Member since:
    Sep 2012

    Posted 27 Mar 2013 Link to this post

    Is there any way to use the pass/fail result of a step as the condition for an if/else?
  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 01 Apr 2013 Link to this post

    Hi Tory,

    You can associate a simple verification step with an IF statement. Depends on the result of the verification Test Studio will execute the IF or Else branch.

    Please check out this article for detailed information.

    Hope this helps.
     
    All the best,
    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Tory
    Tory avatar
    6 posts
    Member since:
    Sep 2012

    Posted 01 Apr 2013 Link to this post

    Thank you for your response, that wasn't what I asked though.

    Do you mean to say that I cannot use the pass/fail result as the condition for an if statement?
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 01 Apr 2013 Link to this post

    Hi Tory,

    You can use the result of the verification step as the condition for an if statement.

    If the verification passes Test Studio will execute IF branch. If it fails Test Studio will execute else branch.

    Here is a video demonstration.

    If I am missing something please give us more detailed information about your scenario.

    Regards,
    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top