Forum Discussion
I applied that solution, but it did not work with Remote Desktop.
When I disconnect from the RDP session, the UI is no longer active, and TestComplete cannot execute the tests (even though the agent is configured to run interactively).
I used the disconnect method described in “Disconnecting From Remote Desktop While Running Automated Tests.”
However, after disconnecting, the remote desktop resolution changes, and our application is very sensitive to screen resolution. As a result, the application does not run correctly after using that method.
To keep the RDP session active and maintain the same resolution, I am using SessionCreator. As mentioned above, SessionCreator is triggered via command line or PowerShell script to run a specific project.
Because of this setup, I am unable to use the VSTest task in the Azure DevOps pipeline to run it as part of a Test Plan.
I also had the same issue, you need to specify the /ScreenResolution parameter. Here's what I use in PowerShell script,
& 'C:\Program Files (x86)\SmartBear\TestExecute 15\x64\Bin\SessionCreator.exe' RunTest /UserName:User1 /password:'letmein' /UseActiveSession /ScreenResolution:"1920*1080" /ProjectPath:"C:\Sandbox\TestComplete\ALS\ALS.pjs" /ExportLog:"C:\Sandbox\Log\TC_Automation_$tc_timestamp\index.html" /ExportSummary:"$summary_report" | Out-Null
I've moved away from using tscon, and now using Azure Pipeline Agent - as this automatically logs the user in