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

Nested data driven tests with conditional data sets

1 Answer 80 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 02 May 2014, 09:41 PM
My question is about nested data-driven tests. I have a testing scenario that involves using a data set that iterates a test where each iteration will have different sets of data to iterate through in turn.  I’ve gotten the tests to run, but with some unexpected behavior.  The middle test will run more iterations than there are entries in the data, and only the first set of data is used (repeatedly) in the inner test.  Is there some way to do this that I’m missing?  Would I be able to accomplish this using if…else in the inner test?  Thanks.

See attached doc for details.


1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 08 May 2014, 06:52 AM
Hi Andrew,

Thank you for contacting us. 

Here is how it works. If you bind the outer test to a data source with 3 rows and at the same time you bind the nested test to a data source with 2 rows it will execute as follows:

On the first iteration of the outer test the middle test will be executed 2 times. On the second iteration of outer test the middle test will be executed again 2 times, the same will happen on the 3rd iteration.

With that in mind, please give us more detailed information what exactly do you want to achieve.

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Andrew
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or