Forrest logo
back to the jmeter tool

jmeter:tldr:1177c

jmeter: Run a test plan in nongui mode using a specific log file.
$ jmeter --nogui --testfile ${filename}.jmx --logfile ${path-to-logfile}.jtl
try on your machine

This command is used to run a JMeter test plan without the graphical user interface.

Here is a breakdown of the command:

  • jmeter: This is the command to run the JMeter application.
  • --nogui: This option specifies that the test should run in non-GUI mode, meaning without the graphical interface.
  • --testfile ${filename}.jmx: This option specifies the test plan file to be executed. The ${filename}.jmx is a placeholder that should be replaced with the actual name of the JMeter test plan file you want to run.
  • --logfile ${path-to-logfile}.jtl: This option specifies the file to which the test results will be logged. The ${path-to-logfile}.jtl is a placeholder that should be replaced with the actual path and name of the log file you want to create.

In summary, this command runs a JMeter test plan in non-GUI mode, using the specified test plan file and saving the results to the specified log file.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the jmeter tool