anyone else having problems with junit-reports since update to Rx10.3?
We're using this call in groovy-Pipelines:
Code: Select all
xunit([JUnit(deleteOutputFiles: true, failIfNotNew: false, pattern: '**/*.junit.xml', skipNoTestFiles: false, stopProcessingIfError: true)])
Immediately after the update Jenkins generates errors when parsing junit-files generated from Ranorex:
19.10.2022 07:04:01 WARNING: The file 'C:\Program Files (x86)\Jenkins\jobs\4.4.1 Testergebnisse auswerten (JUnit)\workspace\ACC\DE\Std\Abschluss.html.junit.xml' is an invalid file. 19.10.2022 07:04:01 WARNING: At line 15 of file:/C:/Program%20Files%20(x86)/Jenkins/jobs/4.4.1%20Testergebnisse%20auswerten%20(JUnit)/workspace/ACC/DE/Std/Abschluss.html.junit.xml:cvc-complex-type.2.4.a: Invalid content was found starting with element 'properties'. One of '{skipped, error, failure, rerunFailure, rerunError, flakyFailure, flakyError, system-out, system-err}' is expected. ... 19.10.2022 07:04:01 org.jenkinsci.plugins.xunit.service.TransformerException: The result file 'C:\Program Files (x86)\Jenkins\jobs\4.4.1 Testergebnisse auswerten (JUnit)\workspace\ACC\DE\Std\Abschluss.html.junit.xml' for the metric 'JUnit' is not valid. The result file has been skipped.
And this is how the report-file looks like now
<testcase name="DatenbankVorTestSichern" time="7" classname="Abschluss"> <properties> <property name="test_id" value="8cba3809-eb6f-4946-8db9-15815d55264e" /> </properties> <system-out><![CDATA[---[Success] Das Sicherungsverzeichnis "<b>C:\Ranorex\ProfiTest\TestDaten\ACC\Sicherung</b>" ist vorhanden, eine Sicherung ist möglich--- ----------------------------------------------------------------------------------------------------------------------------------------- ---[Success] Kopiervorgang erfolgreich--- ----------------------------------------- ---[Success] Quelldatei "<b>C:\Ranorex\Profi32\ACC\Data\Kopie.mdb</b>" wurde erfolgreich in Archiv "<b>C:\Ranorex\ProfiTest\TestDaten\ACC\Sicherung\Abschluss - Std - DE - VorTest.mdb.zip</b>" verpackt--- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---[Success] Archivierung erfolgreich--- ---------------------------------------- ---[Success] Löschvorgang erfolgreich--- ---------------------------------------- ]]></system-out> </testcase>As menioned in the output from Jenkins system-out is not the first element. But who is wrong: Does Ranorex writes false or Jenkins reads false? Or do we have to simply change some settings in Ranorex?
P.S.: Just one further information - Rx10.1.4 wrote this output:
<testcase name="DatenbankVorTestSichern" time="7" classname="Abschluss"> <system-out><![CDATA[---[Success] Das Sicherungsverzeichnis "<b>C:\Ranorex\ProfiTest\TestDaten\ACC\Sicherung</b>" ist vorhanden, eine Sicherung ist möglich--- ----------------------------------------------------------------------------------------------------------------------------------------- ---[Success] Kopiervorgang erfolgreich--- ----------------------------------------- ---[Success] Quelldatei "<b>C:\Ranorex\Profi32\ACC\Data\Kopie.mdb</b>" wurde erfolgreich in Archiv "<b>C:\Ranorex\ProfiTest\TestDaten\ACC\Sicherung\Abschluss - Std - DE - VorTest.mdb.zip</b>" verpackt--- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---[Success] Archivierung erfolgreich--- ---------------------------------------- ---[Success] Löschvorgang erfolgreich--- ---------------------------------------- ]]></system-out> </testcase>Slightly different ...
Regards,
BCTest