cancel
Showing results for 
Search instead for 
Did you mean: 

Execution failed when Local Computer locked

Occasional Contributor

Execution failed when Local Computer locked

Hi,
Is there a way to continue execution when Remote Desktop is active and local machine is locked
8 REPLIES 8
Community Hero

Re: Execution failed when Local Computer locked

Evidently not

https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/overview.html

 

 

Some important notes:

  • When running GUI tests via Remote Desktop, do not do the following:

    • Do not lock the computer.
      See the tips below.

    • Do not disconnect from the Remote Desktop Connection session.
      See the workaround below.

    • Do not minimize the Remote Desktop window.
      See the workaround below.

Contributor

Re: Execution failed when Local Computer locked

One way we got around this was using VNC to remote into our test lab machines and kick off the tests.  The VNC services would keep the remote UI active for us while we were disconnected.  We did find it to be a little slower to interact with the desktop, but it didn't seem to slow the tests down.

Occasional Contributor

Re: Execution failed when Local Computer locked

There is one more thing I have noticed,

 

1) The execution is running seamlessly when the local machine is Windows 7, but if the local machine is Windows 10 and if we lock it, all our test cases are getting failed after the timeout delay

 

Note: Remote machine was Windows 10 in both the above cases

Frequent Contributor

Re: Execution failed when Local Computer locked

<p>What OS you are using out of&nbsp; remote access ?? that would be help for better reply.<br>Any way 1st go for it:</p>
<p>1) Go to the System settings<br>2) Brighteness &amp; Lock&nbsp;</p>
<p>3) turn screen off when inactive for&nbsp; =&gt; Never<br><br>Do this chnages and pls reply</p>
Community Hero

Re: Execution failed when Local Computer locked

Hi,

 

A workaround that works sometimes is to open remote session (B) within another remote session (A) running on your local machine. Quite often session B is not getting locked when the local machine is locked.

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Super Contributor

Re: Execution failed when Local Computer locked

@ashwilavinash 

Are you able to run the tests on remote machine while it is disconnected ? 

please update 

Super Contributor

Re: Execution failed when Local Computer locked

@will_fetherolf 

 

Is VNC viewer is worth to try ? as we are running Testcomplete tests on TestExecute remote machine and our tests are failing - firefox errors when we disconnect from remote desktop. They pass when we remain connected . 

Contributor

Re: Execution failed when Local Computer locked

Unless Microsoft has modified the way Remote Desktop works, last time I checked if you're using Remote Desktop to access a system you can't establish ANOTHER Remote Desktop connection to ANOTHER machine.  Which means you can't Remote Desktop into MachineC from MachineB when you're already using Remote Desktop to connect to MachineB from MachineA.

 

That being said, the ONLY way I've been able to remotely execute tests is to use some kind of VNC solution to remotely access my test machines.  I'm not going to recommend a specificVNC solution at this time.  I think I was using RealVNC when I had to do it.  You'll have to install a VNC server on the test machines, and use a VNC Viewer on the originating machine.