TESTAR_dev icon indicating copy to clipboard operation
TESTAR_dev copied to clipboard

[Remote desktop] Is there a way to run Testar on a remote desktop

Open abons opened this issue 4 years ago • 1 comments

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)

abons avatar Jan 27 '21 16:01 abons

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
)
  1. For VMWare, the disconnect seems to work fine without closing the GUI.
  2. It is possible to dockerize the TESTAR web execution for web SUTs.
  3. Prepare the batch file workaround.

ferpasri avatar Dec 20 '22 12:12 ferpasri