• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • performance-plugin
    • None
    • Ubuntu 12.04, Tomcat7, oracle-java7, Jenkins v1.496, Perfomance-plugin 1.8, Standard maven project

      Perfomance plugin fail to parse Jmeter report.

      The error (I get this in console, after I ran jmeter test):

      Performance: Failed to parse /opt/jenkins/jobs/stress_testing/builds/2013-02-04_16-39-28/performance-reports/JMeter/scenario_01.jtl Content is not allowed in prolog.

      I saw a similar error relationed with jUnit reports it was solved in 1.7 version. "https://issues.jenkins-ci.org/browse/JENKINS-9655"

          [JENKINS-16627] Fail to parse jmeter report

          Reinier Boon added a comment -

          I had a similar issue. I was using Jmeter-2.9 so i downgraded Jmeter to an older version. I have now Jmeter-2.6 and that solved the issue for me.

          Reinier Boon added a comment - I had a similar issue. I was using Jmeter-2.9 so i downgraded Jmeter to an older version. I have now Jmeter-2.6 and that solved the issue for me.

          Simon Gamma added a comment - - edited

          Same here. Tested with JMeter 2.9 and JMeter 2.8. The problem seems to be, that newer jmeter versions output a csv file format into jtl (which the plugin doesn't seem to understand).
          You can change the output format to xml by using the following property (as property in ant-task or as value in jmeter.properties:

          jmeter.save.saveservice.output_format=xml
          

          It then works for me.

          Simon Gamma added a comment - - edited Same here. Tested with JMeter 2.9 and JMeter 2.8. The problem seems to be, that newer jmeter versions output a csv file format into jtl (which the plugin doesn't seem to understand). You can change the output format to xml by using the following property (as property in ant-task or as value in jmeter.properties: jmeter.save.saveservice.output_format=xml It then works for me.

          John Murray added a comment -

          rboon or cappuccino, could you please provide a sample file that can be used to reproduce?

          John Murray added a comment - rboon or cappuccino , could you please provide a sample file that can be used to reproduce?

          Simon Gamma added a comment -

          See the File EXAMPLE-OUTPUT.jtl

          Simon Gamma added a comment - See the File EXAMPLE-OUTPUT.jtl

          Could you try with xml output format?

          Philippe Koutsoulis added a comment - Could you try with xml output format?

          Simon Gamma added a comment -

          yes - as I've written above, when I force the output to xml this works. Maybe this is just something that should be added to the documentation, since the default output obviously changed between jmeter versions

          Simon Gamma added a comment - yes - as I've written above, when I force the output to xml this works. Maybe this is just something that should be added to the documentation, since the default output obviously changed between jmeter versions

          A fix for this issue is provided in pull request #45: https://github.com/jenkinsci/performance-plugin/pull/45

          Guus der Kinderen added a comment - A fix for this issue is provided in pull request #45: https://github.com/jenkinsci/performance-plugin/pull/45

          Code changed in jenkins
          User: Guus der Kinderen
          Path:
          src/main/java/hudson/plugins/performance/AbstractParser.java
          src/main/java/hudson/plugins/performance/IagoParser.java
          src/main/java/hudson/plugins/performance/JMeterCsvParser.java
          src/main/java/hudson/plugins/performance/JMeterParser.java
          src/main/java/hudson/plugins/performance/JUnitParser.java
          src/main/java/hudson/plugins/performance/JmeterSummarizerParser.java
          src/main/java/hudson/plugins/performance/WrkSummarizerParser.java
          src/test/java/hudson/plugins/performance/JMeterParserTest.java
          src/test/resources/JENKINS-16627_CSV_instead_of_XML.jtl
          src/test/resources/emptyfile.jtl
          src/test/resources/whitespace-followed-by-xml.jtl
          http://jenkins-ci.org/commit/performance-plugin/7e1559fc45ed4bea5cadbfd9eae7aaa5b30e0f5a
          Log:
          [FIXED JENKINS-26988]

          At some point in the release history, JMeter switched from XML to CSV as
          a default for data persistency. The performance plugin should determine
          if a JTL file is either XML or CSV, and parse the data accordingly. See
          https://issues.jenkins-ci.org/browse/JENKINS-16627 for more details.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Guus der Kinderen Path: src/main/java/hudson/plugins/performance/AbstractParser.java src/main/java/hudson/plugins/performance/IagoParser.java src/main/java/hudson/plugins/performance/JMeterCsvParser.java src/main/java/hudson/plugins/performance/JMeterParser.java src/main/java/hudson/plugins/performance/JUnitParser.java src/main/java/hudson/plugins/performance/JmeterSummarizerParser.java src/main/java/hudson/plugins/performance/WrkSummarizerParser.java src/test/java/hudson/plugins/performance/JMeterParserTest.java src/test/resources/ JENKINS-16627 _CSV_instead_of_XML.jtl src/test/resources/emptyfile.jtl src/test/resources/whitespace-followed-by-xml.jtl http://jenkins-ci.org/commit/performance-plugin/7e1559fc45ed4bea5cadbfd9eae7aaa5b30e0f5a Log: [FIXED JENKINS-26988] At some point in the release history, JMeter switched from XML to CSV as a default for data persistency. The performance plugin should determine if a JTL file is either XML or CSV, and parse the data accordingly. See https://issues.jenkins-ci.org/browse/JENKINS-16627 for more details.

          Code changed in jenkins
          User: Manuel Carrasco Moñino
          Path:
          .gitignore
          src/main/java/hudson/plugins/performance/AbstractParser.java
          src/main/java/hudson/plugins/performance/AbstractReport.java
          src/main/java/hudson/plugins/performance/IagoParser.java
          src/main/java/hudson/plugins/performance/JMeterCsvParser.java
          src/main/java/hudson/plugins/performance/JMeterParser.java
          src/main/java/hudson/plugins/performance/JUnitParser.java
          src/main/java/hudson/plugins/performance/JmeterSummarizerParser.java
          src/main/java/hudson/plugins/performance/PerformanceProjectAction.java
          src/main/java/hudson/plugins/performance/PerformanceReport.java
          src/main/java/hudson/plugins/performance/WrkSummarizerParser.java
          src/test/java/hudson/plugins/performance/JMeterParserTest.java
          src/test/java/hudson/plugins/performance/JUnitParserTest.java
          src/test/java/hudson/plugins/performance/WrkSummarizerParserTest.java
          src/test/resources/JENKINS-16627_CSV_instead_of_XML.jtl
          src/test/resources/TEST-JUnitResults.xml.serialized
          src/test/resources/emptyfile.jtl
          src/test/resources/jUnitIssue5571.xml.serialized
          src/test/resources/whitespace-followed-by-xml.jtl
          http://jenkins-ci.org/commit/performance-plugin/d5d4c8797a0c13a051d010b380a3d6346c1db3d2
          Log:
          Merge pull request #45 from guusdk/master

          [FIXED JENKINS-26988] [FIXED JENKINS-16627][FIXED JENKINS-15736]

          Compare: https://github.com/jenkinsci/performance-plugin/compare/3e0f37953c07...d5d4c8797a0c

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Manuel Carrasco Moñino Path: .gitignore src/main/java/hudson/plugins/performance/AbstractParser.java src/main/java/hudson/plugins/performance/AbstractReport.java src/main/java/hudson/plugins/performance/IagoParser.java src/main/java/hudson/plugins/performance/JMeterCsvParser.java src/main/java/hudson/plugins/performance/JMeterParser.java src/main/java/hudson/plugins/performance/JUnitParser.java src/main/java/hudson/plugins/performance/JmeterSummarizerParser.java src/main/java/hudson/plugins/performance/PerformanceProjectAction.java src/main/java/hudson/plugins/performance/PerformanceReport.java src/main/java/hudson/plugins/performance/WrkSummarizerParser.java src/test/java/hudson/plugins/performance/JMeterParserTest.java src/test/java/hudson/plugins/performance/JUnitParserTest.java src/test/java/hudson/plugins/performance/WrkSummarizerParserTest.java src/test/resources/ JENKINS-16627 _CSV_instead_of_XML.jtl src/test/resources/TEST-JUnitResults.xml.serialized src/test/resources/emptyfile.jtl src/test/resources/jUnitIssue5571.xml.serialized src/test/resources/whitespace-followed-by-xml.jtl http://jenkins-ci.org/commit/performance-plugin/d5d4c8797a0c13a051d010b380a3d6346c1db3d2 Log: Merge pull request #45 from guusdk/master [FIXED JENKINS-26988] [FIXED JENKINS-16627] [FIXED JENKINS-15736] Compare: https://github.com/jenkinsci/performance-plugin/compare/3e0f37953c07...d5d4c8797a0c

            manolo Manuel Carrasco
            serialsito Enrique Jiménez
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: