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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

1 vote
Answer accepted

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

Investigate deployment-related incidents with Bamboo and Opsgenie together

Back in April of last year one of the major product announcements from Opsgenie was the launch of the Incident investigation view which created a deep connection between Bitbucket and Opsgenie, empow...

151 views 1 4
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