简体   繁体   中英

JMeter Ant Task doesn't works for Distributed Testing

When I tried to execute Distributed Testing using JMeter Ant Task,it's not running. I have configured remote_hosts in the jmeterproperties file. When I looked at eth Jmeter ant Task document it says runremote set to true, but I am not sure where do I need to specify that and what am I missing could you please advise!

Below are the build. xml and Test execution output screenshots.

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

You need to include the "runremote" property for the Jmeter task in ANT as given below.

<jmeter
   jmeterhome="c:\jakarta-jmeter-1.8.1"
   testplan="${basedir}/loadtests/JMeterLoadTest.jmx"
   resultlog="${basedir}/loadtests/JMeterResults.jtl"
   runremote="true">
   <property name="request.threads" value="1"/>
   <property name="request.loop" value="10"/>
</jmeter>

Currently you are passing this as a property to the JMeter test which is not right.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM