Search code examples
antjmeterjmeter-plugins

How to use Apache Ant in Jmeter?


How to generate Html reports from using Apache ant in Jmeter. Please attach screenshots


Solution

  • There won't be too much screenshots, however I believe the answer will still be helpful

    1. Install Apache Ant. Make sure that /bin folder of Ant installation is in your PATH
    2. Go to "extras" folder of your JMeter installation in command propmt.
    3. Type ant
    4. If everything goes well you should see "BUILD SUCCESSFUL" message

      Ant execution

    5. Ant will generate 2 artifacts:

      • Test.jtl - XML file with results
      • Test.html - HTML wile with results which can be viewed in browser

      Ant resutls

    6. 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: