Search code examples
javajmeterperformance-testing

JMeter requests per second validation/assertion


How can I make a test fail when the request per seconds are e.g. below 20 requests?

How do I need to set up the Throughput controller?


Solution

  • It is not about Throughput controller but about Constant Throughput Timer. You can setup this timer to provide you throughput 20reqs/s. Use Duration assertion or Response assertion to check Response times or Error codes of results.

    Or you can write your own assertion in JSR223 Assertion component.

    Or you can try SmartMeter's acceptance criteria to check your results after test.