質問

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

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top