Ask a Question

TestComplete Jenkins Plugin - GUI test, TestComplete did not launch it.

SOLVED
shenyusun
Contributor

TestComplete Jenkins Plugin - GUI test, TestComplete did not launch it.

Hello Community,

 

I tired to integrate TestComplete project with Jenkins, but somehow TestComplete won't launch when Jenkins started to build.

I was thinking maybe because "Silent' mode was passed as argument? If so, how do I modify it so it won't be silent mode.

 

My setup:

1. Jenkins slave running as service mode.

2. TestComplete 11

3. Jenkins console log is hanging at this screen:

14:30:08 [TestComplete] Found TestComplete/TestExecute installations:
14:30:08 	Type: TC, Version: 11.31.2420.7, Path: "C:\Program Files\SmartBear\TestComplete 11\bin\TestComplete.exe"
14:30:08 [TestComplete] Selected TestComplete/TestExecute installation:
14:30:08 	Type: TC, Version: 11.31.2420.7, Path: "C:\Program Files\SmartBear\TestComplete 11\bin\TestComplete.exe"
14:30:08 [TestComplete] [WARNING] The node is connected via Java Web Start (JNLP). In this mode, the "Run interactive user session" property of the TestComplete Test step is ignored. TestComplete (or TestExecute) will work in the current user session.
14:30:08 [TestComplete] Launching the test runner.
14:30:08 $ "C:\Program Files\SmartBear\TestComplete 11\bin\TestComplete.exe" "c:\jenkins\workspace\SmokeTest\SmokeTest.pjs" /run /SilentMode /ForceConversion /ns /exit "/ExportLog:c:\jenkins\workspace\SmokeTest\1808641.tclogx" "/ExportLog:c:\jenkins\workspace\1808641.htmlx" "/ErrorLog:c:\jenkins\workspace\1808641.txt" "/ExportLog:c:\jenkins\workspace\SmokeTest\1808641.mht" "/project: SmokeTest_Basic"

 

4. Jenkins configuration(See attachment)

 

 

Any help/suggestion would be helpful!

 

Thank you!

 

15 REPLIES 15

This could be a problem, 

 

I hope you went the thru the below link step by step if not please do.

 

https://support.smartbear.com/testcomplete/docs/working-with/integration/jenkins/preparing.html

 

if you still see the problem, i would recommend to raise a support ticket using https://support.smartbear.com/message/?prod=TestComplete


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

Thank you Shankar, that was how I set it up.

I'll create a support ticket.

Support resolved the issue.

 

The Jenkins Service needs to run by Local account.

I have same problem, but with TC 10.6.

How could i solve it?


@RodionMochalov wrote:

I have same problem, but with TC 10.6.

How could i solve it?


 

There were links to documentation for setting up Jenkins to work with TestComplete.  Did you follow those?

Also, the solution marked here indicates that the problem was that they needed to have Jenkins run as a local account.  have you made that change?


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
pv987654321
Occasional Contributor

I am runing my windows Jenkins agent with Local System User, yet I am facing this error 

[TestComplete] Found TestComplete/TestExecute installations:
	Type: TC, Version: 14.0.308.7, Path: "C:\Program Files (x86)\SmartBear\TestComplete 14\x64\bin\TestComplete.exe"
	Type: TE, Version: 14.0.317.11, Path: "C:\Program Files (x86)\SmartBear\TestExecute 14\x64\bin\TestExecute.exe"
[TestComplete] Selected TestComplete/TestExecute installation:
	Type: TC, Version: 14.0.308.7, Path: "C:\Program Files (x86)\SmartBear\TestComplete 14\x64\bin\TestComplete.exe"
[TestComplete] Launching the test runner.
[TestComplete] [ERROR] An exception occurred:
hudson.util.jna.JnaException: Win32 error: 2 - null.
[TestComplete] Marking the build as FAILED.
[TestComplete] [WARNING] Unable to publish test results (xml data is empty).
[TestComplete] The test execution finished 
FINISHED: FAILURE


 PRIMARY: Can someone help me with this please

 

Also, if possible I would like to launch my Jenkins slave via SSH and execute the TestComplete tests using the plugin

 

Thanks.

cancel
Showing results for 
Search instead for 
Did you mean: