How to run a test in a loop

Class library usage, coding and language questions.
Posts: 1
Joined: Mon Jan 16, 2012 6:05 pm

How to run a test in a loop

Post by mpandya » Mon Jan 16, 2012 6:12 pm

I have some tests that i want to run in a loop so that i can execute it for hours/days.

Q1. How to put tests in a loop to execute?
Q2. Can i specify time (hours, days) or number of iterations? (via tool or inside code)


User avatar
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 5:46 pm
Location: Arizona, USA

Re: How to run a test in a loop

Post by Ciege » Mon Jan 16, 2012 6:55 pm

Are you using record/playback functionality or writing your own code?
If you are writing your own code you could easily write a wrapper that calls each of your separate test cases however many time you want. Or even just put a while loop into your code.

If using record playback, check out this thread:
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!