Use an external Eclipse tool
- Eclipse Menu: Launch → External Tools → Configure External Tools ...
- The Configure External Tools dialog box appears.
- In the tree on the left, select "Program"
- Use the left mouse button and select "New" from the mouse menu or use the icon on the left (above the tree) and select "New launch configuration"
- A panel opens on the right side of the tree, where the details of this new lauch configuration can be filled in
- Enter a name: JMeter example
- Enter as location: The location where JMeter is installed (in the windows something like
C:\Program Files\apache\jmeter\bin\jmeter.bat ) (on Linux as /opt/apache/jmeter/bin/jmeter ) - Enter as the working directory: $ {workspace_loc: / jmeter-project} (use the Browse Workspance ... button to select the project in the workspace, where the JMeter script. The
jmeter-project shown here) - Close the dialog with the Run button, which should launch JMeter.
Information The Stop icon does not work, since it actually runs a script that launches the JMeter Java application.
Optional to add parameters
- Enter as arguments:
-t src\test\jmeter\sample.jmx (path to the JMeter script to run) - Enter as arguments:
-q src\test\jmeter\environment.properties (some external property files, use ${__P(key-name)} )
See JMeter Parameters and Test Parameterization for details.
source share