Reputation: 11
I am using a HTTP request with duration assertion of 1 second. I want an alerting system slack/mail whenever my assertion fails. Is it possible to do so using Jmeter ? if yes how ?
Upvotes: 1
Views: 217
Reputation: 168157
Use the following __jexl3() function as the condition:
${__jexl3(${JMeterThread.last_sample_ok} == false,)}
JMeterThread.last_sample_ok
is a pre-defined JMeter Variable which holds the result of previous Sampler execution so If Controllers child/children will be only executed if the previous request is not successful.
That's it, the notification will be sent only if the sampler is not successful
Upvotes: 1
Reputation: 1927
Upvotes: 0