How to repeat a code snippet several times

Best practices, code snippets for common functionality, examples, and guidelines.
Joao Marcos
Posts: 1
Joined: Thu Sep 12, 2019 2:25 pm

How to repeat a code snippet several times

Post by Joao Marcos » Thu Sep 12, 2019 2:44 pm

Good morning everyone, all right? I need to know how to run my test several times on Ranorex. Ranorex currently runs my test only once, but I would like the same test to be replayed more than once because I want to do a stress test on my app.
Thanks in advance

User avatar
Support Team
Site Admin
Site Admin
Posts: 11963
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: How to repeat a code snippet several times

Post by Support Team » Thu Sep 12, 2019 10:07 pm

Hi Joao,

To do this, set the test containers "Iteration" property to the desired repeat count.
1.png
1.png (23.46 KiB) Viewed 22 times

I hope this helps!

Cheers,
Ned
.
Image