Article From:https://www.cnblogs.com/Lydia25/p/9967901.html

I. application scenarios

  1、No need for interactive interfaces or environment constraints (Linux text model)

  2、Remote or distributed execution

  3、Continuous integration, through shell scripts or batch commands can be executed, the generated test results can be directly used by the generation module, easy to generate reports.

 

2. Advantages of command-line mode

  1、Save system resources: no need to start the interface, save system resources

  2、Convenient and fast: Just start the command line, input the command can be executed, for the command of the people’s favorite.

  3、Easy continuous integration: executable through shell script commands

 

Three, parameter detailed explanation

  

 

Four, instance delay

  1、Execute test scripts

    jmeter -n -t JmeterDistributed test example. JMX

  The command line output is as follows:

  

  The default log output path is the same as the Jmx script path.

  

  2、Specify the result file and log path

    jmeter -n -t JmeterDistributed test example. jmx-l report01-result.csv-j report01-log.log

  The output of the command line window is as follows:

  

  If the log path does not exist, the Jmeter will not be created automatically, and colleagues will output the log to the command line window.

  The result file type is JTL or csv. You can browse the result file through Jmeter’s aggregation report to see the final result, as shown in the following figure:

  

 

  3、Distributed (remote) execution default server list

    jmeter -n -t JmeterDistributed test example. jmx-r-l report01-result.csv-j report01-log.log

  The output of the command line window is as follows:

  

  The executor command line output is as follows:

  

  The log files on the Slave end are generated by default in the user directory.

  If the following picture appears, please check: whether the network is smooth, whether the server domain name (IP) and port are correct, whether the executor starts jmeter-server.bat or jmeter-server.

  

 

   4、Distributed (remote) execution server list

    jmeter -n -t JmeterDistributed test example. jmx-R 10.9.215.47:1029-1 report01-result.csv-j report01-log.log

  The output of the command line window is as follows:

  

 

 

From: http://www.cnblogs.com/fengping fan

  

 

   

 

Leave a Reply

Your email address will not be published. Required fields are marked *