Micro Focus QTP (UFT) Forums
Issue in winbutton.click while executing qtp scripts on a locked machine - 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: Issue in winbutton.click while executing qtp scripts on a locked machine (/Thread-Issue-in-winbutton-click-while-executing-qtp-scripts-on-a-locked-machine)



Issue in winbutton.click while executing qtp scripts on a locked machine - anjanah - 07-05-2013

Hi All,

I need to run a qtp script on a locked remote machine. I have a winbutton which I am not able to click when the machine is locked.
For eg ->
Code:
Browser("").Dialog("").WinButton("Open").Click

This works fine when the machine is unlocked. But when I execute on a locked machine, the results show that the winbutton was clicked, but it is actually not clicked. Also I have a winedit object in the same dialog, which is working fine when I set some value to it.

Any help appreciated !


RE: Issue in winbutton.click while executing qtp scripts on a locked machine - Ankur - 07-06-2013

Try going to

Code:
HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\QuickTest Professional\MicTest

Set the value for SkipEnvironmentChecks by double clicking on it and entering the value as 1

See if this works for you.

Ideally, it is not advisable to run QTP scripts with machine locked, especially if your script contains interaction with window dialog boxes. When machine is locked, windows disables system messages and if QTP needs those messages it may affect your test run.


RE: Issue in winbutton.click while executing qtp scripts on a locked machine - anjanah - 07-07-2013

Thanks Ankur.

I have already done this setting due to which the qtp test is triggered on locked machine. Also web ojects are identified without any problem. The only issue is with the win objects. I wanted to know if theres any solution for them in particular.


RE: Issue in winbutton.click while executing qtp scripts on a locked machine - swathiprasad - 12-20-2013

HI,

I am planning to runt the scripts in my system , it will take approximately 12 hours to complete the execution.
So, what and all system setup and QTP 11 setups i need to do.

Thanks in Advance :-)


RE: Issue in winbutton.click while executing qtp scripts on a locked machine - basanth27 - 12-20-2013

Just make sure,

1.Addins required for the test added on qtp.
2.Code base has handled all the unexpected application exceptions.
3. System does not get locked or restarted.
4. Let it have a free run and then post all the issues you encounter 12 hours later on learnqtpSmile