How to use if else condition code step.

3 posts, 0 answers
  1. Vitaliy
    Vitaliy avatar
    20 posts
    Member since:
    Jul 2012

    Posted 11 Aug 2015 Link to this post

    How to use "My step for condition" in "if else" condition code step?

    http://screencast.com/t/YtKRQ94jl8h

  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 12 Aug 2015 Link to this post

    Hi Vitaliy,

    I am sorry but that's not possible. Our IF ELSE blocks can only use another one of our non-coded verification steps as the IF condition. Further, our non-coded verification steps can only verify some property of some UI element present in the application (or verify an element is no longer present).

    To achieve the same effect requires you to implement the entire IF ELSE block in a coded step. One thing you can do in a coded step is call another test using our Test-as-step feature using code like this:

    this.ExecuteTest("Subtest.tstest");

    This way you don't have to convert all your steps into code. Instead put the contents of the IF and/or ELSE block into a separate test then call it as a sub-test.


    Regards,
    Cody
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  3. Vitaliy
    Vitaliy avatar
    20 posts
    Member since:
    Jul 2012

    Posted 13 Aug 2015 in reply to Cody Link to this post

    Hi Cody,

    Okay, 
    Thanks for your reply !

Back to Top