So I read Smartbear's documentation regarding "Schedule Automated Tests" using the Task Scheduler in Windows 10 . As long as I do as they say and NOT lock my PC (because I'm testing the GUI) it works fine.
BUT - my security team requires me to lock my PC every night before heading home. I would like to set up a task to unlock my PC one minute before I have the task kick off the automated test I need to run every day which should finish right about the time I usually hit my desk.
Anyone know how to do that? Web searches have been fruitless, and the only other documentation on Smartbear's site is in regard to running on "Locked Computers" which is not what I want to do.
Solved! Go to Solution.
Try to execute cmd line like "tscon 2 /dest:console" where "2" is your user session ID.
It should switch running user session to console session and your tests could run.
As a not verified idea: You may consider to use the RebootAndContinue() method if your test account is granted necessary permissions.
(Though usually it is more easy and reliable to have a dedicated not locked machine (with disconnected monitor, for example).)