Reputation: 95
I have generated a jmeter script.
But I'm not getting anything in response data (View tree listner).
I'm getting Response code: 302 and Response message: Moved Temporarily in response header (View tree listner) also giving the URL to which it is redirected in Location field in response header.
I want this redirected URL to be displayed in response tab.
the url i wnat in response data]1
Upvotes: 0
Views: 3244
Reputation: 168002
You can fetch the URL using Regular Expression Extractor.
Configure it as follows:
You will be able to access the extracted URL as ${location}
or `${__V(location)}} where required.
See Using RegEx (Regular Expression Extractor) With JMeter article for more information on correlating dynamic values in JMeter test.
Upvotes: 2