I am modeling a service that is projected to respond with varying amounts of latency / delay that fall within a defined range.
The dev team created a mock endpoint that can simulate different service response times by putting its thread to sleep for a certain number of milliseconds. We can vary this for different requests by passing in different values through the query string.
I’m wondering how things would change if we used Gatling to simulate this delay instead of doing it on the server side.
With that said, I’m not sure of the difference between using doNothingFor(500) in my injectionStep versus using pause(500) in the scenario.
Does one offer special advantages over the other?
How would these values be calculated in the report metrics?