- At least 1 available remote machine with the minimum required specs (see Client-side prerequisites here);
- A host machine to connect from (your machine)
Preparing the remote session to run unattended
RDP protocol, used for the remote connection, locks the session when you lock your machine.
The machine cannot be locked during execution, so you have to be able to disconnect from Remote Desktop while running automated tests.
You can automate the disconnection procedure using a batch file. On the remote computer, do the following:
Step 1: Create a batch file with this code:
for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do ( %windir%\System32\tscon.exe %%s /dest:console )
Step 2: Create a desktop shortcut to this file. To do this, right-click the batch file and select Send to | Desktop (create shortcut).
Step 3: In the shortcut properties, click Advanced and select Run as administrator.
Step 4: Now, when you need to disconnect from Remote Desktop, double-click this shortcut on the remote computer (in the Remote Desktop window).
Running scenarios from Qualibrate’s Web application
Step 5: Select the target adapter (name of the remote machine).
Step 6: Start the execution of a specific scenario (please find the article here).
Starting from this point you can lock your machine, execution will proceed on the VM.