I have performed a load test using JMETER. But now not able to generate reports for the test.
To generate report I have followed these steps:
Create a new variable JAVA_HOME in the environment variable and set the path for the JDK.
Create another variable ANT_HOME and set the path for the Apache-ant.
Create another variable PATH and set the path for apache-ant up to BIN folder.
Place the
ant-jmeter-1.0.9.jar
file in side ‘Extras’ folder. Which is located in the path jakarta-jmeter-2.3.2->extrasNavigate to the ‘build.xml’ folder of the jmeter which is located in the path jakarta-jmeter-2.3.2->extras->build.xml.
Set the
classpathref = “D:\loadtest\jakarta-jmeter-2.4\extras\ant-jmeter-1.0.9.jar “
Set
jmeterhome=”D:\loadtest\jakarta-jmeter-2.4″
Set
style=”D:\loadtest\jakarta-jmeter-2.4\jmeter-results-detail-report${style_version}.xsl”
and save it.Now copy jmx file and the build.xml file put it in a folder (Loadtest) where ever you want to generate the report.
Open command prompt and navigate to the folder where jmx and build file is located.
To run a test and create the output report: Type the command “
ant -Dtest=script”
(for eg. I have my test.jms file and the command isant -Dtest=test
)
By following above steps Reports are not generated but I got following error:
BUILD FAILED
D:\Loadtest\result\build.xml:85: Reference D:/Loadtest/jakarta-jmeter-2.4/
extras/ant-jmeter.jar not found.
Can you help me find the solution?