1.Download the Jmeter binary from the following link http://jakarta.apache.org/site/downloads/downloads_jmeter.cgi
2.Extract the zip on to your convenient local directory.
3.Go to the extracted directory example : /home/kiran/Software/jakarta-jmeter-2.4/bin
4.If you are using Windows, double click on the jmeter.bat else for Linux run the command ./jmeter.sh from the shell prompt.
5.After running the above command following GUI will be opened
Learn Jmeter Step By Step
Tuesday, October 19, 2010
Programatically Starting the Jmeter GUI
Below is the sample code which Invokes the Jmeter GUI
1.Open the eclipse and create a new Java Project
2.Configure the following jars to the eclipse build path.
4.After copying the Jmeter contents your eclipse workspace directory should look some thing like below
5.Now Restart the eclipse
6.Create a Sample Class ex: TestHttpRequest
9.Add the below code and run the Program
public static void Main(String args[])
1.Open the eclipse and create a new Java Project
2.Configure the following jars to the eclipse build path.
- jakarta-jmeter-2.4/bin/ApacheJmter.jar
- jakarta-jmeter-2.4/lib/*.jar(all jars)
- jakarta-jmeter-2.4/lib/ext/*.jar(all jars)
- jakarta-jmeter-2.4/lib/junit/test.jar
4.After copying the Jmeter contents your eclipse workspace directory should look some thing like below
5.Now Restart the eclipse
6.Create a Sample Class ex: TestHttpRequest
9.Add the below code and run the Program
public static void Main(String args[])
{
Jmeter jmeter = new Jmeter();
jmeter.start(args)
// Or You can add the below statement instead of above 2 lines of code
NewDriver.main(args)
}
10. Now that the Jmeter GUI Interface should be opened up
Subscribe to:
Posts (Atom)