| || |
- 1 Post By dlai
- 1 Post By Gilbert
Temporarily blocking keyboard and mouse movements
During the time that sendkeys is entering text into a webElement or an edit box I want to prevent a user from bumping into the mouse or anything that can make the application change focus.
Could SystemUtil.blockInput and SystemUtil.UnblockInput be used for this?
I made a loop with a huge number and ran the scirpt. I could still move the mouse and see the cursor move. Help for the utilities says that it would stop the control from reaching the application under test. How does UFT know what application I am working with?
I think normally you want to dev on your local desktop. But create a clean VM for the actual execution and reporting. This reduces the flakeyness by having precise control over the environment.
I like VMs when they are set up with good resources. Sometimes I get offered a lot of VMs each one has a small amound of memory and slow CPU processing. Other times the VMs are set up powerfully and they are enjoyable to use.
For preventing others to accidentally mess up your test execution especially long ones that can run for days, what we used to do is "When the tests have started, disconnect and hide the mouse and the keyboard and put a sign like 'Testing in Progress...Do not Interrupt' next to your monitor.".
UFT does need to know what application you are working with. But if your test, for example, is using IE while running and you open up IE to work on other application or if your test is using Excel and you open another instance of Excel, well..... Good Luck!