Hi,
I have added “Thread.sleep(1000)” between two requests and executed the program. We have observed that the response time variation in gatling and our logs for requests.
So, our doubt is whether Thread will affect the response time shown in gatling metrics?
Below is the code snippet:
val scn = scenario("Sample scenario")
.exec(createProduct)
.exec(session=>{
Thread.sleep(975)
session
})
.exec(getUsagePlanForSkuFeaV3_1)
setUp(Activation.scn.inject(stressPeakUsers(210)during (2 minutes)).throttle(reachRps(210) in (1 seconds),holdFor(60 minutes))
).protocols(httpConfig)