简体   繁体   中英

Generating HTML reports using Apache ANT on Distributed Load Testing in Jmeter

Can any one please help me on this.?

I want to do a distributed load testing using Jmeter 2.11. For getting detailed and meaningful reports, I Integrated Jmeter with Apache Ant. I tried running the test from 'cmd' and the test is only running locally and generating reports..!! I have remote servers specified inside Jmeter.properties file.

Is Ant not able to take the Jmeter.properties.? Do I have to add anything in build.xml file.?

Please advise..

Many thanks in advance.

As per JMeter Ant Task documentation

Optional JMeter arguments supported include specifying an alternate jmeter properties file (jmeterproperties), running remote servers specified in jmeter properties file ( runremote )

So you need to apply `runremote="true" parameter to properties you need to pass to slave machines.

A couple of other recommendations:

  1. Upgrade to the latest version of JMeter (currently it's 2.13), newer versions contain new features, bug fixes, performance improvements, etc. See JMeter Performance and Tuning Tips guide for more tweaks.
  2. It is not necessary to run JMeter via Ant. If you switch JMeter output format to XML (add jmeter.save.saveservice.output_format=xml line to user.properties files on all nodes) and run JMeter as normal according to JMeter Distributed Testing Step-by-step guide you'll be able to use ant report task on resulting file to generate HTML output. Moreover, any tool which can do XSLT transformation can generate HTML report. Required .xsl files are under /extras dir of your JMeter installation.

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