I am posting this question regarding the execution of QTP scripts on remote machine. When i log in to my remote machine via \"mstsc\", and execute the script without closing
If you want to run QuickTest
in a minimized RDP
session, and you are using an RDP >= 6.0
client, you can enable it by setting a registry value on the local computer:
Navigate to one of the following registry paths on the local computer:
Current User: HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client
or
All Users: HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server Client
Create a DWORD
value named RemoteDesktop_SuppressWhenMinimized
and set it to 2
.
Note that this does not work when the computer is locked or logged off.
QTP replays some steps by manipulating the mouse and keyboard devices. When an RDP session is minimized windows knows that there is nobody at the controls and therefore doesn't respond to the mouse and keyboard events which causes QTP to fail.
A workaround to this is to connect to the machine via another application rather than mstsc
(for example VNC) which doesn't communicate to windows that it has been minimized. Either that or leave the RDP window open.
one more simple way
just maximize RDP session , then scripts will run don't minimize you remove the lock of the machine.