Page 1 of 1

How to call a running Ranorex test in a loop?

Posted: Mon May 27, 2019 10:37 am
by Joshua6
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.

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

Posted: Tue May 28, 2019 9:04 am
by Stub
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.