Hi, I am currently facing some issue that pause functionality is not working as expected. I need 975 milliseconds between two requests and I have added pause after execution of first request, but it is not pausing there and hitting second request without delay.
Hi Gerard, is there any sample code for my reference to set the threshold and apply pause delay? Providing some sample scenario, apply threshold of 50 TPS for 10 minutes and 100 TPS for next 5 minutes with 975 milliseconds between two requests of same scenario?
In Gatling there isn’t TPS there are Virtual Users.
Sample Scenario that make injection what you mentioned using incrementUsersPerSec below - of corse for smaller scale and level lasting time are the same but this should show you idea how to:
Hi @GeMi ,
But we can’t run this for any fixed duration. It will end once all virtual users execute the scenario.
Our need is to run the scenario for one hour with some virtual users along with intermediate spikes(also apply delay between two requests). Is there any code snippet available with you to accomplish our requirement?