How to use data driven values in Conditions

2 posts, 0 answers
  1. Abhishek
    Abhishek avatar
    1 posts
    Member since:
    Sep 2019

    Posted 05 Feb Link to this post

    I want to use data driven values in 'If' statement, something like IF(Data["isDuplicate"].Equals(true)) then execute some steps.
  2. Plamen Mitrev
    Plamen Mitrev avatar
    264 posts

    Posted 06 Feb Link to this post

    Hello Abhishek,

    The conditional "if" step that you mentioned is a more complex scenario and can be achieved in a coded step. I will be happy to share more details about the steps below.

    • You need to add a coded step to your test, where you want to have the condition.
    • Create your own "if" condition and compare the data as necessary. You can use the following code to get the data from a certain column by the column's name (see point 22 in this article).

    I hope the above details will help you automate the test scenario. Please do not hesitate to contact us again, if you need further assistance.

    Plamen Mitrev
    Progress Telerik

    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top