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,298,216
Community Members
 
Community Events
165
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

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

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
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

957 views 3 8
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