Jenkins Xunit plugin

Ask general questions here.
Giuseppe
Posts: 1
Joined: Wed May 08, 2019 1:28 pm

Jenkins Xunit plugin

Post by Giuseppe » Wed May 08, 2019 2:02 pm

Hello everyone,

I'm having trouble to get the Ranorex Report parsed through the Xunit Plugin in Jenkins.
I followed this guide: https://www.ranorex.com/blog/make-your- ... ing-xunit/

But instead of the old .xsl file i'm using the newest RanorexReport.xsl generated from our Ranorex version 8.2 and i'm not able to get it running.
I receive the following error messages by the jenkins plugin:

Code: Select all

INFO: Starting to record.
INFO: Processing Custom Tool
INFO: [Custom Tool] - 1 test report file(s) were found with the pattern 'report.rxlog.data' relative to 'C:\mypath\6-PublishTestResults' for the testing framework 'Custom Tool'.
WARNING: The converted file for the input file 'C:\mypath\6-PublishTestResults\report.rxlog.data' doesnt match the JUnit format.
WARNING: At line 1 of file:/C:\mypath/6-PublishTestResults/generatedJUnitFiles/f4b6c6cf-a733-4a5f-9eee-10204097f061/Custom%20Tool/TEST-6886120e-ddd0-4f2d-8423-717674170da1.xml:The markup declarations contained or pointed to by the document type declaration must be well-formed.
WARNING: Technical validation:The markup declarations contained or pointed to by the document type declaration must be well-formed.
ERROR: The markup declarations contained or pointed to by the document type declaration must be well-formed.
ERROR: The markup declarations contained or pointed to by the document type declaration must be well-formed.
ERROR: Step ‘Publish xUnit test result report’ failed: The converted file for the result file 'C:\mypath\6-PublishTestResults\report.rxlog.data' (during conversion process for the metric 'Custom Tool') is not valid. The report file has been skipped.
Finished: FAILURE
This is my Plugin Configuration:
Image

Are there any alternatives? Any new .xsl files? Do I have to add something to it?
In the attachments you can find the current .xsl im using.

I also tried out the new Jenkins plugin: https://wiki.jenkins.io/display/JENKINS ... ion+Plugin

But this is only working when im Executing Tests over the Ranorex Test suite but we trigger the tests by an external tool which provides the Ranorex reports in the end.

Thanks in advance and Best Regards
Giuseppe
Attachments
Ranorex Report XSL.zip
my file
(8.05 KiB) Downloaded 5 times

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5071
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Jenkins Xunit plugin

Post by odklizec » Wed May 08, 2019 2:26 pm

Hi,

Since Ranorex now supports creating of junit files, xunit plugin is no longer required. The Jenkins integration guide is a bit obsolete in this area. ;) You should use junit plugin instead.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration