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.
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)
Response assertion
Response json assertion
assertion Success must be consistent with the content of the input box
Assertion is successful
Aggregated report
XPath assertion
New XPath Assertion Input the name value format in the web page in XPth Assertion //*[@name="variable value"]
Add a new HTTP request
Successfully access baidu
Configure customization
Set a custom name Set the path to be replaced
Use ${custom name}
to request success after completion
Add a timer
Enter the time to be delayed
2 ways of interface association: JSON Extractor Regular expression extractor
interface association to create the first Add a mobile phone number to an interface
Add JSON EXTRACTOR
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
get it successfully after running