Ask a Question

New Jenkins TestComplete Plugin Released to publish MHT reports in JUnit format

fernando_miguel
Occasional Contributor

New Jenkins TestComplete Plugin Released to publish MHT reports in JUnit format

Hi,


I am Fernando Miguélez and I have been a user of TestComplete and TestExecute for almost a year. We use those both to test mainly Flex applications.


We use Jenkins actively to continuously build and deploy software but also to perform integration (unit) and functional (with TestComplete/TestExecute) testing. We have been looking forward to hearing from an official Jenkins plugin so TestComplete/TestExecute tests could be more maneageable. Our daily functional tests are generated in MHT format and it takes a lot of manual intervention to figure out what happened with every functional group (we have to download it and open int in Internet Explorer that we happen to use only for that, Firefox or Chrome are our preferred browsers).


After waiting for so long and after gathering some experience with Jenkins development I decided to create my own Jenkins plugin. Today I would like to proudly announce the availability of new Jenkins Plugin: TestComplete xUnit Plugin. Just look for it in "Manage Plugins" option of your Jenkins installation.


This plugin basically converts MHT TestComplete/TestExecute reports into JUnit format that Jenkins can interpret and handle, so you can benefit from quick failure list review, tendency graphs, failure history, etc.


I am not affiliated with Smartbear and my release happened to coincide in time with official release of official TestComplete Jenkins Plugin. My plugin is lighter and only applies to publishing. Official Jenkins Plugin from Smartbear is a full blown plugin to directly invoke TC/TE from Jenkins but leaves small room for customizations. In our case we already had set up our integration with Jenkins by means of many tweaks (batch scripts, Jenkins slaves setup, execution rules, etc.) so we only needed the reporting part. Thus if you start out with a fresh Jenkins integration you may prefer to go with official plugin, but if you happen to come from an existing integration my plugin could be more helpful.


I hope you enjoy it. 😉

10 REPLIES 10
TanyaYatskovska
SmartBear Alumni (Retired)

Hi Fernando,

 

Thanks for sharing the plug-in with us!

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



y_baskoro
New Contributor

HI Fernando, 

 

I have a few problem with the plugins, it keeps complaining to me the following on Jenkins console:

[TestComplete] Test runner exit code: -8 (An internal error occurred. Please contact SmartBear's Support Team).
[TestComplete] [WARNING] Unable to find the log file "3428949.tclogx".
[TestComplete] [WARNING] Unable to find the log file "3428949.htmlx".
[TestComplete] [WARNING] Unable to find the log file "3428949.mht".
[TestComplete] [WARNING] Errors occurred during the test execution.
[TestComplete] Marking the build as UNSTABLE.
[TestComplete] [WARNING] Unable to publish test results (xml data is empty).
[TestComplete] The test execution finished (NV12_AutoSanityTest/GeneralSanity_TestSuite).

Could you help me resolve this?

 

Kind Regards,

Yudo

Hello,

 

I have similar problem (error).

 

Also my test is not ends - when I abort I have such error:

 

[TestComplete] [ERROR] An exception occurred:
java.lang.InterruptedException.
FATAL: null
java.lang.NullPointerException
	at com.smartbear.jenkins.plugins.testcomplete.TcTestBuilder.publishResult(TcTestBuilder.java:403)
	at com.smartbear.jenkins.plugins.testcomplete.TcTestBuilder.perform(TcTestBuilder.java:388)
	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
	at hudson.model.Build$BuildExecution.build(Build.java:198)
	at hudson.model.Build$BuildExecution.doRun(Build.java:159)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:523)
	at hudson.model.Run.execute(Run.java:1700)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:231)

 

You seem to be using Official Testcomplete Jenkins plugin.

 

My plugin is the xUnit TestComplete Jenkins plugin.

 

I think you should ask SmartBear about that issue.

fernando_miguel
Occasional Contributor

The same applies to you pbielinski. You are using the SmartBear's TestComplete Jenkins Plugin, not the xUnit TestComplete Jenkins Plugin I wrote myself.

yes you are right, thank you

dpasto
New Contributor

Excellent plugin - easy to use and very flexible.  

However it doesn't work with TestComplete v11 MHT files.  Any chance of an update to support those?

fernando_miguel
Occasional Contributor

We lack a TC11 license so the only way that we could support it is that you provided the needed output. Take a look at: https://issues.jenkins-ci.org/browse/JENKINS-36185?focusedCommentId=263807&page=com.atlassian.jira.p...

Trying to find some time.  I don't suppose you have existing projects we can just convert and run?

cancel
Showing results for 
Search instead for 
Did you mean: