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.
How important is mouse pointer
-
- Certified Professional
- Posts: 455
- Joined: Tue Feb 18, 2014 2:14 pm
- Location: Co Louth, Ireland
- Contact:
Re: How important is mouse pointer
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.
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.
Re: How important is mouse pointer
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:
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...
-
- Posts: 14
- Joined: Wed May 20, 2015 11:06 am
Re: How important is mouse pointer
Thanks krstcs. I will try these out.