SessionCreator : Failed to create the process. Unspecified error
I'm currently integrating TestComplete tests into an Azure DevOps CI/CD pipeline, and I'm facing an issue when running the tests using SessionCreator via a self-hosted agent on a Windows VM.
Test Tool: TestComplete 15
Azure DevOps Agent: Self-hosted, installed as a Windows service
Execution Mode: I'm using SessionCreator.exe in the pipeline with /UseActiveSession and login credentials
Pipeline YAML:
& "C:\Program Files (x86)\SmartBear\TestComplete 15\bin\SessionCreator.exe" RunTest `
/UseActiveSession `
/UserName:$env:USERNAME `
/Password:$env:PASSWORD `
/ScreenResolution:1920x1080 `
/Timeout:600 `
/ProjectPath:$env:PROJECT_PATH `
/project:$env:PROJECT_NAME `
/ExportLog:"$env:LOGPATH\TestLog.mht"
Problem
After configuring the agent and restarting the machine, the agent comes online. However, when the pipeline runs, I get this error:
SessionCreator : Failed to create the process.
Unspecified error
SessionCreator failed with exit code 7
PowerShell exited with code '1'
What I’ve Tried
- The agent is running as a Windows service under an admin account.
- I enabled SERVICE_SID_TYPE_UNRESTRICTED when configuring the agent
- I made sure the session was active via RDP during execution
- I verified that the specified username/password has local admin rights
- If I run the pipeline while the agent is launched interactively (via run.cmd), everything works fine.
- I have configured all the related requirements from here [Session Creator Official Documentation].
- Also tried Manually configuring the agent and added a shortcut to run.cmd in the Startup folder, so it launches automatically on boot.
Verified that tests run fine when I manually connect via RDP and start the agent using run.cmd
But the pipeline still fails after a VM restart, even though the agent comes online—unless I manually RDP into the session again.
Ideal Outcome
A fully automated pipeline where the VM starts, the agent launches, and GUI tests run without any human logging into the VM.
Any help or proven configuration tips would be hugely appreciated!