How can I set in Jmeter the conditions to establish that a sample has been a success or a failure according to its response time?
For example making Jmeter to consider that a sample with a response time above 10000 milliseconds is a fail and a sample with a response time under 10000 milliseconds is a success.
Below code will work in Beanshell Assertion. In addition, it will abort the current iteration and the virtual user will proceed to the next iteration from the beginning
Add Duration Assertion as a child to the sampler in which you want to assert the response times.
In
Duration in milliseconds
field, add value10000
.