Ask a Question

Could not run automation when machine is locked or not connected even when the machine is online

kannanmkb
Senior Member

Could not run automation when machine is locked or not connected even when the machine is online

Hi Team,

 

I am using Testcomplete for automating the window/Desktop application.

 

When executing the testcase in the remote machine and the remote machine is in online but not connected by any user, in this case my testcases are getting failed. Please suggest the solution for overcoming this issue.

 

Regards,

Kannan P.

2 REPLIES 2
will_fetherolf
Contributor

TestComplete/TestExecute REQUIRES access to the desktop.  If you're connecting to the remote machine via Remote Desktop Connection, when you disconnect your remote session the desktop UI thread is terminated, therefore removing your access to the desktop.  One way that I've seen and used to get around this is to use a VNC solution to access the remote machine.  VNC does not terminate the desktop UI thread when the session is terminated, but VNC is slower than Remote Desktop.

AlexKaras
Champion Level 2

Hi,

 

Another possible option is described here: https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/keeping-computer-unlock...

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
cancel
Showing results for 
Search instead for 
Did you mean: