This is a migrated thread and some comments may be shown as answers.

Validate from Data Source?

1 Answer 83 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 30 Apr 2013, 07:18 PM
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

1 Answer, 1 is accepted

Sort by
0
Byron
Telerik team
answered on 03 May 2013, 07:01 PM
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
Tags
General Discussions
Asked by
Bob
Top achievements
Rank 1
Answers by
Byron
Telerik team
Share this question
or