You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Mark Lybarger <ma...@wideopenwest.com> on 2004/03/03 03:54:22 UTC
jmeter ant - varrying threads/loop
ok, i checked the FAQ, and found information on this. When i specify my
loops
and threads as:
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="LoopController.loops">${__P(group1.loop,1)}</property>
<property xml:space="preserve"
propType="org.apache.jmeter.testelement.property.StringProperty"
name="ThreadGroup.num_threads">${__P(group1.threads,1)}</property>
and i run the ant task, i get a JMeterResults.jtl file that is not well
formed
xml. the file contains only:
<?xml version="1.0" encoding="UTF-8"?>
<testResults>
if i change the data in the element above to 1, then i get back valid
results.
any suggestions here? from the FAQ, jmeter should use the default value
even if i don't specify one via ant. i did have troubles using the
recommended
-Jgroup1.threads=12
through an ant jvmargs sub element to the jmeter task. and it doesn't
support
nested args elements.
ideas? suggestions?
---------- Forwarded Message -----------
From: marklybarger@wowway.com
To: jmeter-user@jakarta.apache.org
Sent: Tue, 2 Mar 2004 09:17:30 -0600
Subject: jmeter ant - varrying threads/loop
i'm using jmeter 1.9.1, with the included ant integration. i'd like to be
able to vary the # of threads and # of loops via the ant script. the older
documentation for the ant task seemed to allow something like:
<jmeter jmeterhome="/cbc/jakarta-jmeter-1.9.1"
resultlog="./loadtests/JMeterResults.jtl">
<testplans dir="./loadtests" includes="*.jmx" />
<property name="request.threads" value="${test.threads}"/>
<property name="request.loop" value="${test.loop}"/>
</jmeter>
to give the threads/loops properties. yes, my test plan has specified loop
properties, but i'd like to override those. the 1.9.1 version of the
ant task
doesn't allow nested properties. does anyone know a good way to vary the
threads/loops via ant? i'd like to archive the results off such as:
<move file="${basedir}/loadtests/JMeterResults.html"
tofile="${basedir}/loadtests/JMeterResults-${test.threads}-${test.loop}-${timestamp}.html"/>
so i know by looking at the file itself what the test variances were during
the execution.
thanks!
~mark
------- End of Forwarded Message -------
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org