cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with Jenkins and Test Complete

endorium
Frequent Contributor

Trouble with Jenkins and Test Complete

I have setup Jenkins and try to run a test complete test through it. I cannot get it to work and get the below message each time. Any ideas

 

 

14 REPLIES 14
shankar_r
Community Hero

Re: Trouble with Jenkins and Test Complete

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?

 

 

jenkins.png

From Doc.

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.

Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

baxatob
Community Hero

Re: Trouble with Jenkins and Test Complete

endorium
Frequent Contributor

Re: Trouble with Jenkins and Test Complete

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).

baxatob
Community Hero

Re: Trouble with Jenkins and Test Complete

Do you have Jenkins agent running on the slave node?

shankar_r
Community Hero

Re: Trouble with Jenkins and Test Complete

do you see your slave like this?

 

jenkins-slave.png


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

endorium
Frequent Contributor

Re: Trouble with Jenkins and Test Complete

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.

shankar_r
Community Hero

Re: Trouble with Jenkins and Test Complete

Have you re-verified things mentioned here in your slave?, This is the problem with slave machine setup


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

baxatob
Community Hero

Re: Trouble with Jenkins and Test Complete

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.

endorium
Frequent Contributor

Re: Trouble with Jenkins and Test Complete

I run this and get a message saying "-workdir" is not a valid option

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors