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

Jenkins Latest Test Result was not getting updated when failed tests are passed in rerun

    Details

    • Similar Issues:

      Description

      Recently we started migrating from bamboo plan to jenkins. Currently we are facing one issue with respective to "Latest Test Result."

      Jenkins Job configured in below flow:

      1.) Source code management--Git.
      2.) Build triggers –Build whenever a SNAPSHOT dependency is built. 3.) Pre-steps –-Executing shell program (Setting up selenium grid hub url.) 4.) Build -Root Pom (project POM location.). - Goals (maven command )

      5.) Post Steps: - Run regardless of build result. executing shell command -If we have testNg failures file then trying to rerun the failures again. 6.) Post-build Actions: - Publish testNg Results (folderName/target/failsafe-reports/*.xml)

      Issue:In first run if we have two failures and those two failures got passed in second run but Latest Test Result was not getting updated and also still it shows build as unstable.

      Note:Jenkins version 1.60

      Could you please help me out on this regard.
      Is there is any way to specify the testng-results.xml that should override Latest Test Results.

        Attachments

        1. screenshot-1.png
          screenshot-1.png
          65 kB
        2. SS.PNG
          SS.PNG
          130 kB

          Activity

          Hide
          lohith lohith V added a comment -

          Nalin MakarCould you please help me out on this,if you need any more details let me know. Sincerely I am looking for support if there is any alternate approach please let me know.

          Show
          lohith lohith V added a comment - Nalin Makar Could you please help me out on this,if you need any more details let me know. Sincerely I am looking for support if there is any alternate approach please let me know.
          Hide
          nullin Nalin Makar added a comment -

          This is a not something that testng plugin can help you with. The plugin uses the specified file path pattern and picks up all XML files, parses them for testng results and then reports on them. If the testng result XML file with the failed tests is present, they will still be reported.

          This plugin doesn't support rerunning failed tests and then reporting on them. You'll be better of using a RetryAnalyzer in your tests to retry the failed tests at the point when they fail.

          Show
          nullin Nalin Makar added a comment - This is a not something that testng plugin can help you with. The plugin uses the specified file path pattern and picks up all XML files, parses them for testng results and then reports on them. If the testng result XML file with the failed tests is present, they will still be reported. This plugin doesn't support rerunning failed tests and then reporting on them. You'll be better of using a RetryAnalyzer in your tests to retry the failed tests at the point when they fail.

            People

            • Assignee:
              nullin Nalin Makar
              Reporter:
              lohith lohith V
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: