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

Not able to configure Test report configuration

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • build-line-plugin
    • None
    • WIndows 7,Jenkin Ver 1.572

      Test step:

      • Provided the source build file i.e dot net file
        As part of the test report configuration added location.
      • Not able to configure the NUnit test result and below is the error message found and not able to complete the job.
      Recording NUnit tests results
      ERROR: Publisher hudson.plugins.nunit.NUnitPublisher aborted due to exception
      hudson.util.IOException2: Could not transform the NUnit report. Please report this issue to the plugin author
      	at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:60)
      	at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:26)
      	at hudson.FilePath.act(FilePath.java:922)
      	at hudson.FilePath.act(FilePath.java:895)
      	at hudson.plugins.nunit.NUnitPublisher.perform(NUnitPublisher.java:116)
      	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736)
      	at hudson.model.Build$BuildExecution.post2(Build.java:183)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685)
      	at hudson.model.Run.execute(Run.java:1757)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:234)
      Caused by: org.xml.sax.SAXParseException; systemId: file:/C:/Program%20Files%20(x86)/Jenkins/jobs/Sample3/workspace/temporary-junit-reports/temp-junit.xml; lineNumber: 3; columnNumber: 5; Content is not allowed in prolog.
      	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
      	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      	at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
      	at hudson.plugins.nunit.NUnitReportTransformer.splitJUnitFile(NUnitReportTransformer.java:100)
      	at hudson.plugins.nunit.NUnitReportTransformer.transform(NUnitReportTransformer.java:71)
      	at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:55)
      	... 13 more
      

          [JENKINS-23960] Not able to configure Test report configuration

          LNP created issue -
          LNP made changes -
          Assignee New: Jenkins Admin User [ jenkins ]
          Alexandru Gheorghe made changes -
          Description Original: Test step:
          Provided the source build file i.e dot net file
          As part of the test report configuration added location.
          Not able to configure the NUnit test result and below is the error message found and not able to complete the job.



          Recording NUnit tests results
          ERROR: Publisher hudson.plugins.nunit.NUnitPublisher aborted due to exception
          hudson.util.IOException2: Could not transform the NUnit report. Please report this issue to the plugin author
          at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:60)
          at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:26)
          at hudson.FilePath.act(FilePath.java:922)
          at hudson.FilePath.act(FilePath.java:895)
          at hudson.plugins.nunit.NUnitPublisher.perform(NUnitPublisher.java:116)
          at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736)
          at hudson.model.Build$BuildExecution.post2(Build.java:183)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685)
          at hudson.model.Run.execute(Run.java:1757)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:234)
          Caused by: org.xml.sax.SAXParseException; systemId: file:/C:/Program%20Files%20(x86)/Jenkins/jobs/Sample3/workspace/temporary-junit-reports/temp-junit.xml; lineNumber: 3; columnNumber: 5; Content is not allowed in prolog.
          at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
          at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
          at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
          at hudson.plugins.nunit.NUnitReportTransformer.splitJUnitFile(NUnitReportTransformer.java:100)
          at hudson.plugins.nunit.NUnitReportTransformer.transform(NUnitReportTransformer.java:71)
          at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:55)
          ... 13 more
          New: Test step:
          - Provided the source build file i.e dot net file
          As part of the test report configuration added location.
          - Not able to configure the NUnit test result and below is the error message found and not able to complete the job.


          {noformat}
          Recording NUnit tests results
          ERROR: Publisher hudson.plugins.nunit.NUnitPublisher aborted due to exception
          hudson.util.IOException2: Could not transform the NUnit report. Please report this issue to the plugin author
          at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:60)
          at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:26)
          at hudson.FilePath.act(FilePath.java:922)
          at hudson.FilePath.act(FilePath.java:895)
          at hudson.plugins.nunit.NUnitPublisher.perform(NUnitPublisher.java:116)
          at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736)
          at hudson.model.Build$BuildExecution.post2(Build.java:183)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685)
          at hudson.model.Run.execute(Run.java:1757)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:234)
          Caused by: org.xml.sax.SAXParseException; systemId: file:/C:/Program%20Files%20(x86)/Jenkins/jobs/Sample3/workspace/temporary-junit-reports/temp-junit.xml; lineNumber: 3; columnNumber: 5; Content is not allowed in prolog.
          at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
          at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
          at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
          at hudson.plugins.nunit.NUnitReportTransformer.splitJUnitFile(NUnitReportTransformer.java:100)
          at hudson.plugins.nunit.NUnitReportTransformer.transform(NUnitReportTransformer.java:71)
          at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:55)
          ... 13 more
          {noformat}

          Would be useful to have as attachment the report in case it doesn't imply sensitive data.

          Alexandru Gheorghe added a comment - Would be useful to have as attachment the report in case it doesn't imply sensitive data.

          Hi,

          I've encountered the similar issue:
          Recording NUnit tests results
          ERROR: Publisher hudson.plugins.nunit.NUnitPublisher aborted due to exception
          hudson.util.IOException2: Could not transform the NUnit report. Please report this issue to the plugin author
          at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:60)
          at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:26)
          at hudson.FilePath.act(FilePath.java:852)
          at hudson.FilePath.act(FilePath.java:825)
          at hudson.plugins.nunit.NUnitPublisher.perform(NUnitPublisher.java:102)
          at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779)
          at hudson.model.Build$BuildExecution.post2(Build.java:183)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726)
          at hudson.model.Run.execute(Run.java:1568)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:236)
          Caused by: org.xml.sax.SAXParseException; systemId: file:/C:/Workspace/JenkinsWorkspace/smoketest-ZpiReferenceSwitch/temporary-junit-reports/temp-junit.xml; lineNumber: 3; columnNumber: 9; Content is not allowed in prolog.
          at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
          at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
          at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
          at hudson.plugins.nunit.NUnitReportTransformer.splitJUnitFile(NUnitReportTransformer.java:100)
          at hudson.plugins.nunit.NUnitReportTransformer.transform(NUnitReportTransformer.java:71)
          at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:55)
          ... 13 more

          The temp-junit.xml (partly printed) looks like:
          <?xml version="1.0" encoding="UTF-8"?>

          nunit.framework

          Attribute used to apply a category to a test

          Michael Stauder added a comment - Hi, I've encountered the similar issue: Recording NUnit tests results ERROR: Publisher hudson.plugins.nunit.NUnitPublisher aborted due to exception hudson.util.IOException2: Could not transform the NUnit report. Please report this issue to the plugin author at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:60) at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:26) at hudson.FilePath.act(FilePath.java:852) at hudson.FilePath.act(FilePath.java:825) at hudson.plugins.nunit.NUnitPublisher.perform(NUnitPublisher.java:102) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726) at hudson.model.Run.execute(Run.java:1568) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: org.xml.sax.SAXParseException; systemId: file:/C:/Workspace/JenkinsWorkspace/smoketest-ZpiReferenceSwitch/temporary-junit-reports/temp-junit.xml ; lineNumber: 3; columnNumber: 9; Content is not allowed in prolog. at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) at hudson.plugins.nunit.NUnitReportTransformer.splitJUnitFile(NUnitReportTransformer.java:100) at hudson.plugins.nunit.NUnitReportTransformer.transform(NUnitReportTransformer.java:71) at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:55) ... 13 more The temp-junit.xml (partly printed) looks like: <?xml version="1.0" encoding="UTF-8"?> nunit.framework Attribute used to apply a category to a test

          I see that the spaces are removed, "lineNumber: 3; columnNumber: 9; Content is not allowed in prolog." is at the start of the text " nunit.framework" (8 spaces were removed in the preview comment)

          Michael Stauder added a comment - I see that the spaces are removed, "lineNumber: 3; columnNumber: 9; Content is not allowed in prolog." is at the start of the text " nunit.framework" (8 spaces were removed in the preview comment)
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 156830 ] New: JNJira + In-Review [ 179410 ]

            jenkins Jenkins Admin User
            lpradeep LNP
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: