Forum Discussion
rraghvani
Champion Level 3
2 years agoI have a PowerShell script file on the VM with the following command,
& 'C:\Program Files (x86)\SmartBear\TestExecute 15\x64\Bin\SessionCreator.exe' RunTest /UserName:Tester1 /password:'Tester1' /UseActiveSession /ScreenResolution:"1920*1080" /ProjectPath:"C:\Sandbox\TestComplete\ALS\ALS.pjs"
which can be triggered by Task Schedule. For this command to work, an active sessions must exist - see Disconnecting From Remote Desktop While Running Automated Tests
If I am connected to the VM, I run the following PowerShell script,
Start-Process 'C:\Program Files (x86)\SmartBear\TestExecute 15\x64\Bin\TestExecute.exe' -ArgumentList """C:\Sandbox\TestComplete\ALS\ALS.pjs"" /run /exit /DoNotShowLog