【P55】JMeter Graph Results (Graph Results)


1. Graph Results (Graph Results) parameter description

可以以图形的方式查看和分析相关指标

使用场景:一般在调试测试计划期间用来查看相关指标,负载期间使用会消耗大量资源,慎用

使用频率:少

Right click >>> Add >>> Listener >>> Graph Results

insert image description here

Write all data to a file (Write results to file / Read from file)

(1) File name (Filename): You can select a file by browsing, so that jmeter will output all the information to the file during execution, and also supports opening a result file for browsing

(2), display log content (Log/Display Only):

  • Only log errors: Indicates that only the error log information is entered

  • Only the success log (Successes): Indicates that only the log information of the normal response is output

  • Unchecked: means to output all information

(3) Configuration (Configuer): Configure the content to be output (default is recommended. If you load the saved file later, you may not know the format)

2. Preparation

Mumu Fresh: http://111.231.103.117/#/login

  • After entering the webpage, log in, and the page provides the account and password

  • Type "shrimp" in the search box

  • Right-click to check or press F12 to open the debugging tool and click Search

insert image description here

3. Test plan design

(1), right click on the test plan <<< add <<< configuration element <<< user-defined variable

insert image description here

  • Add a parameter: ip, the value is 111.231.103.117

(2), right click on the test plan <<< add <<< test fragment <<< test fragment

insert image description here

  • Name: HTTP Test Fragment

(3) On the web page, click on the network during debugging, find the request, click on the load, and copy the parameter value

insert image description here

(4), right click on the HTTP test fragment <<< add <<< sampler <<< HTTP request

insert image description here

  • Protocol: GET

  • Path: /product/list

  • Click Add from Clipboard, it will be added automatically; you can also add it manually

(5), HTTP request right click <<< add <<< configuration element <<< HTTP request default value

insert image description here

  • protocol: http

  • Server name or IP: ${ip}

使用参数 ${ip} 获取

  • Port: 8083

  • Content-Encoding: utf-8

(6) On the web page, click on the network during debugging, find the request, click on the header to find the request header, and copy all the request headers

insert image description here

(7), right click on HTTP request <<< add <<< configuration element <<< HTTP header manager

insert image description here

  • Click Add from clipboard, the copied value will be added automatically

(8), right click on the test plan <<< add <<< thread (user) <<< thread group

insert image description here

  • Number of threads: 1000

  • The parameters are default

(9), right click on the thread group <<< add <<< logic controller <<< module controller

insert image description here

  • Click to select "HTTP Test Fragment"

(10), right click on the test plan <<< add <<< listener <<< graphic result

insert image description here

  • check average

  • Tick ​​throughput

(11), click start, click the graph result, view the graph

insert image description here

Graphical Results: Easily visualize data

Guess you like

Origin blog.csdn.net/qq_45138120/article/details/131116964