Run a GUI test with a disconnected Remote Desktop Connection
Relevant for: GUI tests only
This task describes how to run a GUI test after disconnecting an Remote Desktop Connection to a computer running UFT. This enables you to start a test run and disconnect your computer from the UFT computer, enabling the test to run independently while you continue work on your own computer.
Note: This feature is not supported in the Microsoft Windows® XP environment or the Hyper-V virtualization server.
If you want to run UFT in a minimized RDP session, and you are using an RDP 6.0 or later client, enable this by setting a registry value on the computer that is running the Remote Desktop session
If necessary, create the RemoteDesktop_SuppressWhenMinimized registry value (DWORD type) in one of the following registry paths on the computer that is running the RDP client:
32-bit operating systems <HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE>\Software\Microsoft\Terminal Server Client 64-bit operating systems <HKEY_CURRENT_USER>\Software\Wow6432Node\Microsoft\Terminal Server Client
Set the data for this value to 2.
Restart your remote session in order for this setting to take effect.
On your local computer, open a Windows Remote Desktop Connection session and connect to the remote computer running UFT.
You must configure the Remote Connection options before beginning to run the test:
In the Options dialog box, open the Run Sessions pane (Tools > Options > General tab > Run Sessions node).
Enable the Remote Desktop Connection options by selecting the Allow UFT to continue running GUI or business process tests after disconnection from an RDP computer option.
Enter the user name and password of the user connecting to the remote computer with the Remote Desktop connection.
If you are running the test via automation, in the General tab of the Windows Task Scheduler dialog box, ensure that the Run only when user is logged on option is selected:
- On the remote computer, start the test run.
On your local computer, close your Remote Desktop Connection session.
IMPORTANT: You must remain logged on to the computer running UFT.
The test run continues on the remote computer until completion.
Note: For a UFT server that allows multiple users to log in with the same username/password: When a user initiates a test run and disconnects from RDP during the run, the run execution goes to the background and the user has no access to the execution when they log in again, because the test is executed in another session.