Explanation of Jmeter components

Three ways to assert:
json assertion
response assertion
XPath assertion

Threads that run independently
Test Plan "New Thread" Select Test Plan "Check each thread group
that runs independently, you can run a thread group independently at a time.
insert image description here

Create thread group "Add http under a single thread group" Add Http request "Add view result tree" Add aggregate report Run "View the result Click to view the result tree to view the return value and result (click the response data)" View the aggregate report (concurrency, error rate, average response time, maximum and minimum response time, throughput, memory, cpu)
insert image description here
insert image description here
insert image description here
Response assertion
insert image description here
Response json assertion
insert image description here
assertion Success must be consistent with the content of the input box
insert image description here
Assertion is successful
insert image description here
Aggregated report
insert image description here
XPath assertion
insert image description here
New XPath Assertion Input the name value format in the web page in XPth Assertion //*[@name="variable value"]
insert image description here
Add a new HTTP request
insert image description here
Successfully access baidu
/

Configure customization
insert image description here
Set a custom name Set the path to be replaced
insert image description here
Use ${custom name}
insert image description here
to request success after completion
insert image description here
Add a timer
insert image description here
Enter the time to be delayed
insert image description here
2 ways of interface association: JSON Extractor Regular expression extractor
interface association to create the first Add a mobile phone number to an interface
insert image description here
Add JSON EXTRACTOR
insert image description here
insert image description here
to create a second interface and use ${field value} to get the property value of the first interface to get the value requested by the first interface, and
insert image description here
get it successfully after running
insert image description here

Guess you like

Origin blog.csdn.net/weixin_44826661/article/details/123868045