Forum Discussion

jmac_816's avatar
jmac_816
Occasional Contributor
14 years ago

Run Test Batches Multiple Times

I have a sub group batch of tests (ex. Test1 and Test2). What I want to do is to run this sub group batch of tests multiple times. For example, 5 times. It  would run Test1 first then Test2 and repeat this process for 4 more times. How do we do this in TestComplete 8?



Thanks,

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    Look into using Test Items (http://smartbear.com/support/viewarticle/11001/) for this organization.



    What I would do is first create a Test Item called "Batch" and set the count to that to 5.

    I would then create two child test items under Batch for Test1 and Test2.



    When you run Batch, then, it will do what you said, execute first test1, then test2, and iterate that 4 more times.



    You could also do it specifically in code by writing a for loop to loop through test1 and test2 the specified number of times.