Forum Discussion
Have you checked through all of these references?
https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/overview.html
Thanks for your reply Marsha,
We've tried several options, and can successfully run our Devops pipeline on the remote VM providing a RDP session initiated from a machine that has its Power and Screen saver options turned off.
We will try the method using tscon documented in Disconnecting From Remote Desktop While Running Automated Tests. If we have success running the tscon command manually, we'll then try inserting it into the pipeline.
Thanks
Mark
Hi,
> If we have success running the tscon command manually
Just a note that tscon must be executed with elevated admin credentials.
Hi Everyone,
Alex, you've stolen my thunder 🙂 I was just about to report our success with tscon. We ran the command manually on the RDP machine which 'shut' it down while the Agent was 'listening' for work. Our next step will be to create the batch file to run the tscon command and include it in the nightly pipeline.
So, to run this command (as Alex says, run as an administrator ) within the RDP window, from the Command Line.
>query user (this will return the sessionname eg rdp-tcp#xx)
>tscon.exe rdp-tcp#xx /dest:console
respond "yes" to to close your session
...all done
We had exactly the same issue last night when an IT upgrade disconnected the RDP machine. All the tests failed due to no UI.
The reference doesn't advise on how to keep tests running when the RDP session disconnects.
We're trying to integrate TestExecute with our Devops pipeline as well so are keen to see the solution.
jr348 There is this section about disconnecting in that same reference
-
If you need to disconnect from the Remote Desktop session, you can retarget the session to the remote computer’s console before starting your tests. For detailed information, see Disconnecting From Remote Desktop While Running Automated Tests.
-