You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Ad...@marsh.com on 2003/05/21 22:48:21 UTC

A bit of trouble with the ant-jmeter plugin

Hey, i'm having a bit of trouble with the ant-jmeter plugin.  It seems to
think have trouble parsing my .jlt results file.

The test is pretty simple, doesn't have any assertions or anything, but this is what I get from ant:

=========================================================
My output from ant:

Buildfile: build.xml

run_tests:
   [jmeter] Executing test plan: C:\JMeterSaves\Test1.jmx
   [jmeter] Created the tree successfully
   [jmeter] Starting the test
     [xslt] Processing C:\JMeterSaves\results\Test1.jtl to C:\JMeterSaves\results\Test1.html
     [xslt] Loading stylesheet C:\JMeterSaves\results\jmeter-results-report.xsl
     [xslt] : Fatal Error! org.xml.sax.SAXParseException: Content is not allowed in prolog. Cause: org.xml.sax.SAXParseException: Content is not
allowed in prolog.
     [xslt] Failed to process C:\JMeterSaves\results\Test1.jtl


=========================================================
My build file:

<project name="ProductSystem" default="run_tests" basedir=".">

  <!-- set global properties for this build -->

  <taskdef
      name="jmeter"
      classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>

  <property name="basedir" value="C:/JMeterSaves"/>


  <target name="run_tests">
     <jmeter
         jmeterhome="C:/JMeter1.9/jakarta-jmeter-1.9-RC1"
         testplan="${basedir}/Test1.jmx"
         resultlog="${basedir}/results/Test1.jtl" />

     <xslt
         in="${basedir}/results/Test1.jtl"
         out="${basedir}/results/Test1.html"
         style="${basedir}/results/jmeter-results-report.xsl"/>
  </target>

</project>
=========================================================




---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: A bit of trouble with the ant-jmeter plugin

Posted by "Michael C. Lee Jr." <ml...@hotmail.com>.
Your probably using Ant 1.5. You have to replace the XML parser it uses or
use Ant 1.5.1. I had a very similar problem.
Michael Lee

----- Original Message ----- 
From: <Ad...@marsh.com>
To: <jm...@jakarta.apache.org>
Sent: Wednesday, May 21, 2003 4:48 PM
Subject: A bit of trouble with the ant-jmeter plugin


> Hey, i'm having a bit of trouble with the ant-jmeter plugin.  It seems to
> think have trouble parsing my .jlt results file.
>
> The test is pretty simple, doesn't have any assertions or anything, but
this is what I get from ant:
>
> =========================================================
> My output from ant:
>
> Buildfile: build.xml
>
> run_tests:
>    [jmeter] Executing test plan: C:\JMeterSaves\Test1.jmx
>    [jmeter] Created the tree successfully
>    [jmeter] Starting the test
>      [xslt] Processing C:\JMeterSaves\results\Test1.jtl to
C:\JMeterSaves\results\Test1.html
>      [xslt] Loading stylesheet
C:\JMeterSaves\results\jmeter-results-report.xsl
>      [xslt] : Fatal Error! org.xml.sax.SAXParseException: Content is not
allowed in prolog. Cause: org.xml.sax.SAXParseException: Content is not
> allowed in prolog.
>      [xslt] Failed to process C:\JMeterSaves\results\Test1.jtl
>
>
> =========================================================
> My build file:
>
> <project name="ProductSystem" default="run_tests" basedir=".">
>
>   <!-- set global properties for this build -->
>
>   <taskdef
>       name="jmeter"
>       classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>
>
>   <property name="basedir" value="C:/JMeterSaves"/>
>
>
>   <target name="run_tests">
>      <jmeter
>          jmeterhome="C:/JMeter1.9/jakarta-jmeter-1.9-RC1"
>          testplan="${basedir}/Test1.jmx"
>          resultlog="${basedir}/results/Test1.jtl" />
>
>      <xslt
>          in="${basedir}/results/Test1.jtl"
>          out="${basedir}/results/Test1.html"
>          style="${basedir}/results/jmeter-results-report.xsl"/>
>   </target>
>
> </project>
> =========================================================
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org