Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-46387

testNg plugin - publishing multiple reports separately on build page

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • testng-plugin
    • None

      Scenario

      We are having a scenario where in we want to run failing tests again in same build execution & publish consolidated testNg-result file along with pre rerun testng-result file , so that end user can know that what was the status before re run and what is now after re run

      Approach

      we have devised a solution to support this using 'testng-failed.xml' . At the end we are combining both 'testng-results.xml' (1st 'testng-results.xml' gets generated in normal execution & 2nd gets generated for retried (failed cases) execution) to generate consolidated-testng-results.xml file .

      I am able to publish this consolidated-testng-results.xml file properly (see below)

      Problem

      Now I want to publish consolidated-testng-results.xml along with first testng-results.xml(normal execution results before rerun) on build page . How to do that ?

       

       

      PS : I have tried using regular expression to publish multiple testng results files (as below) . However it publish combined results of all testng-result reports . 

       

      I want both reports in separate blocks , so that end user can know that what was the status before re run and what is now after re run

            Unassigned Unassigned
            sjethvani Sameer Jethvani
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: