Page 1 of 1

TestRun

Posted: Fri Jan 06, 2012 8:52 pm
by omayer
How to run test cases multiple times from test run

Re: TestRun

Posted: Mon Jan 09, 2012 2:46 pm
by Support Team
Hi,

Please explain based on your attached image in more detail what you are trying to do.

Regards,
Martin
Ranorex Support Team

Re: TestRun

Posted: Mon Jan 09, 2012 2:59 pm
by omayer
How to repeat the test run w/out manually right click > Run Test Suite
- I am trying to run multiple test cases around 5 times in respectively w/out manually rightclick > Run Test Suite

Re: TestRun

Posted: Tue Jan 10, 2012 11:22 am
by Support Team
Hi,

If you want to run a test case multiple times you can add a "SimpleDataConnector" with one variable, for instance "iteration", as their values you can enter "1,2,3,...". This has the advantage that these iterations are logged (a new structured report file will be created), so you will see which iterations where executed.
Or you can use a batch file with a for to call the specific test case multiple times, but you will get a new report for each iteration.

Regards,
Markus
Ranorex Support Team

Re: TestRun

Posted: Wed Jan 11, 2012 2:53 pm
by omayer
is it possible to continue running the test set say 10 times
TestRun.jpg

Re: TestRun

Posted: Wed Jan 11, 2012 3:10 pm
by Support Team
omayer wrote:is it possible to continue running the test set say 10 times
Yes, as Markus mentioned, you can either use a simple data table with 10 rows, or write a batch file which start your Test Suite executable 10 times.

Regards
Tobias
Ranorex Support Team

Re: TestRun

Posted: Wed Jan 11, 2012 3:23 pm
by omayer
I am trying to follow the steps but no success,(http://www.ranorex.com/support/user-gui ... table.html), would you please refer me the doc for how to

Re: TestRun

Posted: Wed Jan 11, 2012 4:46 pm
by Support Team
Hi,

you simply have to add a "Simple Data Connector" holding 10 rows to your Test Case and start your Test Suite.
This will make your Test Case run for 10 times.

Regards,
Tobias
Ranorex Support Team

Re: TestRun

Posted: Wed Jan 11, 2012 6:34 pm
by omayer
if i select the the folder then Data source gets inactive
TestRun.jpg

Re: TestRun

Posted: Thu Jan 12, 2012 8:50 am
by Support Team
Hi,

You can only select a data source for a TestCase.
In your screenshot, you are trying to select datasource for a folder. That is not possible.

Regards,
Martin
Ranorex Support Team

Re: TestRun

Posted: Thu Jan 12, 2012 2:05 pm
by omayer
Thank you Support Team, I am trying to run 4 test cases one after another like test1, then test2 ...after finished test4 i want to repeat the same test cases w/out manual intervention, is it doable

Re: TestRun

Posted: Thu Jan 12, 2012 3:18 pm
by Support Team
Hi,

Yes this is possible, just take a look at our VIPTestSuite project (Studio start page -> Samples), there you can see that it is possible to nest Test Cases.
In your case you would need such a Test Case structure:

-MainTestCase
--TestCase 1
---Recordings ...
--TestCase 2
---Recordings ...
--TestCase 3
---Recordings ...
--TestCase 4
---Recordings ...

The only thing you have to consider is that the MainTestCase needs a DataConnector with one variable to repeat the lower test cases, as described in the previous posts.

Regards,
Markus
Ranorex Support Team

Re: TestRun

Posted: Wed Feb 01, 2012 9:26 pm
by omayer
Thank you Markus, its working with multiple iteration, steps:

1. TestSuite > Manage Data sources > Name = RepeatExecution > OK
2. TestSuite at root level > right click > properties > Global Parameters > Name = repeat , Value = 1,2 > ok
3. TestSuite at individual test case level > right click > properties > Data Source > select datasource > enter row 1 = 1, row 2 = 2 > OK
4. TestSuite at individual test case level > right click > Error behavior > Continue with Iteration

Re: TestRun

Posted: Wed Feb 01, 2012 10:56 pm
by jwenners
I created a test case but ranorex pops up with an evaluation notice which is causing myt tests to fail.
Is there anyway to fix this?
I'm going to give this tool another hour of my time and then move on to evaluating other testing tools.

Re: TestRun

Posted: Wed Feb 01, 2012 11:01 pm
by Ciege
Since you are in evaluation mode you need to manually close the evaluation dialog that appears.