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

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

This widget could not be displayed.

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
Community showcase
Posted Thursday in United States

Local Atlassian Research Workshop opportunity on Sep. 28th

We're looking for participants for another workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sh...

35 views 0 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you