Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run jmeter script from eclipse

Please let me know whether it is possible to run jmeter script from eclipse? If yes Please let me know the process.

like image 324
Yash Varshney Avatar asked Feb 07 '13 10:02

Yash Varshney


People also ask

Can we integrate JMeter with Eclipse?

Eclipse Hono™ comes with an Apache JMeter plugin which provides samplers that can be used in JMeter test plans to send and receive telemetry/event data.


1 Answers

Use Eclipse External Tool

  1. Eclipse menu: Run -> External Tools -> External Tools Configuration...
  2. The dialog External Tools Configuration opens
  3. From the tree on the left select Program
  4. Use left mouse button and select from the mouse menu New or use the left icon (above the tree) and select New launch configuration
  5. On the right side of the tree, opens the panel, where details of this new lauch configuration can be filled in
  6. Enter as Name: JMeter sample
  7. Enter as Location: The location where JMeter is installed (on windows something like C:\Program Files\apache\jmeter\bin\jmeter.bat) (on Linux like /opt/apache/jmeter/bin/jmeter)
  8. Enter as Working Directory: ${workspace_loc:/jmeter-project} (use the button Browse Workspance..., to select the project, in your workspace where the JMeter script are located. Here the project jmeter-project is shown)
  9. Close the dialog by using the button Run, which should launch JMeter.

Info The icon Stop, does not work, as this actually launches a script, which launches the Java application JMeter.

Optionally add parameters

  1. Enter as Arguments: -t src\test\jmeter\sample.jmx (the path of the JMeter script to launch)
  2. Enter as Arguments: -q src\test\jmeter\environment.properties (some external properties file, use ${__P(key-name)})

See JMeter options and Parameterising Tests for the details.

like image 142
Verhagen Avatar answered Oct 02 '22 23:10

Verhagen