Posts: 1
Threads: 1
Joined: Oct 2012
Reputation:
0
10-03-2012, 06:40 PM
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.
Posts: 426
Threads: 4
Joined: Aug 2011
Reputation:
0
10-04-2012, 02:01 PM
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
Posts: 9
Threads: 4
Joined: Oct 2013
Reputation:
0
10-07-2013, 02:13 PM
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?
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
10-12-2013, 07:43 PM
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
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Posts: 9
Threads: 4
Joined: Oct 2013
Reputation:
0
10-24-2013, 01:25 PM
Thanks.
But Caffeine is not working at least for my case.
Do we have any order solution for that?