Ruser wrote:I searched this forum but didn't find the similar request, surprised me.
IMHO the following forum post already answers this question:
mouse-movement-during-test-execution-t1170.htmlRuser wrote:I would like to start the automated test, then lock my machine/screen, go for lunch, come back to see the result.
When playing back the standard actions the Ranorex Recorder generates, you must not lock the computer using the default Windows "Lock Screen" mechanism, since this makes all controls unusable, i.e. you cannot use the mouse or keyboard to interact with applications. As an alternative you can disable the physical mouse and keyboard like explained in the post mentioned above.
If you don't use the Ranorex Recorder to record action, but code them yourself, you could also use non-keyboard/mouse actions to interact with UI elements (like
Button.PerformClick). These actions can work even if the desktop is locked, however, not all controls support such actions. And some controls forbid such actions explicitly if the desktop is locked or the control is not visible. See the following forum thread covering this topic:
post4474.htmlRuser wrote:I remember that I can do this with other GUI automation tool like HP winrunner.
What I posted in this thread is perfectly true for HP Winrunner as well. If the desktop is locked, Winrunner can't use the keyboard or mouse on controls, either. From what I know, if the desktop is locked Winrunner just complains that the object is not visible and stops replaying.
Regards,
Alex
Ranorex Support Team