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

Unable to archive reports after test

    Details

    • Similar Issues:

      Description

      I keep getting no links to the reports for some of my tests that I run from Jenkins. The console output looks like this.
      22-05-2017 06:32:43 Running: d:\Jenkins\at\workspace\TF_SIT_RFB_SKAPA_AB_ENKEL_BETALA_EJ_001
      Running test: d:\Jenkins\at\workspace\TF_SIT_RFB_SKAPA_AB_ENKEL_BETALA_EJ_001
      Test result: Failed
      22-05-2017 06:43:56 Test complete: d:\Jenkins\at\workspace\TF_SIT_RFB_SKAPA_AB_ENKEL_BETALA_EJ_001
      -------------------------------------------------------------------------------------------------------
      ================================================
      Run status: Job unstable (Passed with failed tests), total tests: 1, succeeded: 0, failures: 1, errors: 0
      Failed : d:\Jenkins\at\workspace\TF_SIT_RFB_SKAPA_AB_ENKEL_BETALA_EJ_001
      ================================================
      Build step 'Execute HP tests from file system' changed build result to UNSTABLE
      Recording test results
      None of the test reports contained any result
      RunResultRecorder: didn't find any test results to record
      Finished: UNSTABLE

      It's not just from failed tests either I can get this from a test that passed like this one.
      ============================================================================
      22-05-2017 06:50:58 Running: d:\Jenkins\sys1\workspace\TF_SIT_RFB_SKAPA_AB_ENKEL_BETALA_002
      Running test: d:\Jenkins\sys1\workspace\TF_SIT_RFB_SKAPA_AB_ENKEL_BETALA_002
      Test result: Passed
      22-05-2017 06:55:23 Test complete: d:\Jenkins\sys1\workspace\TF_SIT_RFB_SKAPA_AB_ENKEL_BETALA_002
      -------------------------------------------------------------------------------------------------------
      ================================================
      Run status: Job succeeded, total tests: 1, succeeded: 1, failures: 0, errors: 0
      Passed : d:\Jenkins\sys1\workspace\TF_SIT_RFB_SKAPA_AB_ENKEL_BETALA_002
      ================================================
      Recording test results
      None of the test reports contained any result
      RunResultRecorder: didn't find any test results to record
      Finished: SUCCESS

      If I look at the slave that ran the test I can see the report folder with my test results just sitting there but somehow they dont get transfered back to Jenkins.

        Attachments

          Activity

          Hide
          pellos Per Högberg added a comment -

          After disabling the job setting "Execute concurrent builds" this problem does not occur anymore. I dont understand why this setting whould cause this issue though. But somehow running the same test on different nodes seems to mess up the report step.

          Show
          pellos Per Högberg added a comment - After disabling the job setting "Execute concurrent builds" this problem does not occur anymore. I dont understand why this setting whould cause this issue though. But somehow running the same test on different nodes seems to mess up the report step.
          Hide
          evanchen Evan Chen added a comment -

          Hi, which type of test is executed? And is there any other job in the same build?

          Show
          evanchen Evan Chen added a comment - Hi, which type of test is executed? And is there any other job in the same build?
          Hide
          pellos Per Högberg added a comment -

          I have Jenkins setup with Multijob plugin starting freestyle builds. I want to use Multijob instead of pipeline because it does exactly what I need which is to be able to trigger some jobs before others and be able to control if they need to be done in order or not and depended on other jobs.

          To answer your question the type of test is a UFT web test and there is only one test per build.

          Show
          pellos Per Högberg added a comment - I have Jenkins setup with Multijob plugin starting freestyle builds. I want to use Multijob instead of pipeline because it does exactly what I need which is to be able to trigger some jobs before others and be able to control if they need to be done in order or not and depended on other jobs. To answer your question the type of test is a UFT web test and there is only one test per build.
          Hide
          tracy_1984 tracy he added a comment - - edited

          We are getting error when run UFT tests from file system (plugin version is 5.5.2-beta), it throws exception when publish test report. Here is the Error Details

           

          And this only happens when run UFT tests from file system, it's working when run UFT tests from ALM

           
          Recording test results
          Report archiving mode is set to: ALWAYS_ARCHIVE_TEST_REPORT
          Zipping report folder: C:\JenkinsMO6\workspace\AOS-COMMON-105-SCM-UFT\Advantage_Shopping\Report
          copy from slave to master: /var/jenkins_home/jobs/AOS-COMMON-105-SCM-UFT/builds/3/archive/Advantage_Shopping_Report.zip
          ERROR: Build step failed with exception
          java.lang.NullPointerException
          at com.microfocus.application.automation.tools.results.RunResultRecorder.writeReportMetaData2XML(RunResultRecorder.java:603)
          at com.microfocus.application.automation.tools.results.RunResultRecorder.archiveTestsReport(RunResultRecorder.java:566)
          at com.microfocus.application.automation.tools.results.RunResultRecorder.recordRunResults(RunResultRecorder.java:217)
          at com.microfocus.application.automation.tools.results.RunResultRecorder.perform(RunResultRecorder.java:1462)
          at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
          at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:735)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:676)
          at hudson.model.Build$BuildExecution.post2(Build.java:186)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:621)
          at hudson.model.Run.execute(Run.java:1760)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:405)
          Build step 'Publish Micro Focus tests result' marked build as failure
          Finished: FAILURE

          Show
          tracy_1984 tracy he added a comment - - edited We are getting error when run UFT tests from file system (plugin version is 5.5.2-beta), it throws exception when publish test report. Here is the Error Details   And this only happens when run UFT tests from file system, it's working when run UFT tests from ALM   Recording test results Report archiving mode is set to: ALWAYS_ARCHIVE_TEST_REPORT Zipping report folder: C:\JenkinsMO6\workspace\AOS-COMMON-105-SCM-UFT\Advantage_Shopping\Report copy from slave to master: /var/jenkins_home/jobs/AOS-COMMON-105-SCM-UFT/builds/3/archive/Advantage_Shopping_Report.zip ERROR: Build step failed with exception java.lang.NullPointerException at com.microfocus.application.automation.tools.results.RunResultRecorder.writeReportMetaData2XML(RunResultRecorder.java:603) at com.microfocus.application.automation.tools.results.RunResultRecorder.archiveTestsReport(RunResultRecorder.java:566) at com.microfocus.application.automation.tools.results.RunResultRecorder.recordRunResults(RunResultRecorder.java:217) at com.microfocus.application.automation.tools.results.RunResultRecorder.perform(RunResultRecorder.java:1462) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:735) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:676) at hudson.model.Build$BuildExecution.post2(Build.java:186) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:621) at hudson.model.Run.execute(Run.java:1760) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:405) Build step 'Publish Micro Focus tests result' marked build as failure Finished: FAILURE

            People

            • Assignee:
              aslaakso Anda Sorina Laakso
              Reporter:
              pellos Per Högberg
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: