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

Plugin is unable to handle NoData in TimeRangeInfo in the SLA.xml

XMLWordPrintable

      I got this error message from the console when running a testcase:
      Recording test results
      Report archiving mode is set to: PUBLISH_HTML_REPORT
      Zipping report folder: d:\Jenkins\workspace\TF_PHKO_Enter_prestandatest\ea2861
      Parsing test run dataset for perfomrance report
      ERROR: Build step failed with exception
      java.lang.NullPointerException
      at
      com.hp.application.automation.tools.results.RunResultRecorder.addTimeRanges(RunResultRecorder.java:1175)
      at
      com.hp.application.automation.tools.results.RunResultRecorder.processSlaRule(RunResultRecorder.java:1161)
      at
      com.hp.application.automation.tools.results.RunResultRecorder.processSLA(RunResultRecorder.java:1081)
      at
      com.hp.application.automation.tools.results.RunResultRecorder.parseScenarioResults(RunResultRecorder.java:997)
      at
      com.hp.application.automation.tools.results.RunResultRecorder.buildJobDataset(RunResultRecorder.java:980)
      at
      com.hp.application.automation.tools.results.RunResultRecorder.recordRunResults(RunResultRecorder.java:215)
      at
      com.hp.application.automation.tools.results.RunResultRecorder.perform(RunResultRecorder.java:1237)
      at
      hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
      at
      hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      at
      hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      at
      hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
      at
      hudson.model.Build$BuildExecution.post2(Build.java:186)
      at
      hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
      at
      hudson.model.Run.execute(Run.java:1753)
      at
      hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at
      hudson.model.ResourceController.execute(ResourceController.java:98)
      at
      hudson.model.Executor.run(Executor.java:405)
      Build step 'Publish HP tests result' marked build as failure

      I will attach a copy of the SLA.xml
      There should be some check to see if the element is containing information to avoid this null pointer exception to handle this maybe.

            yafim_kazak Yafim Kazak
            pellos Per Högberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: