Validate from Data Source?

2 posts, 0 answers
  1. Bob
    Bob avatar
    39 posts
    Member since:
    Apr 2013

    Posted 30 Apr 2013 Link to this post

    Greetings,

    I want to create the following test.

    IF (Spreadsheet Row 3 = Yes)
    THEN
    RUN TEST
    ELSE
    DO NOT RUN TEST

    IF (Spreadsheet Row 4 = Yes)
    THEN
    RUN TEST
    ELSE
    DO NOT RUN TEST

    I know I can insert the data into a field, then validate the field, but it seems like a few too many steps and inputs may not always be available on the page I'm testing.

    Edit: I could also iterate through all the variables at the beginning of a test on a page where I know there's an input (or just use Google) and get them inside variables there.

    Both options just seem convoluted and time consuming (time to place in input and extract) considering the data is right there in the data bind.

    Hope I'm not just missing a basic feature here! 

    Regards,
    Robert
  2. Byron
    Admin
    Byron avatar
    184 posts

    Posted 03 May 2013 Link to this post

    Hi Robert,

    There is currently no support for directly verifying the contents of a data source, and hence no way to condition non-coded logical steps on their values. You can view the feature request for this feature in our feedback portal. There, you can follow the status of this feature request, as well as vote on the feature, increasing its priority in our development roadmap.

    If you implemented such a condition in a coded step, all steps that logical block called would also need to be in code. However, we generally recommend creating separate tests for each test case. If there are multiple tests for each test case, you can generate a test list that reflects each set of tests for that case. This is a matter of testing philosophy: each test reflects a specific case, rather than a variety of cases that turn on the state of the target application. This can ease maintenance in the scenario where the underlying target application changes. Please let us know if we can advise you further.

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