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
Hi Kiran,
ReplyDeleteCan you post a sample script...