jmeter run jmx command line script

Performance testing, if a large number of concurrent, the interface is easy to get stuck.

By non-GUI (command line) approach is a good choice.

windows environment

1. Jmeter installation directory, you can create a folder "result"

 

2. Create a good test script file is placed in the lower result

 

 

 

3. Enter the result files by the terminal, enter the command 

D:\apache-jmeter-3.2\bin\jmeter.bat -n -t cj0320.jmx -l cj0320.jtl

 

If you do not enter the path of the result, and then .jmx .jtl will write the whole path:

 

jmeter -n -t D:\apache-jmeter-3.2\result\cj0320.jmx -l D:\apache-jmeter-3.2\result\cj0320.jtl

 

-n: non-GUI mode

-t: test file

-l: log file (file record results)

 

4. When the following, showing operation procedures

 

  5. Reiterates its view result file

 

  6. jtl files can be opened through the GUI interface, view details information

 

  If you need to stop running during operation, enter Ctrl + C

 

LINUX System:

The steps are the same, except for the command behavior:

/opt/apache-jmeter-3.2/bin/jmeter.bat -n -t cj0320.jmx -l cj0320.jtl

 

Guess you like

Origin www.cnblogs.com/may18/p/12565038.html