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

Can we set multiple data sources to a single test script or case??

3 Answers 67 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
wish
Top achievements
Rank 1
wish asked on 26 Aug 2011, 05:07 AM
Hi Cody/plamen,

It seems that it is not possible to set multiple datasources to a single test script ot case..

let me explain you my scenario.....

initially i binded a xls file for some search criteria with various inputs...
for example...

designed a xls file like gender,age,location columns....with different set values for each column in multiple rows.....
i binded it to a test script or case.......then for each execution of row in xls file.....i have a req like.....connecting to db fetching rows count for the same criteria and confirming the test script passed or failed.....

so i want bind a datasource like connecting db to this same test script....


do we have chance of like multiple binding or any suggests for my criteria???

thanks in advance....

Thanks.,
Hari

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 26 Aug 2011, 12:00 PM
Hi Wish,

If I understand correctly your scenario, our "test as step" feature should help you to bind different data sources to your test.
 
For example:
Bind your parent test to the main data source.
Step 1. Do some iterations -> for each iteration(row) from this step, Test Studio will execute next step, which is a "test as step" with different data source.
Step 2. Create "test as step" and bind it to a different data source -> this data source will keep the "rows for the same criteria" that you mentioned.

In this way the child test will run through all the rows of data it is bound to independent of what the parent test does.You can add as many "test as step" as you want and every one of them can be bound to different data source.

You can also try using dynamic data-binding as seen in this KB article

Hope this helps!

Regards,
Plamen
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
0
wish
Top achievements
Rank 1
answered on 26 Aug 2011, 05:08 PM
Thanks Plamen...for immediate response..

I will try now inform you once done....
0
Asare
Top achievements
Rank 1
answered on 09 Oct 2012, 09:13 AM
Assuming that you are not looping through one data source and within that loop, looping through another data source.

You could break your tests multiple tests

For each test attach a data source
perform the test steps

Create one big test and add each sub-test (small test) as a test step within the large test.

You can use as many data sources as you want without coding.
Tags
General Discussions
Asked by
wish
Top achievements
Rank 1
Answers by
Plamen
Telerik team
wish
Top achievements
Rank 1
Asare
Top achievements
Rank 1
Share this question
or