|Information in this topic applies to desktop and web applications.|
Windows includes the Remote Desktop component that you can use to connect to a remote computer and work with it as with your local computer.
Using Remote Desktop, you can run and monitor automated tests on remote computers: connect to a remote computer and work with it on your computer using the Remote Desktop window. For more information on running automated tests by using the Remote Desktop component, see About Running Tests via Remote Desktop.
If you minimize the Remote Desktop window (the window that displays the remote computer’s desktop), Windows switches the remote session to the GUI-less mode and does not display windows and controls. As a result, TestComplete (or TestExecute) will be unable to interact with the tested application’s GUI, as it does not exist and your automated GUI test will fail.
To work around this issue, on your local computer (the one from which you launch Remote Desktop), change the registry settings that affect that way Remote Desktop treats the GUI of the remote session when being minimized.
Change the local computer registry settings
On your local computer, close all open Remote Desktop sessions.
Launch the Registry editor (regedit.exe).
Navigate to one of the following Registry keys, depending on whether you wish to modify the Remote Desktop settings only for the current user or for all users on the computer:
HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client
HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server Client
Note: There are security settings and group policies that override the HKEY_LOCAL_MACHINE keys with the HKEY_CURRENT_USER keys. In this case, modify the Remote Desktop settings in the HKEY_CURRENT_USER registry key.
Create a DWORD value named RemoteDesktop_SuppressWhenMinimized and set it to 2 (hexadecimal or decimal):
On the 64-bit version of Windows, you may have to repeat the previous step for one of the following keys. Similarly, which key to choose depends on whether you want to edit the settings only for the current user or for all users:
HKEY_CURRENT_USER\Software\Wow6432\Microsoft\Terminal Server Client
HKEY_LOCAL_MACHINE\Software\Wow6432\Microsoft\Terminal Server Client
Close the Registry Editor.
Now when you minimize the Remote Desktop Connection window on your computer, this will not affect the remote computer’s GUI and the GUI will be available to your automated tests.
The RemoteDesktop_SuppressWhenMinimized registry value causes issues with Microsoft Lync. For instance, Lync may fail to share screens.
Running Tests via Remote Desktop
About Running Tests via Remote Desktop
Disconnecting From Remote Desktop While Running Automated Tests
Smart Resizing of Remote Desktop Windows
Running Tests on Locked Computers