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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,552,573
Community Members
 
Community Events
184
Community Groups

Testng parser results to custom bamboo variable

I want to get testng results and store them in variables, but there's no explanation what "testng parser" actually does and what I can do with it. I want to write a bash script and make use of the numbers of passed and failed tests. Is there a way to achieve this?

testng-results ignored="0" total="1" passed="0" failed="1" skipped="0"

1 answer

0 votes
Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jun 16, 2022 • edited

Hello @daniel_waelti, Welcome to Atlassian Community!

Please check Bamboo's JUnit Parser:

Regards,

Eduardo Alvarenga
Atlassian Support APAC

@Eduardo Alvarenga This is not very helpful. The information about usage of JUnit Parser is as sparse as it is for Testng Parser. I'd like to know, how to actually extract the values from the test report xml (Imho this is the purpose of this plugin, or not?).

Regards

Daniel

Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jun 17, 2022

Hello @daniel_waelti

Sorry but Bambo will not export the TestNG results to a variable or text file. For that, you will have to run the equivalent testNG class manually via a Script task, write the results to a file and feed them back to Bamboo through an "Inject Bamboo variables" task.

Eduardo Alvarenga
Atlassian Support APAC

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events