How to generate Html reports from using Apache ant in Jmeter.
Please attach screenshots
Asked
Active
Viewed 7,049 times
3

Don73
- 73
- 1
- 7
2 Answers
5
There won't be too much screenshots, however I believe the answer will still be helpful
- Install Apache Ant. Make sure that /bin folder of Ant installation is in your PATH
- Go to "extras" folder of your JMeter installation in command propmt.
- Type
ant
If everything goes well you should see "BUILD SUCCESSFUL" message
Ant will generate 2 artifacts:
- Test.jtl - XML file with results
- Test.html - HTML wile with results which can be viewed in browser
If steps 1-5 are successful you can now replace /extras/Test.jmx with your own JMeter test, delete
Test.jtl
file and execute step 3 for your test script.
See following references:
/extras/build.xml
Ant build file- JMeter Ant Task manual
- Five Ways To Launch a JMeter Test without Using the JMeter GUI guide which includes launching JMeter via Ant.

Dmitri T
- 159,985
- 5
- 83
- 133
-
i copied all Apache Ant files from bin ( apache-ant-1.9.6\bin ) and paste to " apache-jmeter-2.13\apache-jmeter-2.13\extras " , above commands in screenshots not work for me. Please explain clearly , i am beginner in jmeter . – Don73 Sep 30 '15 at 07:30
-
It won't work that way. Ant is a separate tool. Just make sure that ant.bat script is in your OS PATH – Dmitri T Sep 30 '15 at 13:37
-
@DmitriT, Can we do "Generating Report Dashboard" through ANT? Talking about the data in the below link http://jmeter.apache.org/usermanual/generating-dashboard.html. – Anil Reddy Yarragonda Jul 14 '17 at 07:32
1
JMeter produces the result in XML format. You need an XSLT file to convert this to a nice HTML.
This site has the detailed steps on running JMeter tests with ANT + creating HTML reports + Creating charts.
http://www.testautomationguru.com/jmeter-continuous-performance-testing-part1/

vins
- 15,030
- 3
- 36
- 47