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

Jinjing June 8, 2015

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

0 votes
Answer accepted
Jinjing September 3, 2015

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
martinda14 September 3, 2015

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).

0 votes
Krystian Brazulewicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 9, 2015

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.

0 votes
Krystian Brazulewicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 9, 2015

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

0 votes
Jinjing June 9, 2015

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?

Jan z Ondříkovic June 28, 2015

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
Krystian Brazulewicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 9, 2015

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events