TESTARtool / TESTAR_dev

TESTAR, automated testing through the Graphical User Interface
http://www.testar.org
BSD 3-Clause "New" or "Revised" License
34 stars 22 forks source link

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

Open abons opened 3 years ago

abons commented 3 years ago

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)

ferpasri commented 1 year ago

This is a limitation of Remote Desktop. Context: https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/keeping-computer-unlocked.html

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.