Is it possible in Bamboo to read the test status from the execution log of build job, when running a script task ?

I am executing a test pack through command line using script task, I need to update/ show its status in bamboo as, for e.g. :

  • 2 of 10 failed

Presently my test pack does not create any report which can be parsed using any default parser tasks such as JUnit Parser, TESTNG Parser etc.

Is there a way by which a build job can pick the status from execution log/ std out , as I update the execution log with the execution status after end of each test case?

2 answers

1 votes

Hello Nikhil,

Bamboo doesn't have built-in support for your scenario. On of the way to implement it is to store result of you script command to some file and then create Bamboo plugin which can parse this file and generate test report as JUnit Parser plugin does.

1 votes

Iulius Hutuleac has thankfully generalized the approach Alexey suggested in his answer (+1) and implemented a Generic Test Results Parser for Bamboo based on the Bamboo Test Collection and Reporting SPI - the free add-on offers Simple file parsing and test case handling for generic test result formats:

Just select the files, create a regular expression matching lines that should be treated as failed test cases and lines that should be treated as passed test cases.

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,068 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