当前位置:网站首页>Use of JMeter

Use of JMeter

2022-07-07 08:08:00 Stay a little

download

Official website address https://jmeter.apache.org/

Use steps

  • Download decompression , The latest version is 5.5
     Insert picture description here
  • Get into bin Catalog , Click on jmeter.bat
     Insert picture description here
    It will start JMeter GUI Tools .
     Insert picture description here
     Insert picture description here
    You can also set the interface language Options --> Choose Language --> Chinese(Simplified), Set to simplified Chinese .

Interface to use

  1. choice TestPlan, Right click –> add to –> Threads –> Thread group
     Insert picture description here
  2. Thread group content
     Insert picture description here

a. Thread group name , Modifiable
b. Operation performed after sampler error , Modifiable
c. Number of threads , This is the number of concurrent requests , Modifiable
d.ramp-UI Time , That is, start all threads in a few seconds , Modifiable

for example :
 Insert picture description here

  1. Select thread group , Right click –> add to –> Sampler –>HTTP request
     Insert picture description here
     Insert picture description here

Name of the request , Don't change
Web server information , Network protocol 、 Domain name or IP、 Port number , You can modify
Interface request : Request mode 、 Request path 、 Coding format , You can modify
Parameter passing : Message body data store JSON Information

  1. Select thread group , Right click –> add to –> The configuration element –>HTTP Header Manager
     Insert picture description here
     Insert picture description here
  • You can store the information in the request header

Results check

Select thread group , Right click –> add to –> Monitor –> View the result tree
 Insert picture description here
 Insert picture description here

原网站

版权声明
本文为[Stay a little]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070455395548.html