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

testNg plugin - publishing multiple reports separately on build page

    • 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

          [JENKINS-46387] testNg plugin - publishing multiple reports separately on build page

          Sameer Jethvani created issue -
          Sameer Jethvani made changes -
          Attachment New: image-2017-08-23-18-46-12-127.png [ 39386 ]
          Sameer Jethvani made changes -
          Description Original: Scenario

          We are having a scenario where in we want to run failing tests again in same build execution & publish consolidated test results on jenkins with pre failure ones .

          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 

          !image-2017-08-23-18-37-15-980.png!

          *Problem*

          Now I want to publish consolidated-testng-results.xml along with first testng-results.xml(normal execution results) 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 reports . 

          !image-2017-08-23-18-39-05-688.png!

           

          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
          New: *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)

          !image-2017-08-23-18-37-15-980.png|width=515,height=172!

          *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 . 

          !image-2017-08-23-18-46-12-127.png|width=560,height=233!

           

          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
          Sameer Jethvani made changes -
          Attachment Original: image-2017-08-23-18-39-05-688.png [ 39384 ]
          Sameer Jethvani made changes -
          Summary Original: Publishing multiple reports separately in jenkins' testNg plugin New: testNg plugin - publishing multiple reports separately on build page
          Mark Waite made changes -
          Assignee Original: Nalin Makar [ nullin ]

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

              Created:
              Updated: