Reputation: 1
I ran into a problem in JMeter.
I have URL and into body there is GET http://test.com/registration?test={value} and I need to extract value of test parameter and put this value to the next url to another parameter.
I used Regular Expression Extractor but all I can do is pull out the whole URL but not specific value from the URL.
By way of example:
<a href="http://test.com/registration?test={value}">See Other</a>.
If you have any thoughts on this please help. Thanks in advance!
I used Regular Expression Extractor but all I can do is pull out the whole URL but not specific value from the URL.
Probably there are any other ways to solve it.
Upvotes: 0
Views: 385
Reputation: 168217
Try with this regular expression:
test=(.+?)"
Full configuration just in case:
You will be able to refer extracted value as ${value}
where required.
You might find Boundary Extractor easier to use, in this case you just need to provide "left" and "right" boundaries and it will extract everything in-between:
More information: The Boundary Extractor vs. the Regular Expression Extractor in JMeter
Upvotes: 0