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

Testng parser results to custom bamboo variable

daniel_waelti June 16, 2022

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.
June 16, 2022

Hello @daniel_waelti, Welcome to Atlassian Community!

Please check Bamboo's JUnit Parser:

Regards,

Eduardo Alvarenga
Atlassian Support APAC

daniel_waelti June 17, 2022

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