Micro Focus QTP (UFT) Forums
How to execute a UFT script when computer is in locked state - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: How to execute a UFT script when computer is in locked state (/Thread-How-to-execute-a-UFT-script-when-computer-is-in-locked-state)



How to execute a UFT script when computer is in locked state - akilamurugesh - 08-07-2014

Hello All,

This is Akila.
We are using UFT 11.53 in Win 7 environment.

I have a UFT script that is used to login to the virtual client where our automation test scripts are scheduled. This script has to be triggered by 11:45 PM everyday . I have created a task for this in the windows task scheduler . As I do not have admin rights this task is not getting triggered
when my computer is in locked mode. If my computer is not in locked state this task is getting triggered properly.

To prevent my computer from getting locked,I tried scheduling a windows unlock script that fires a mouse event for every 5 min so that my computer does not get locked but that did not help.

In UFT I saw an option "Allow UFT to continue running GUI or Business process test after disconnecting from an RDP computer. Enter the credentials of the remote computer.". I am not sure how to use this. Please help me on this.

Do we have any way to execute the UFT script when computer is on locked mode.


RE: How to execute a UFT script when computer is in locked state - ankur1601 - 08-11-2014

you can also use window media player on VM, so the VM could not locked.
just use any media file in window media player and select the repeat option.


RE: How to execute a UFT script when computer is in locked state - akilamurugesh - 08-13-2014

This did not work .Sorry


RE: How to execute a UFT script when computer is in locked state - sshukla12 - 08-19-2014

Please follow below steps:

Start--->Run--> Type 'Regedit'
Change the following registry settings..
Goto following folder..
HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\QuickTest
Professional\MicTest
Locate the key "SkipEnvironmentChecks"
By Default the value will be "0"
Change the value to "1" and restart the QTP.
Now QTP will run with system locked.


RE: How to execute a UFT script when computer is in locked state - akilamurugesh - 08-25-2014

Many thanks for the reply. I will try and keep you posted.