Install JMeter (on macos)

We use JMeter to run performance test scripts. these are stored in x/jmeter.

Installation

requires:

  • Java

  • Brew

brew install jmeter

Run Jmeter

To start the GUI application, run jmeter from the terminal.

jmeter

or open /usr/local/bin/jmeter

Don't use GUI mode for load testing !, only for Test creation and Test debugging.

For load testing, use CLI Mode :

jmeter -n -t [jmx file] -l [results file] -e -o [Path to web report folder]

e.g.

jmeter -n -t 'x/jmeter/Voluntarily API.jmx' -l x/jmeter/results -e -o x/jmeter/webout

Check : https://jmeter.apache.org/usermanual/best-practices.html

Documentation on JMeter

https://jmeter.apache.org/usermanual/get-started.html