Micro Focus QTP (UFT) Forums
Running QTP scripts while host computer is locked - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Running QTP scripts while host computer is locked (/Thread-Running-QTP-scripts-while-host-computer-is-locked)



Running QTP scripts while host computer is locked - jreelest - 10-03-2012

I recently noticed that scripts would pass when ran from QC while the host machine is unlocked but would fail if ran while the host machine is locked. Found out that this was because QTP seems to not recognize popup boxes when the machine is locked.

I am looking for a way around this because there is one machine availble on site that has QTP and most times when i will run the scripts will be when i am at home, so that machine will be locked.

If anyone has any suggestions this would be incredibly helpful.


RE: Running QTP scripts while host computer is locked - sshukla12 - 10-04-2012

Hi,

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.


Regards,
Sankalp


RE: Running QTP scripts while host computer is locked - Anand Saboo - 10-07-2013

Sankalp - Thanks. We can do if we have the admin rights but in my case i dont have the admin rights. Then is their any soklution?


RE: Running QTP scripts while host computer is locked - supputuri - 10-11-2013

I have developed an utility an year back to keep system awake based on QTP instance, check if this is useful..

Utility to Keep Your System Unlock While Scripts are Running

Let me know if you need any more information.


RE: Running QTP scripts while host computer is locked - basanth27 - 10-12-2013

Dont waste time re-inventing the wheel...A simple vbscript in a while loop which uses Sendkeys on NumLock should keep the system activated. The easiest way is to google for "Caffeine.exe" and download it. It is a exe and hence you dont need admin rights. Now, this is an awesome tool used across which is a freeware. If you do not have download rights on the machine, then download it somewhere else and then copy it over to your machine. As it is an exe it does not make any changes to the registry as well.

Always remember to use the simplest method to achieve the solution. You dont want to buy the cow for a glass of milk Smile


RE: Running QTP scripts while host computer is locked - Anand Saboo - 10-24-2013

Thanks.

But Caffeine is not working at least for my case.

Do we have any order solution for that?