Reputation: 9
I am new to Jmeter's Regular Expression Extractor. For an HTTP Request, I am getting an HTML Response. I want to extract an e-mail address which is a hidden value in that response for use in the subsequent request.
The string is:
<input type="hidden" name="login" id="login" value="[email protected]" >
How can I do this?
Upvotes: 0
Views: 6683
Reputation: 12873
You may also maybe like more effective XPath Extractor, used the same way as RegEx Extractor. XPath query will look like:
//input[@type='hidden'][@name='login']/@value
and extractor itself:
Upvotes: 5
Reputation: 7707
This site has great tutorials on how to perl regex's: http://www.regular-expressions.info/
I would also recommend getting the tool "Regex Coach" to help you write - it searches for your string in real time.
But, your regex will look something like:
<input type="hidden" name="login" id="login" value="(.+?)" >
You want to make sure you include the (), as that is the part JMeter will store into your variable.
Upvotes: 1