This is a migrated thread and some comments may be shown as answers.
Enhancement : Ability to filter in/out user mouse actions
2 Answers 13 Views
This is a migrated thread and some comments may be shown as answers.
kwee
Top achievements
Rank 1
kwee asked on 16 Mar 2012, 06:53 PM

This is an enhancement request.

Is there a way to disable/filter out user mouse actions while a WebAii test is running?
This is useful in 2 situations:
  1) demos using WebAii
  2) running tests and working at the PC ( essentially giving the tests priority of mouse input,
     while the user can still use the keyboard )

Sample code:
    ...
    Manager.Desktop.ignoreUserMouse();
    runTest(); // allows test to run without user actions accidentally derailing the test
    Manager.Desktop.acceptUserMouse();

I've not addressed what happens when the test crashes, and the acceptUserMouse is not called.

Currently, I turn my mouse upside down to prevent user (my) interference.

2 Answers, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 16 Mar 2012, 11:34 PM
Hello Kwee,

I see a few issues with this request:
  • For a test that injects all clicks and text entries directly into the DOM, this wouldn't apply. In fact you can execute a test like this and continue to use the keyboard and mouse elsewhere without interfering with the test.
  • For a test that simulates real clicks, key presses, handles dialogs, etc., control is required of the keyboard and mouse. Even if a method was implemented to ignore user input specifically for the test, the keyboard and mouse would not be available to use in other applications while the test is running. Each time a "Simulate Real User" step executes the focus is returned to the browser. The idea is to use a dedicated test agent and/or execution server to solely execute tests, leaving your local machine free.

If I misinterpreted your vision please elaborate further.

Greetings,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
kwee
Top achievements
Rank 1
answered on 18 Mar 2012, 08:28 PM
Anthony,

Thanks for your reply. After further thought, you're right in that it opens up a lot more issues than it solves. I think I'll stay with the low-tech solution and just turn my mouse upside down.  
Asked by
kwee
Top achievements
Rank 1
Answers by
Anthony
Telerik team
kwee
Top achievements
Rank 1
Share this question
or