Running QTP Scripts on Remote Computers

I am posting this question regarding running QTP scripts on a remote machine. When I log in to my remote computer via "mstsc" and execute the script without closing the connection to the remote desktop, it works fine. But as soon as I close / minimize the remote desktop window, it starts to cause an error (for example, Object not visible).

One of the places where the error usually occurs is to click on the file menu in IE, as shown below: -

Browser(" page name -").WinToolbar("ToolbarWindow32").Press "&File"

Are there any workarounds to solve the same? Most QTP scripts take a long time to execute, and if the precondition is to keep the screen unlocked, is this not one of the key flaws?

Thanks in advance! Steve

+2
source share
3 answers

QTP repeats some steps by manipulating mouse and keyboard devices. When the RDP session is minimized, Windows knows that there is no one on the controls, so it does not respond to mouse and keyboard events that cause QTP to fail.

A workaround for this is to connect to the machine through another application, and not mstsc(for example VNC ) t exchange with windows, which it was minimized. Either this, or leave the RDP window open.

+3
source

If you want to run QuickTestin a minimized session RDP, and use the client RDP >= 6.0, you can enable it by setting the registry value on the local computer: Go to one of the following registry paths on the local computer:

: HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client : HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server Client

DWORD RemoteDesktop_SuppressWhenMinimized 2.

, , .

+3

another easy way

just maximize the RDP session, then the scripts will be executed, without minimizing you will remove the machine lock.

0
source

Source: https://habr.com/ru/post/1788942/


All Articles