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

How to parse gtest test result XML file in Junit Parser in Bamboo

Rasmiranjan Nayak March 2, 2014

I am trying to parse my g-test generated test result file in Bamboo using Junit Parser. I am providing path where my test cases XML file is located. I am providing path as

**/xml-data/build-dir/FIRSTPROJECT-NEWPLAN-JOB1/.xml

"c:\User\bamboo-home\xml-data\build-dir\FIRSTPROJECT-NEWPLAN-JOB1\DevUnitTestReport.xml"//Without Double Quote also

I have tried all the alternative ways to provide the path. But finally I found below error. In below error you may find skipping Build and Run, because I have disables those tasks. Because now I want to parse only my test result file. Please help me whether my way of providing path is wrong or I am doing it in a wrong way. Please help me

I have searched everywhere but none of the answer did help me.

27-Feb-2014 18:45:57    Build FirstProject - NewPlan - Default Job #38 (FIRSTPROJECT-NEWPLAN-JOB1-38) started building on agent Default Agent
27-Feb-2014 18:45:57    Build working directory is C:\User\bamboo-home\xml-data\build-dir\FIRSTPROJECT-NEWPLAN-JOB1
27-Feb-2014 18:45:57    Executing build FirstProject - NewPlan - Default Job #38 (FIRSTPROJECT-NEWPLAN-JOB1-38)
27-Feb-2014 18:45:57    Running pre-build action: Clover Grails PreBuild Action
27-Feb-2014 18:45:57    Running pre-build action: VCS Version Collector
27-Feb-2014 18:45:57    Skipping execution of task 'Build and Run' as it is disabled
27-Feb-2014 18:45:57    Skipping execution of task 'Run' as it is disabled
27-Feb-2014 18:45:57    Starting task 'Test Parsing' of type 'com.atlassian.bamboo.plugins.testresultparser:task.testresultparser.junit'
27-Feb-2014 18:45:57    Parsing test results...
27-Feb-2014 18:45:57    Failing task since test cases were expected but none were found.
27-Feb-2014 18:45:57    Finished task 'Test Parsing'
27-Feb-2014 18:45:57    Running post build plugin 'NCover Results Collector'
27-Feb-2014 18:45:57    Running post build plugin 'Clover Results Collector'
27-Feb-2014 18:45:57    Running post build plugin 'Artifact Copier'
27-Feb-2014 18:45:57    Finalising the build...
27-Feb-2014 18:45:57    Stopping timer.
27-Feb-2014 18:45:57    Build FIRSTPROJECT-NEWPLAN-JOB1-38 completed.
27-Feb-2014 18:45:57    Running on server: post build plugin 'NCover Results Collector'
27-Feb-2014 18:45:57    Running on server: post build plugin 'Clover Delta Calculator'
27-Feb-2014 18:45:57    Running on server: post build plugin 'Build Hanging Detection Configuration'
27-Feb-2014 18:45:57    Running on server: post build plugin 'Maven Dependencies Postprocessor'
27-Feb-2014 18:45:57    All post build plugins have finished
27-Feb-2014 18:45:57    Generating build results summary...
27-Feb-2014 18:45:57    Saving build results to disk...
27-Feb-2014 18:45:57    Indexing build results...
27-Feb-2014 18:45:57    Finished building FIRSTPROJECT-NEWPLAN-JOB1-38.

1 answer

1 accepted

1 vote
Answer accepted
Ron Chan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 3, 2014

Rasmiranjan,

The JUnit Parser looks for a relative path (from the working directory) not an explicit path. So in your case, just try "*.xml" (without the quotes).

Hope that helps!

Ron

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events