Forum Discussion

fernandez12's avatar
fernandez12
New Contributor
11 years ago

Data Driven loop on Project Test Items

We have a Data Driven Test script that is working which is based on a while loop included in a Main() function (very similar to what is stated in the Data-Driven script Tutorial - article/26889).  For this test to work we have a single Project Test Item pointing to Main().  



However, we would like to split our case in several Test Items: 1. StartTest(), 2. RunTest(), 3. FinishTest() so that if RunTest() fails the test could continue to FinishTest() and close the tested application (and eventually continue with the Data-Driven loop).  



Do you have a suggestion to do Data-Driven loop over Test Items so we can effectively split the test case in various Test Items ?

1 Reply

  • smarshall's avatar
    smarshall
    Occasional Contributor
    Create 3 subprojects - Start, Run and Finish within a Single Project and that will accomplish your goal.