Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abons opened this issue Jan 27, 2021 · 1 comment
Open

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

abons opened this issue Jan 27, 2021 · 1 comment

Comments

@abons
Copy link

abons commented Jan 27, 2021

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 ferpasri changed the title Is there a way to run Testar on a remote desktop [Remote desktop] Is there a way to run Testar on a remote desktop Dec 20, 2022
@ferpasri
Copy link
Member

ferpasri commented Dec 20, 2022

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 ferpasri removed this from To do in Refactoring TESTAR code Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants