Reputation: 1
Trying to capture simple Title from response body of HTTP request through XPath Extractor and Regular Expression but getting blank response. Tried Regular Expression through https://regexr.com where it is showing correct response but not in JMeter. Can you please help here.
Upvotes: 0
Views: 21
Reputation: 168002
Regular Expression - incorrect scope, you need to switch it to Body
XPath Extractor - try //title/text()
as the query
Use correct Apply to
as in case of several sub-results the PostProcessor will be applied to all of them and subsequent sub-result will overwrite the result of the previous one.
Also be aware of JMeter Scoping Rules, given your current setup PostProcessors are being executed after each Sampler, if you want to extract title of a specific page - you need to make the PostProcessor a child of that Sampler
Upvotes: 0