You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by BK1985 <bh...@gmail.com> on 2009/08/04 05:47:15 UTC

Multiple Test Result Reports - JMeter with Ant

Hi,

I'm using the following approach to run multiple jmeter test plans with ant.

<jmeter
    jmeterhome="${jmeter.home}"
    resultlog="${testreports}/${test}.jtl">
<testplans dir="C:/DATA/TestPlans" includes="*.jmx"/>

<target name="report" depends="_message_xalan">
    <xslt
	classpathref="xslt.classpath"
	force="true"
	in="${testreports}/${test}.jtl"
	out="${testreports}/${test}.html"
	style="${styleSheetPath}">
        
    </xslt>
</target>

(Ref:  http://www.programmerplanet.org/pages/projects/jmeter-ant-task.php
http://www.programmerplanet.org/pages/projects/jmeter-ant-task.php  )

As it is specified in the above approach, it writes test results of all the
the test plans to the same log ("${test}.jtl"). 
My requirement is to have separate .jtl & .html reports for each testplan.
Please let me know what are the possible ways of doing it. 

Thanks,
BK
-- 
View this message in context: http://www.nabble.com/Multiple-Test-Result-Reports---JMeter-with-Ant-tp24801907p24801907.html
Sent from the JMeter - User mailing list archive at Nabble.com.


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


Re: Multiple Test Result Reports - JMeter with Ant

Posted by sebb <se...@gmail.com>.
On 04/08/2009, BK1985 <bh...@gmail.com> wrote:
>
>  Hi,
>
>  I'm using the following approach to run multiple jmeter test plans with ant.
>
>  <jmeter
>     jmeterhome="${jmeter.home}"
>     resultlog="${testreports}/${test}.jtl">
>  <testplans dir="C:/DATA/TestPlans" includes="*.jmx"/>
>
>  <target name="report" depends="_message_xalan">
>     <xslt
>         classpathref="xslt.classpath"
>         force="true"
>         in="${testreports}/${test}.jtl"
>         out="${testreports}/${test}.html"
>         style="${styleSheetPath}">
>
>     </xslt>
>  </target>
>
>  (Ref:  http://www.programmerplanet.org/pages/projects/jmeter-ant-task.php
>  http://www.programmerplanet.org/pages/projects/jmeter-ant-task.php  )
>
>  As it is specified in the above approach, it writes test results of all the
>  the test plans to the same log ("${test}.jtl").
>  My requirement is to have separate .jtl & .html reports for each testplan.
>  Please let me know what are the possible ways of doing it.

AFAIK, this is not possible with the current JMeter Ant task.
You could try contacting the author via the website.

>  Thanks,
>  BK
>
> --
>  View this message in context: http://www.nabble.com/Multiple-Test-Result-Reports---JMeter-with-Ant-tp24801907p24801907.html
>  Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  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


Re: Multiple Test Result Reports - JMeter with Ant

Posted by Deepak Shetty <sh...@gmail.com>.
as far as I know you have to invoke Jmeter multiple times each with a single
JMX if you want separate JTL files (you can use the Jmeter ant-contrib
foreach to accomplish this).
Or you could modify the jmeter ant task.
regards
deepak

On Mon, Aug 3, 2009 at 8:47 PM, BK1985 <bh...@gmail.com> wrote:

>
> Hi,
>
> I'm using the following approach to run multiple jmeter test plans with
> ant.
>
> <jmeter
>    jmeterhome="${jmeter.home}"
>    resultlog="${testreports}/${test}.jtl">
> <testplans dir="C:/DATA/TestPlans" includes="*.jmx"/>
>
> <target name="report" depends="_message_xalan">
>    <xslt
>        classpathref="xslt.classpath"
>        force="true"
>        in="${testreports}/${test}.jtl"
>        out="${testreports}/${test}.html"
>        style="${styleSheetPath}">
>
>    </xslt>
> </target>
>
> (Ref:  http://www.programmerplanet.org/pages/projects/jmeter-ant-task.php
> http://www.programmerplanet.org/pages/projects/jmeter-ant-task.php  )
>
> As it is specified in the above approach, it writes test results of all the
> the test plans to the same log ("${test}.jtl").
> My requirement is to have separate .jtl & .html reports for each testplan.
> Please let me know what are the possible ways of doing it.
>
> Thanks,
> BK
> --
> View this message in context:
> http://www.nabble.com/Multiple-Test-Result-Reports---JMeter-with-Ant-tp24801907p24801907.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>