Jmeter transfer parameters across threads

Spent a lot of time doing jmeter to pass values ​​across thread groups

Proceed as follows:    

1. Pass the login token value in the user management thread group to GetUserInfo in the scene module thread group

2. Use JSON Extractor to get the token value, as shown in the figure:

3. Post processor-BeanShell PostProcessor, fill in the parameters: $ {token}, and then call the function $ {__ setProperty (newToken, $ {Token},)}; to change the value into a global variable, as shown in the figure:

4. Pass the new global variable value newToken to the HTTP header manager in GetUserInfo in the scene module thread group, as shown in the figure:

5. The most important step, check the steps in the picture in the test plan

 

Published 29 original articles · Like1 · Visits 572

Guess you like

Origin blog.csdn.net/wennie11/article/details/105572178