TESTAR_dev
TESTAR_dev copied to clipboard
[Remote desktop] Is there a way to run Testar on a remote desktop
When connected to the server/pc with remote desktop Testar works ok. But when I disconnect Testar stops executing.
The error: Exception: Check if current SUTs path: "C:\chromedriver.exe" "1920x900+0+0" "https://www.google.nl" is a correct definition"
I tried sloth-cli to start testing with time intervals but same problem
https://www.npmjs.com/package/sloth-cli
I think the drive is not accessible when disconnected (because it logs out the user)
This is a limitation of Remote Desktop. Context: https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/keeping-computer-unlocked.html
- Remote Desktop stops the GUI session when the user realizes a default disconnection.
- It is possible to prepare a workaround disconnection using a batch file and execute it before starting the test sequence.
@echo off
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (
%windir%\System32\tscon.exe %%s /dest:console
)
- For VMWare, the disconnect seems to work fine without closing the GUI.
- It is possible to dockerize the TESTAR web execution for web SUTs.
- Prepare the batch file workaround.