How does jmeter set global variables and refer to the next interface?

1. Prepare the interfaces to be adjusted, such as registration, login, and password reset.

 2. Add thread group, HTTP request default value, information header manager, HTTP Cookie manager, HTTP request, view result tree, etc.

 3. Fill in the relevant parameters that need to be tuned. I will not demonstrate them one by one here. If you are not sure, you can check the novice tutorial.

4. Add a sampler (Debug Sampler).

 5. Run it directly, view the structure tree, and find the data you need to quote. 

 6. In order to let everyone see it more clearly, add two more samplers and change the name to the name that needs to refer to the variable and run it again.

 7. Check whether the data is consistent. If it is inconsistent, it means that the wrong value is taken. If it is consistent, it means that there is no problem.

 8. Set function P

 9. Fill in the function generated above into the request body and run it again.

 10. View the result tree

11. The reset password interface also uses the above method, run and view the results.

 

12. Finally, connect them all in series to see the results.

 

 Hope to help you, thank you~

Guess you like

Origin blog.csdn.net/Along_168163/article/details/132062102