View Issue Details

IDProjectCategoryView StatusLast Update
0005901Compliance Test Tool (CTT) Unified Architecture5 - General Problempublic2020-09-04 16:22
Reporterkarol.lukawski@woodward.com Assigned ToAlexander Allmendinger  
PrioritynormalSeveritytextReproducibilityalways
Status assignedResolutionopen 
Product Version1.04.09.396 
Summary0005901: xUnit CTT_to_JUnit.xsl doesn't match jUnit format
Description

I have a job in Jenkins CI created according to the CTT help. The Jenkins calls uacompliancetest.exe with selected Project and Selection of tests. Then result from the CTT is copied into the workspace.
There is a Post-build action with "Publish xUnit test result report" and it is configuraed exactly like in the CTT help.
The result is, that converted by CTT_toJUnit.xsl results file is not compatible with JUnit format. See returned error from Jenkins's job:

"INFO: [Custom Tool] - 1 test report file(s) were found with the pattern 'JUNIT_results.xml' relative to 'C:\Projects_Jenkins\workspace\workspace\JENKINS_TESTS_SANDBOX\KLukawski\NGC_OPCUA_CTT_VnV' for the testing framework 'Custom Tool'.
WARNING: The converted file for the input file 'C:\Projects_Jenkins\workspace\workspace\JENKINS_TESTS_SANDBOX\KLukawski\NGC_OPCUA_CTT_VnV\JUNIT_results.xml' doesnt match the JUnit format.
WARNING: At line 6 of file:/C:/Projects/_Jenkins/workspace/workspace/JENKINS_TESTS_SANDBOX/KLukawski/NGC_OPCUA_CTT_VnV/generatedJUnitFiles/a14f5352-1deb-40c4-a344-9fa24a92f734/Custom%20Tool/TEST-ab43a144-b5ea-4ce7-a6cc-b3516128e5d3.xml:cvc-complex-type.4: Attribute 'failures' must appear on element 'testsuite'.
ERROR: cvc-complex-type.4: Attribute 'failures' must appear on element 'testsuite'.
ERROR: Step ‘Publish xUnit test result report’ failed: The converted file for the result file "

Steps To Reproduce
  1. Create a job in Jenkins according to the CTT Help: file:///C:/Program%20Files%20(x86)/OPC%20Foundation/UA%201.04/Compliance%20Test%20Tool/help/index.htm#t=jenkins.htm
  2. Create Post-Build Action with xUnit plugin, just like described in the help: file:///C:/Program%20Files%20(x86)/OPC%20Foundation/UA%201.04/Compliance%20Test%20Tool/help/index.htm#t=jenkinsxunitplugin.htm
  3. Run the job and see the error.
Additional Information

Attached both result files:

  1. JUNIT_results.xml - file produced by CTT
  2. results.xml - file after transformation with xUnit and xsl
  3. CTT_to_JUnit2.xsl - custom stylesheet, copied from the help file:///C:/Program%20Files%20(x86)/OPC%20Foundation/UA%201.04/Compliance%20Test%20Tool/help/index.htm#t=jenkinsxunitplugin.htm
TagsCI, Jenkins, jUnit, xUnit
Attached Files
Results.zip (175,289 bytes)
Files Affected

Activities

Issue History

Date Modified Username Field Change
2020-08-19 07:58 karol.lukawski@woodward.com New Issue
2020-08-19 07:58 karol.lukawski@woodward.com Tag Attached: CI
2020-08-19 07:58 karol.lukawski@woodward.com Tag Attached: Jenkins
2020-08-19 07:58 karol.lukawski@woodward.com Tag Attached: jUnit
2020-08-19 07:58 karol.lukawski@woodward.com Tag Attached: xUnit
2020-08-19 07:58 karol.lukawski@woodward.com File Added: Results.zip
2020-09-04 16:01 Paul Hunkar Assigned To => Alexander Allmendinger
2020-09-04 16:01 Paul Hunkar Status new => assigned
2020-09-04 16:21 Paul Hunkar Priority normal => low
2020-09-04 16:21 Paul Hunkar Description Updated
2020-09-04 16:21 Paul Hunkar Steps to Reproduce Updated
2020-09-04 16:21 Paul Hunkar Additional Information Updated
2020-09-04 16:22 Paul Hunkar Priority low => normal