This issue is related the User Interactive session setup.
Looks like you are running in slave node. Have you configured below screen with valid values?
Use active session – Specifies whether an existing user session will be used to run a TestComplete test. If it is selected, TestComplete will run in the current session. Otherwise, Jenkins will close all the applications, terminate the currently active session, start a new session under the specified user account and then start the test.
|Note:||Jenkins will not stop the user session if another user is logged on.|
The error - Unable to create a user session
Check all requirements step-by-step: https://support.smartbear.com/testcomplete/docs/working-with/integration/jenkins/requirements-and-li...
Then check all job settings: https://support.smartbear.com/testcomplete/docs/working-with/integration/jenkins/running-tests.html
Hi, Yes it is setup as you have described.
It seems this line of the log is the reason for the failure:
[TestComplete] Test runner exit code: -10 (Unable to create a user session).
Yes it shows on jenkins dashboard.
It connects to the physical machine, finds test complete but it seems it is when it tries to start test complete the issue happens.
On the slave node try to open command line, go to the Jenkins work directory and run:
java -jar slave.jar -jnlpUrl http://<SLAVE_NODE_URL>/slave-agent.jnlp -secret <SECRET_KEY> -workDir "<JENKINS_WORK_DIRECTORY_PATH>"
You can find above arguments in the jenkins-slave.xml file, which should be in your Jenkins work directory on the slave node.