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: [EMAIL PROTECTED] To: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

