I am very new to Jmeter, I am using JMeter 5.1. I have an HTTP request with multiple Threads and Loops. After the result, I have an aggregate report which allows me to see Average of all response time, 90th Percentile, 99th percentile and other such metrics.
What I want to do is assert this result with what is expected. Basically, when I run this script in cli, it should fail (For eg.) if 90th percentile is greater than 2000ms, it should exit with a non-zero value.
I tried using JSR233/Beanshell Assertion, I am not sure how to get aggregate report variables' value (like 99th percentile) to the jsr233 script.
Currently, cli returns with 0 even if there is some error in the script (like 500 or 404).
