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

data driven test run - iterations without using inherent parent data

3 Answers 84 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Doga Ercan
Top achievements
Rank 1
Doga Ercan asked on 12 Sep 2011, 10:00 AM
Hi,

Let's say I have 2 test steps, step1 and step2. step1 is bound to data1 and step2 is bound to data2 and each data source has 3 rows.

Is it possible to use its own data file for each step and run in that way:
step1-data1 row1
step2-data2 row1
step1-data1 row2
step2-data2 row2
step1-data1 row3
step2-data2 row3

I have known how to use inherit parent data feature but I have too many columns for data that's why i don't want to merge them. Without using inherit parent data feature now it works like:
step1-data1 row1
step1-data1 row2
step1-data1 row3
step2-data2 row1
step1-data1 row1
step1-data1 row2
step1-data1 row3
step2-data2 row2
step1-data1 row1
step1-data1 row2
step1-data1 row3
step2-data2 row3

Thanks a lot

Ercan

3 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 13 Sep 2011, 04:28 PM
Hi Doga,
    why not simply have a data source with two separate columns:

    col1 | col2 |
    ------|--------|
1|  a    |     x    |
2|  b    |     y    |
3|  c    |      z   |
          
Now you can bind the first step to the first column ( $(col1) ) and the second step to the second column ( $(col2).  This will execute like so:
step1- col1 row1
step2- col2 row1
step1- col1 row2
step2- col2 row2
step1- col1 row3
step2- col2 row3
etc..


Best wishes,
Stoich
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Doga Ercan
Top achievements
Rank 1
answered on 14 Sep 2011, 08:22 AM
Hi again Stoil,

Yes, you are right that will solve my problem but as i said in my first post i don't prefer to merge two data since those have too many columns. Anyway I wanted to be sure whether it is possible.

Thanks for your attention

Ercan
0
Accepted
Stoich
Telerik team
answered on 14 Sep 2011, 02:10 PM
Hello Doga,
   I'm sorry for the misunderstanding. It's doable but not out of the box. The require custom solution is not going to be very practical - I would recommend against trying to implement it.

Regards,
Stoich
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Doga Ercan
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Doga Ercan
Top achievements
Rank 1
Share this question
or