Hi all, I am performing a test where I simulate 180 “phone calls” over 10 minutes time to a system.
Phone calls have randomized duration of approx. 5 mins.
This is achieved with a sleep()
between a POST and a DELETE request.
After a call is complete it should be removed from the system with an API call.
My approach was to do this ( I’m a bit new so it is possible my approach is wrong).
stages: [
{ duration: '10m', target: 180 }, // start all phone calls within 10 minutes
{ duration: '10m', target: 180 }, //ensure all phone calls wrap up.
{ duration: '2m', target: 0 }, // ramp down the users
]};
My issue was that once a VU’s phone call was finished they would start another one and during rampdown there where active calls that were being left over. So I had every VU sleep()
for a large amount of time after their part was done to ensure that each VU only performed their tasks once.
This feels a bit ‘ugly’ so I wanted to check if there is another approach to Stages for single iteration per VU?
I’m open to a Scenarios approach with ramping-vus
but I would still have to use the sleep()
until the end of test approach.
The reason I used stages was to be able to control the exact amount of calls that would be initiated.
Thank you in advance.