Two Ranorex sync

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
rotciv
Posts: 26
Joined: Mon May 12, 2014 4:25 pm

Two Ranorex sync

Post by rotciv » Thu Jul 10, 2014 8:50 am

Hello
I have a general question and hope someone can point in the right direction.

our Ranorex tests are lengthy with Application under test performing internal operations and staying inaccessible for 10-15 mins.

It is a waste to execute only one such test on the same machine so I want to run two or three Ranorex tests simultaneously.
this leads to two potential problems:
1) would object recognition work if other application is front of the one under test? I noticed once that when taskmanager was in front of my system the test failed without proper reason (some button was not found)

2) is there any good existing framework/approach allowing sharing the mouse and keyboard? ie making one ranorex test to wait while another one is using the mouse (so the first ranorex app should "lock" the mouse)?

thanks for your help and ideas

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

Re: Two Ranorex sync

Post by Support Team » Tue Jul 15, 2014 1:05 pm

Hello rotciv,

I’m afraid that it is not possible to run multiple tests at the same time at the same machine. Also, it is not possible to pause a solution in order to dynamically run actions from another solution. Maybe you can structure your tests in another way to somehow “plan” the internal processes and proceed with other steps when reaching such state. Alternatively, you could distribute your tests onto several Virtual Machines. This allows you to efficiently use your computing power.

Regards,
Robert
.
Image

JSH_QA
Posts: 56
Joined: Thu Apr 05, 2012 9:03 am

Re: Two Ranorex sync

Post by JSH_QA » Fri Aug 01, 2014 2:10 pm

Hi Robert,

If the tests are written to:

(1) use Value (e.g. inputTag.Value = String.Empty;) and PerformClick (e.g. inputTag.PerformClick() ), rather than PressKeys and Click
(2) use RxPaths that identify the specific instance of the application under test (e.g. "/form[@processname='iexplore' and @class='IEFrame' and @instance='{0}'] " )
(3) run in different folders so that there are no file access conflicts

is there anything in Ranorex (rather than the application under test) that would prevent two test runs being executed simultaneously?

I don’t have multiple tests running on the same machine (we use VMs to run tests in parallel), but have built a framework so that we can run the tests to do any of the following:

(a) Use the mouse wherever possible and the keyboard only where necessary
(b) Use keyboard wherever possible, specifically access keys where they exist
(c) Use keyboard wherever possible, specifically shortcut keys where they exist
(d) Use keyboard wherever possible, using tabbing to navigate wherever possible
(e) Use touch wherever possible
(f) Avoid input devices wherever possible (so no mouse, keyboard etc)

Whilst I don’t try what rotciv is asking, would option (f) not work for rotciv?

Regards,

John H.

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

Re: Two Ranorex sync

Post by Support Team » Tue Aug 05, 2014 3:06 pm

Hi John,

There is no internal mechanism to prevent two test runs being executed simultaneously, but as Robert wrote, we don't recommend to run tests on a machine at the same time. In general Ranorex is a UIAutomation Tool and it is also not possible to interact with two applications at the same time as a normal user.
You can try to replace all mouse actions with other actions, but I think you will also get problems, for example with the focus.
Please understand the we cannot provide support in for this kind of issues because it is almost impossible to find the reason for a problem if something doesn't work.

Regards,
Bernhard
.
Image

rotciv
Posts: 26
Joined: Mon May 12, 2014 4:25 pm

Re: Two Ranorex sync

Post by rotciv » Thu Aug 28, 2014 9:49 am

thank you for your help and ideas