Jmeter use

Jmeter simply uses

     why: you can directly modify the number of threads, simulate concurrency, and stress testing, so choose it.

     1. Download address:
      http://jmeter.apache.org/download_jmeter.cgi
      Unzip, open jmeter.bat under /bin

     2. Interface test
        2.1 Right click to add thread group
        2.2 Add HTTP request
        2.3 Add HTTP header manager
        2.4 Add and view the result tree
     Fill in as required, click start, you can see the request url and hearing and the returned information in the view result tree
   
    3. Concurrency test Mainly modify the number of threads in the thread group to complete the number of
       threads: it means using several Threads to run, want to be equivalent to how many people come to click
       Ramp-Up Period means that the time interval of each thread execution is in seconds . The number of
       cycles: it means how many times to cycle
       eg: the number of threads 10 * the cycle is 10 means that 100 times will be requested
  
    4. The dynamic parameter configuration adds CSV Data Set Config         Filename
      on the basis of the 2 interface test, indicating that the external csv file is equivalent to excel         File encoding is set to utf-8


        variable Names: Indicates that the names of the parameter columns are separated by (comma,) respectively corresponding to the csv columns
        eg: There are two columns in csv variable Names = a, b
           When adding HTTP request parameters in 2.2, it is {"a":$ {a},"b":${b}}
  

     Reference:
        http://blog.csdn.net/envyfan/article/details/42715779
        http://blog.csdn.net/defonds/article/details/40824011/

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326100163&siteId=291194637