Generated JUnit report cannot be parsed in Bamboo

Bug reports.
mariaspeigl
Posts: 13
Joined: Mon Jan 07, 2019 11:50 am
Location: Germany (Bavaria)

Generated JUnit report cannot be parsed in Bamboo

Post by mariaspeigl » Tue Jan 15, 2019 10:52 am

Hello everyone,

we are using the current version of Ranorex (8.3.2).
Currently I am trying to set up Ranorex to run via a Bamboo plan.
Generally the Ranorex solution can be build successfully.
Unfortunately the automatically generated jUnit report cannot be parsed in the according Bamboo-task:

Code: Select all

simple	15-Jan-2019 10:36:22	Starting task 'Parse Ranorex Report XML' of type 'com.atlassian.bamboo.plugins.testresultparser:task.testresultparser.junit'
simple	15-Jan-2019 10:36:22	Parsing test results under F:\Bamboo-home-6.4.0\xml-data\build-dir\Z999999-RT-CBUT...
error	15-Jan-2019 10:36:22	Failed to parse test result file "F:\Bamboo-home-6.4.0\xml-data\build-dir\Z999999-RT-CBUT\RanorexBamboo\RanorexBamboo\bin\Debug\RanorexBamboo_20190115_103611.rxlog.junit.xml"
simple	15-Jan-2019 10:36:22	Failing task since 1 parsing errors occurred.
simple	15-Jan-2019 10:36:22	Finished task 'Parse Ranorex Report XML' with result: Error
Here is the generated JUnit report, that could not be parsed in Bamboo due to a parsing error:
RanorexBamboo_20190114_175451.rxlog.junit.xml

I also tried to adopt another JUnit report with basically the same steps.
When I let parse this .xml file with the JUnit parser in Bamboo I do not get an error.
JUnitReportWorking.rxlog.junit.xml

Can you figure out where the problem lies?
Do you plan to solve this or has anyone a solution for this issue?
I thought about manipulating the .junit.xml file in an additional task before parsing it...
You do not have the required permissions to view the files attached to this post.

ahoisl
Certified Professional
Certified Professional
Posts: 192
Joined: Fri Sep 07, 2007 8:16 am

Re: Generated JUnit report cannot be parsed in Bamboo

Post by ahoisl » Tue Jan 15, 2019 11:08 pm

This is a Bamboo issue not understanding the BOM byte at the start of the report file. See following thread for more info and how to get Bamboo to parse the file right:
viewtopic.php?f=4&t=12641&p=52342#p52342

Regards,
Alex
Ranorex Team

mariaspeigl
Posts: 13
Joined: Mon Jan 07, 2019 11:50 am
Location: Germany (Bavaria)

Re: Generated JUnit report cannot be parsed in Bamboo

Post by mariaspeigl » Wed Jan 16, 2019 10:39 am

Thank you for your reply, Alex!

For everyone having the same problem. I just added this script-task to my Bamboo-plan --> Now the .junit.xml file can be parsed :D
Scrip-Task-Bamboo.jpg
You do not have the required permissions to view the files attached to this post.
Last edited by mariaspeigl on Thu Mar 21, 2019 2:02 pm, edited 1 time in total.

ahoisl
Certified Professional
Certified Professional
Posts: 192
Joined: Fri Sep 07, 2007 8:16 am

Re: Generated JUnit report cannot be parsed in Bamboo

Post by ahoisl » Wed Jan 16, 2019 11:38 am

Thank you for the update and the additional information, Maria!