Nested data driven tests with conditional data sets

2 posts, 0 answers
  1. Andrew
    Andrew avatar
    3 posts
    Member since:
    Mar 2013

    Posted 02 May 2014 Link to this post

    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.


  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 08 May 2014 Link to this post

    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!
Back to Top