JMeter SMTP Sampler not triggering on Failure

This sampler lets you send an HTTP/HTTPS request to a web server. It also lets you control whether or not JMeter parses HTML files for images and other embedded ...

JMeter SMTP Sampler not triggering on Failure

I have created a Thread Group and have 2 test sampler - Create Service and Create Project. I have added an SMTP Sampler to this Thread group and added an IF Controller with this script !${JMeterThread.last_sample_ok} But this SMTP Sampler is not triggering when I run the Thread group and there is a failure on Service Creation. what am I doing wrong here

enter image description here

enter image description here

If Controller expects the "condition" to be true or false, what you put resolves into !true hence it doesn't fire.

I would suggest considering switching to __jexl3() function like:

${__jexl3("${JMeterThread.last_sample_ok}" == "false",)}

enter image description here


Click Here to Visit

What's Your Reaction?

like
0
dislike
0
love
0
funny
0
angry
0
sad
0
wow
0