Is there a way for Bamboo to expose information about the specifics of a failed test using the REST API?

We're running Bamboo 3.4.4, and we can't find a way to get the class/method name information from a failing test via the REST API.

We're using:

http://bamboo.123.com/rest/api/latest/result/PROJ-PLAN-JOB-NUM?expand=testResults.failed.testResult.errors

, but the most information we get back from this is:

<testResults fixed="0" existingFailed="0" newFailed="46" failed="46" successful="149" all="195" expand="allTests,successfulTests,failedTests,newFailedTests,existingFailedTests,fixedTests">
<allTests size="195" max-result="195" start-index="0"/>
<successfulTests size="149" max-result="149" start-index="0"/>
<failedTests size="46" max-result="46" start-index="0"/>
<newFailedTests size="46" max-result="46" start-index="0"/>
<existingFailedTests size="0" max-result="0" start-index="0"/>
<fixedTests size="0" max-result="0" start-index="0"/>
</testResults>

Are we doing something wrong, or is this the most information that can be exposed from the REST API around test information?

1 answer

1 accepted

I realise this is an old post. But just in case someone else is having the same problem...

* The expand parameters look incorrect. It should be "testResults.failedTests".

* Also, you can only get test results at the JOB level. Not at the plan level. (The above example is correct, but often a common mistake)

Cheers,
Brydie

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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,452 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