Forum Discussion

fujunxu's avatar
fujunxu
Contributor
11 years ago

Can testcomplete script start automatically on a locked machine/virtual machine?

I set up “build periodically” on Jenkin so my script will start 3 hours later. And then I log out my machine/virtual machine. After 3 hours when I checked I got “The operation cannot be performed, because the user session is locked” in my log.
Is there a way I can make the testcomplete script start automatically? We tried to use Jenkin to start the build and then run testcomplet to do some regression testing around midnight.
  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    TestComplete scripts that interact with the UI of the application under test cannot interact with a locked workstation.



    There is a help topic descriping the use of tscon to redirect the UI to the console's session ID that may of be some help for you.  Check it out here
  • Robert,

    Thanks for your help. It looks like tscon was used to disconnect and reconnect the remote desktop session. Right now what we tried to do is only use one machine. Jenkin will trigger testcomplete script on the same machine. The problem here is that we have to use screensaver to save our data so after a while my machine will be locked out and I tried to start testcomplet script automatically.

    Thanks a lot !