Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Options for extracting tests 'minutes taken in total' over time

I'd like to extract the 'minutes taken in total' for Tests from a specific job in a specific build. 

Ideally, this could be done by the REST API, but I don't see the option for this, only buildDurationDescription, which is different.

URLs tried: http://bamboodev/rest/api/latest/result/HOME-NH2EPHC-JOB1-latest?expand=testResults.allTests and http://bamboodev/rest/api/latest/result/HOME-NH2EPHC-latest?expand=stages.stage.results.result.testResults

- where JOB1 is the Default Job and HOME-NH2EPHC is the build key. 

I dug up this old thread, but the option suggested, "analyze the test result xml files stored on the Bambo server in the "builds" directory" doesn't seem feasible in my environment: https://community.atlassian.com/t5/Bamboo-questions/Is-there-a-way-to-get-at-the-test-running-time-data-in-Bamboo/qaq-p/152047

What are my other options? Are there suitable plugins, or is there something I have missed?

It would be great to get a history of test times for a build/job, but one step at a time...

Thanks

1 answer

1 accepted

0 votes
Answer accepted

Hi @paulm29

I don't know any plugin used for this, but I don't know a lot of Bamboo plugins anyway.

As you already know, Bamboo REST API does not provide such information for tests.

In order to help you moving forward, I built the following query that may be useful to you. You might need to adjust it to your purpose, but at least you have a start.

SELECT TCL.TEST_CLASS_NAME
, TCA.TEST_CASE_NAME
, B.FULL_KEY
, TCA.FIRST_BUILD_NUM
, TCA.LAST_BUILD_NUM
, TCA.AVG_DURATION
FROM TEST_CASE TCA
JOIN TEST_CLASS TCL ON TCA.TEST_CLASS_ID=TCL.TEST_CLASS_ID
JOIN BUILD B ON TCL.MASTER_JOB_ID=B.BUILD_ID

I also created a feature request for this:

I hope that helps.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

223 views 4 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you