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

Bamboo - Integrate with custom Testing Framework

I've a custom test framework/system, as part of my CI process I want to have Bamboo read the results of the tests for a given build.

In my head the process should be like:

  1. Bamboo creates the build & deploys to the appropiate testing environment.
  2. Bamboo signals my test system to run the test suite against the deployed build.
  3. My test system does it's stuff (results are stored in a custom DB).
  4. Bamboo somehow asks/gets the results from the testing process. 
  5. I can use Bamboo GUI to browser build tests results (passed, failed, etc).

I tried to google for an answer but it's difficult to find info on this. I assume I have to generate some kind of file with test result data for Bamboo to consume. Maybe use an existing Bamboo test result parser such Junit, and write my results with that format?

 

Thanks

1 answer

1 accepted

1 vote
Answer accepted

The easiest way would be to convert test result data of your system to JUnit format, so JUnit Parser (https://confluence.atlassian.com/bamboo/junit-parser-289277056.html) would parse it.

Another solution would be to write your own test parser. Good starting point for that would be https://developer.atlassian.com/bamboodev/bamboo-tasks-api/test-collection-and-reporting

On marketplace there is Generic Test Results Parser for Bamboo (https://marketplace.atlassian.com/plugins/com.valens.bamboo-logparser-plugin/server/overview), but honestly I have no idea how good it is.

Thanks, I'm looking for Junit format, although I also will investigate your other proposals just to compare.

Where should I place the generated XML files?

ie my build ulr is http://.../browse/GT-RC1603-21 , 21 is the build number, so I think xml files somehow must be related to each build, right ? otherwise history is lost after a new build.

I've learned that test results are stored in the bamboo DB so no problem with xml files and history. 

Yes that is correct - file will be parsed and data put into database.

Just note there is a bug in the Junit Parser which means duplicate test names don't get parsed correctly. See: https://jira.atlassian.com/browse/BAM-17738

Like Soeren Rumpf likes this

And another note regarding huge test suites (> 1k tests) which will not all show up in the tests page of the job. See https://jira.atlassian.com/browse/BAM-20632

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

220 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