Page 1 of 1

Playback Repeat limit?

Posted: Mon Nov 21, 2011 6:22 pm
by itchy20
Is there a limit to the number of repeats possible? I want a test to run in a loop for several days if possible. I put in a repeat figure of 9999999999999999999999 which was accepted, but it only ran the test once. If I reduce the figure to 255 then it works in a repeating loop but will only give me 12 hours of test rather than several days. So - is there a limit? and what is it? and is there any way around it? Can I specify to run the test in a loop for x amount of days or hours?

Re: Playback Repeat limit?

Posted: Mon Nov 21, 2011 6:26 pm
by Ciege
Are you doing this in code or in the IDE? Which IDE are you using?

You can code this up pretty easily to loop while hours or days is less than X.

Re: Playback Repeat limit?

Posted: Mon Nov 21, 2011 6:47 pm
by Support Team
itchy20 wrote: I put in a repeat figure of 9999999999999999999999
Just use a number that fits into an integer, i.e. a number smaller than 2147483647, then it should work within the Ranorex Recorder as well.

Regards,
Alex
Ranorex Team

Re: Playback Repeat limit?

Posted: Mon Nov 21, 2011 6:55 pm
by sdaly
As Ceige says if you are doing it in code then it is easy, even easier if using NUnit, just decorate with the Repeat attribute ;) If using the Studio, could you possibly just write a batch file with a loop to start through command line?

Re: Playback Repeat limit?

Posted: Tue Nov 22, 2011 10:23 am
by itchy20
Thanks guys, some good answers, for now I will stick to using a number smaller than 2147483647 in recorder, but for sure in the future, when I get a bit more time, the while less than x days or hours in code will be a winner.