I am writing a test case which will hit a URLs and send email if response code is 404. Request is going well and Response also coming but I am stuck at Regular Expression Extractor.Sample Request Result
2
votes
2 Answers
4
votes
- Amend your Regular Expression to be
\d+ - Add If Controller after the "Landing Page Verification" request and use
"${responsemsg}" == "404"as the condition - Make SMTP Request sampler a child of the If Controller
Example Test Plan snapshot
2
votes
Change the regular expression to (\d+) and template to $1$ and match no. to 1. see using regex with jmeter and Regular Expressions from jmeter user manual for more information.
