Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

David Corley
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 8, 2012

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

1 vote
Answer accepted
bmccoy
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 28, 2012

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
TAGS
AUG Leaders

Atlassian Community Events