Running Your Test from Apache Ant
It is also possible to run your test with Apache Ant.
This allows you to easily integrate JMeter into the development life cycle.
In the extra directory of JMeter, there is an example of a build.xml file to use JMeter and Ant.
To use it, simply run ant as follows:
     ant -Dtest=myScript
myScript should be the name of the JMeter script file without its extension.
For example:
Figure 11.7: Result of a test run with Ant
At the end of the execution, you get a report in HTML format:
Figure 11.8: Ant HTML report
Figure 11.9: Ant HTML report – details
Note
I'll let you take a closer look at the build.xml file to understand how it works.