I have JMeter test plan which tests REST API. During execution, it posts items to DB (POST), and next steps are other operations, like GET, UPDATE, DELETE.
When the load is high, and service can't process all requests some items are presented at DB after test execution.
I tried to collect all successfully created to ConcurrentLinkedQueue. And delete all after the load is done at tearDown()
method.
For load testing Throughput Shaping Timer is used. The test plan is executed in not GUI mode, and the load is specified with load_profile
property.
The main problem is Shaping timer stops execution after set time. Thus tearDown()
has never been executed:
How to execute tearDown()
after main load part with Shaping timer?