How important is mouse pointer

Ask general questions here.
moses.rozario
Posts: 14
Joined: Wed May 20, 2015 11:06 am

How important is mouse pointer

Post by moses.rozario » Thu May 21, 2015 7:08 am

Hi Guys,

I was curious to know how important is mouse pointer while recording? Because I had noticed if your mouse moves from it's place while playing recorded script, script fails. I might be wrong but I did noticed it couple of times.

Fergal
Certified Professional
Certified Professional
Posts: 455
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Re: How important is mouse pointer

Post by Fergal » Thu May 21, 2015 10:39 am

When running tests, Ranorex takes control of your cursor, so it is best not to use your mouse when tests are running.

When recording, by default Ranorex does not record mouse movements, hence you should make clicks on menu items etc. If you wish to record mouse movement, use the Recorder Hotkeys - you can view helpful info on how to use Recorder Hotkeys towards the bottom of this page.

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: How important is mouse pointer

Post by krstcs » Thu May 21, 2015 2:30 pm

One thing I have done is to create modules that disable the mouse/keyboard at the start of the test and then re-enable them at the end. This keeps you from having unwanted mouse and keyboard input during the test run. I usually put them in the [SETUP] and [TEARDOWN] sections of the test suite.

Note that the [{Pause}] key still works to stop the test, and when the test completes the mouse/keyboard control is returned automatically.

Just add the following line(s) to each module, as needed:

Code: Select all

//at start of test
Keyboard.Enabled = false;
Mouse.Enabled = false;

//at end of test
Keyboard.Enabled = true;
Mouse.Enabled = true;
Shortcuts usually aren't...

moses.rozario
Posts: 14
Joined: Wed May 20, 2015 11:06 am

Re: How important is mouse pointer

Post by moses.rozario » Fri May 22, 2015 7:25 am

Thanks krstcs. I will try these out.