Jmeter a result of the request in response to the request as a request parameters

1. Create a new one request, request parameters configure

 

2. Run the request to enter the "View results tree" view and select the data to be extracted. (Current data to be extracted parameters "accessToken")

 

3. Use the " regular expressions to extract the parameters " parameter extraction "accessToken".

  • Reference name: variable name
  • Regular expression: "accessToken": "(?, +)", Can be modified according to the actual situation of the corresponding
  • Template: Template is using to extract the first few values;
  • Match numbers: 0 represents a random value, a value representative of the entire
  • Default value: the value of a parameter indicative of not taking it, to its default value. Generally do not fill

 

4. The extracted parameters to the new HTTP request Paremates.

 

 

 

5. Create a new HTTP request again, the result of a request directly extracted as a parameter on the current request.

 

  6. can successfully run the program directly.

 

 

 

 

Guess you like

Origin www.cnblogs.com/yue-smile/p/12017341.html