Unable to run test - User session locked
Hello,
I have a scheduled task that run a TestComplete project - containing GUI tests and file checkpoints.
I have the following error in the testcomplete log (when running putty to connect to Unix machine):
The operation cannot be performed , because the user session is locked
Possible reasons:
* The computer is locked.
* The UAC prompt is displayed asking for a user confirmation, and the user session is locked until a response is provided.
The test (and the scheduled task) is run on a distant machine (Virtual Machine), that we access to via a remote desktop.
The machine OS is Windows 2012 Server - R2
The option 'Run only when user is logged on' is checked in the task properties
'Run with highest privileges' is also checked.
'Start the task only if the computer is on AC power' is checked
'Wake the computer to run this task' is checked
Before running the task, I disconnected the user via tscon utility as mentioned in this page
The screen saver is disabled.
In the power options, 'Turn off the display' is set to Never
'Put the computer to sleep' is set to Never
Could you please help me to solve this issue, so that the test could be planned via task scheduler ?
Thanks