How to call a running Ranorex test in a loop?

Ask general questions here.
Posts: 1
Joined: Wed May 01, 2019 9:45 am

How to call a running Ranorex test in a loop?

Post by Joshua6 » Mon May 27, 2019 10:37 am

I have recorded & partly written a test for a Website, which works for a specific browser type. The user can modify a class field of the so-called EBrowserType type, which is an enum I have created. It contains all browser types that Ranorex can handle.

Now, I was asked to make a loop over the whole test, where all the browser types are called. I run into problems, as the existing test is a group of recordings, where the user clicked at some point into a text field of the opened browser of the requested browser type. This seems to be no more possible in a loop, as the code itself creates the browser & closes it after that tutuapp apk.

In the original code, there is a SETUP part that openes the browser, and a recording that follows.
Last edited by Joshua6 on Tue May 28, 2019 11:43 am, edited 1 time in total.

User avatar
Posts: 439
Joined: Fri Jul 15, 2016 1:35 pm

Re: How to call a running Ranorex test in a loop?

Post by Stub » Tue May 28, 2019 9:04 am

I often use datasources to execute a test in a loop, providing different input data each time. I can use this input data to drive the test and have it perform slightly different actions. This could be a series of values that indicate which browser to invoke, perhaps e.g. to modify your "class field of the so-called EBrowserType type" maybe.