Here's how to use JMeter's Regular Expression Extractor post-processor to extract the response from a HTTP Request sampler and use it in the subsequent request.
In the screen above, I'm extracting the value of the hidden form element named "t". If there's no match to the regular expression, the default value "NO TOKEN" will be returned.
To use the extracted value in subsequent HTTP requests, just use the usual JMeter parameter notation. In this case, it's ${TOKEN}; as defined in the Reference Name value.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment