jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "GUERARD Elisabeth" <elisabeth.guer...@europarl.europa.eu>
Subject RE: jmeter ant task / generation report
Date Fri, 17 Nov 2006 11:33:09 GMT
 
I'm really sorry to disturb you like that, I finally found that the xsl
is no more appropriate to the node definition.
I updated the initial xsl, you can have it in attachment, just it
doens't work for MIn and Max time.
ANt Jmeter task is really a good evolution.
Do you use also the throughput paramter?
Thank you ,
Bye 
eli
-----Original Message-----
From: GUERARD Elisabeth 
Sent: 17 November 2006 11:35
To: 'Meenakshi Rm'
Cc: 'JMeter Users List'
Subject: RE: jmeter ant task / generation report

Meena,

I have only node httpSample but in the xsl there is no reference to this
node.
Eli


-----Original Message-----
From: GUERARD Elisabeth 
Sent: 17 November 2006 11:26
To: 'Meenakshi Rm'
Cc: 'JMeter Users List'
Subject: RE: jmeter ant task / generation report

Mena,

Thank you so much, my problem is solved in fact I didn't define target
tag.
I didn't used Ant before, and now with your example and quick look to
the ant tutorial, it's ok.

But my JMeterResults.html is generated but empty.
I checked the JMeterResults.jtl, it 's filled correctly, and I saw that
the test has been correctly executed.

Something need to be add to my test plan?
Here is my build.xml:

I used the jmeter-results-report.xsl and I tried also with other xsl.
In attachment It's the JMeterResults.jtl, I thing it's ok, xml format.
If you have another idea about the problem?
Thanks in advance,
Eli

<?xml version="1.0" ?>
<project name="PericlesWebJmeter" default="jmeter"> 
    <taskdef name="jmeter"
classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>
    <target name="jmeter">
        <jmeter
       jmeterhome="R:\jmeter\jakarta-jmeter-2.2"
       testplan="R:/jmeter/jakarta-jmeter-2.2/test_jmeter/Pericles Web
II/Pericles Web II_without login.jmx"
      resultlog="R:/jmeter/jakarta-jmeter-2.2/test_jmeter/Pericles Web
II/JMeterResults.jtl">
        <property name="request.threads" value="1"/>
        <property name="request.loop" value="1"/>
        <property name="jmeter.save.saveservice.output_format"
value="xml"/>
      <!--   <property name="jmeter.save.saveservice.assertion_results"
value="all"/>   -->
        </jmeter>
        
        <xslt
        in="R:/jmeter/jakarta-jmeter-2.2/test_jmeter/Pericles Web
II/JMeterResults.jtl"
        out="R:/jmeter/jakarta-jmeter-2.2/test_jmeter/Pericles Web
II/JMeterResults.html"
 
style="R:/jmeter/jakarta-jmeter-2.2/bin/jmeter-results-report.xsl"/>
    </target>    
</project>


-----Original Message-----
From: Meenakshi Rm [mailto:meenas@gmail.com] 
Sent: 16 November 2006 17:45
To: JMeter Users List
Subject: Re: jmeter ant task

Hi ,

I have tried using this..it reallly works good.

The problem I guess is.... you have nested jmeter task inside taskdef
element. That is not the way it shud be.

Keep taskdef tag seperate , it is used to define jmeter ant task.

Use jmeter ant task inside target as below:

Sample:


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


  <target name="automate"  depends="clean"  >
<jmeter    jmeterhome="c:/jmeter"
resultlog="${dist}/JMeterResults.jtl">

<testplans dir="${src}" includes="*.jmx"/>
   <property name="request.threads" value="1"/>
   <property name="request.loop" value="2"/>

</jmeter>

  </target>


Hope this helps.

Regards,
Meena.

On 11/16/06, GUERARD Elisabeth <elisabeth.guerard@europarl.europa.eu>
wrote:
>
> dear all,
>
> I discover the new functionality Jmeter ant task.
> I try to used it via Eclipse but adding the ant-jmeter.jar in the ant
> lib directory.
> I built the build.xml file as described on the programmerplanet.org
> website.
> But I have the following error:
>
>        The <taskdef> type doesn't support the nested "jmeter" element.
>
> Someone used already via eclipse?
> thank in advance for advice.
> Eli
>
>
>




Mime
View raw message