Reputation: 95
I planned to create a Test Plan in my JMeter like below
Test Plan Thread Group
HTTP Request Sampler 1
HTTP Request Sampler 2
HTTP Request Sampler 3
HTTP Request Sampler 4
HTTP Request Sampler 5
HTTP Request Sampler 6
HTTP Request Sampler 7
HTTP Request Sampler 8
If Controller condition
${__groovy(vars.get("JMeterThread.last_sample_ok").equals("false"),)}
SMTP Sampler
I would like to run the test 24/7. If one (or more) HTTP Request Sampler returns an error for whatever reason, then execute the SMTP sampler and send an email to me.
I want to check the condition for every sampler 1-8. But now if HTTP Request Sampler 4 and HTTP Request Sampler 8 is failed, JMeter only sends an email for HTTP Request Sampler 8.
If none of the HTTP Request Sampler returns an error, I want to send an email to me. Please help.
Thanks.
Upvotes: 0
Views: 208
Reputation: 168082
JMeter executes Samplers upside down therefore given you have your If Controller only after HTTP Request Sampler 8
- it will check only HTTP Request Sampler 8 result, previous failures will be silently ignored.
The solutions are in:
Upvotes: 0