junit parser doesn't parse "system-out" element in test cases

I have a test generating test reports in a junit xml format, and parsed by JUnit parser in Bamboo. But I found JUnit parser doesn't parse anything in "system-out" element in test cases.

The customized report I asked the script to generate is like the format in Bamboo documentation: https://confluence.atlassian.com/display/BAMBOO/JUnit+parsing+in+Bamboo

Does anyone have the same issue?

6 answers

1 accepted

I finally use the strategy @Krystian Brazulewicz suggested. I put all the information I want to see in test artifacts. 

This workaround was also mentioned by https://jira.atlassian.com/browse/BAM-782. The shortcoming is also analysed.

However, it works very good for my specific case. Thanks!

0 votes

Bamboo does not parse system-out element. If you're interested in details please see JunitTestResultsParser class in Bamboo source code.

If you believe that such feature would be useful please create an Improvement request in our public bug tracker.

Thanks a lot! @Krystian Brazulewicz

I need to dump a set of "name = value" parameters shown in the test result. Is there any way to do that?

I also tried put it in properties element, it seems  Bamboo also doesn't parse properties either.

btw, could you tell me how to see Bamboo source code?

Hi Man, I wrote my own JUNIT parser, which creates the output JUNIT-format (*xml) file, and all *<property>* and *<system-out>* tags are not visible anywhere in Bamboo. So please let me know if you find any solution how to visualise them. Thanks, Jan.

0 votes

This page describes what needs to be done to download Bamboo source code: https://www.atlassian.com/software/bamboo/download

0 votes

You can also try attaching report file as an artifact to your build and then investigate the reason for your failing build using this artifact.

There are already issues asking for this rather fundamental feature:

https://jira.atlassian.com/browse/BAM-1335

https://jira.atlassian.com/browse/BAM-8596

https://jira.atlassian.com/browse/BAM-782

In my case, Gradle produces JUnit reports with useful information in the system-out and system-err tags. It would help me considerably if Bamboo displayed that information like Jenkins does. It is one of the reasons I don't use Bamboo yet. The other is https://jira.atlassian.com/browse/BAM-11205 (I need Bamboo to build Stash fork pull requests natively).

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,070 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot