Importing test results from Jenkins - NPE

Thomas Hilbert, modified 11 Years ago.

Importing test results from Jenkins - NPE

Youngling Posts: 7 Join Date: 8/10/12 Recent Posts
Hi everyone,

we just set up our Jenkins CI system to publish our test results via the Klaros-Testmanagement-Plugin, but there is a problem when importing a XML with new testcases which do not exist in Klaros.

We tried several ways and this is what we found out:
1. If the testcases are created manually (by importing the JUnit XML via the web interface), the automatic import works.
2. If there is one or more new testcases, we get the attachted NPE. If we import the XML via web interface all works well.

I think the plugin should use the same funcionality as the manually triggered test result import from the web interface, isn't it?

Could you please check what the problem is. We need this functionality urgently. Thanks.


17:55:32  The test result(s) contained in target out/klaros/klaros.xml will be exported to the Klaros-Testmanagement Server at http://csv01175.c17.c.iav.de/klaros-web.
17:55:32  With parameters Project[P00005], Environment[ENV00001], SUT[SUT00001] and Type[junit].
17:55:33  Export of klaros.xml failed - Response status code: 500 for request URL: http://xxxxxxxxxx/klaros-web/seam/resource/rest/importer?config=P00005&env=ENV00001&sut=SUT00001&type=junit&username=xxx&password=xxx
17:55:33  Reason: Import action failed due to unexpected exception: java.lang.NullPointerException
17:55:33  Test result(s) successfully exported.


Regards,
Thomas
thumbnail
Torsten Stolpmann, modified 11 Years ago.

RE: Importing test results from Jenkins - NPE

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hi Thomas,

Can you please state the version you are using and add the corresponding Klaros log entries?

Cheers,

Torsten
Thomas Hilbert, modified 11 Years ago.

RE: Importing test results from Jenkins - NPE

Youngling Posts: 7 Join Date: 8/10/12 Recent Posts
Hi Torsten,

we are using the latest Klaros version 3.6.9 and the Klaros-Testmanagement-Plugin 1.4.

This is the catalina.out (part of it). Is there another log file? It's the only one I've found.
The error occured at timestamp 17.55:33. Hope this helps.

...
2012-08-22 17:41:15: ERROR, de.verit.klaros.web.servlet.importer.ImportResultServlet, http-9080-5 Import action failed due to unexpected exception: java.lang.NullPointerException
2012-08-22 17:55:33: ERROR, de.verit.klaros.web.servlet.importer.ImportResultServlet, http-9080-12 Import action failed due to unexpected exception: java.lang.NullPointerException
22.08.2012 17:58:59 com.sun.faces.lifecycle.RenderResponsePhase execute
INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
sourceId=null[severity=(INFO 0), summary=(Welcome, jenkins), detail=(Welcome, jenkins)]
[Fatal Error] :1:75: The markup in the document following the root element must be well-formed.
[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :-1:-1: Premature end of file.
2012-08-22 17:59:40: WARN, com.icesoft.faces.webapp.xmlhttp.PersistentFacesState, http-9080-6 Running in 'synchronous mode'. The page updates were queued but not sent.
23.08.2012 08:38:27 com.sun.faces.lifecycle.RenderResponsePhase execute
INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
sourceId=null[severity=(INFO 0), summary=(Welcome, cthilber), detail=(Welcome, cthilber)]
23.08.2012 09:01:06 com.sun.faces.lifecycle.RenderResponsePhase execute
INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
sourceId=null[severity=(INFO 0), summary=(Welcome, jenkins), detail=(Welcome, jenkins)]


Regards,
Thomas
thumbnail
Torsten Stolpmann, modified 11 Years ago.

RE: Importing test results from Jenkins - NPE

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
This is the catalina.out (part of it). Is there another log file? It's the only one I've found.


It is the right one, thanks! The logging is a bit terse here though.

This is a regression introduced while fixing KLAROS-1703 in 3.6.9 and only applies to the import servlet when looking for existing test cases. As you already noticed in the first posting this will only manifest when a new test case has to be created and does not include the manual import which takes another route through the UI.

Tracked as KLAROS-1714 and fixed towards 3.6.10.

Thanks for reporting!

Regards,

Torsten
Thomas Hilbert, modified 11 Years ago.

RE: Importing test results from Jenkins - NPE

Youngling Posts: 7 Join Date: 8/10/12 Recent Posts
Hi Torsten,

ok, then we wait for the next release.

Is there a due date of releasing 3.6.10.?

Regards,
Thomas
thumbnail
Torsten Stolpmann, modified 11 Years ago.

RE: Importing test results from Jenkins - NPE

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Given our rough bi-weekly maintenance schedule you may expect it Monday 27th.

Regards,

Torsten
thumbnail
Torsten Stolpmann, modified 11 Years ago.

RE: Importing test results from Jenkins - NPE

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
The 3.6.10 release is now available.

Regards,

Torsten