Taurus PassFail Issues when testing Jmeter.jmx script

335 Views Asked by At

So I'm learning a little bit about Taurus and was trying to apply some pass fail criteria to my .jmx script. When I try to evaluate a specific sampler, it seems to not run the pass fail criteria at all, but if I were to do a simple avg-rt > 10s, continue as failed , this works, but the issue is I want to evaluate each sampler specifically.

Here is a screenshot of my .yml file enter image description here

I was using this link as reference to follow but I can't seem to get it to work with my script. https://dzone.com/articles/running-your-load-tests-with-pass-fail-criteria-a

Any help and advice would be appreciated :) Thank you!

2

There are 2 best solutions below

1
On

For me it seems to run pass/fail criteria

enter image description here

As you like screenshots here is the screenshot of Taurus YAML file:

enter image description here

And here is the screenshot of "test.jmx" which basically uses simple single Dummy Sampler:

enter image description here

Just in case here is the link to the official documentation of the subsystem: Pass/Fail Criteria

0
On

So the issue was that spaces matter lol.

rewriting it as avg-rt of first_navigate>1s, continue as failed does the trick :)