Regular Expression Extractor Jmeter - I want to se

2019-07-17 03:09发布

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 ResultEmail Code is here

![Sample Result for HTTP Request][Extractor Page]

2条回答
Ridiculous、
2楼-- · 2019-07-17 03:41

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.

查看更多
在下西门庆
3楼-- · 2019-07-17 03:42
  1. Amend your Regular Expression to be \d+
  2. Add If Controller after the "Landing Page Verification" request and use "${responsemsg}" == "404" as the condition
  3. Make SMTP Request sampler a child of the If Controller

Example Test Plan snapshot

JMeter Regex Test Plan

查看更多
登录 后发表回答