0

I am using a websocket plug-in to load test websockets. I want that there should be a few seconds delay between opening connection and sending infinite messages. I tried moving 2s delay around but i couldnt get it to work.

This is my config: Number of threads: 1 Ramp up period: 0 Loop Count: 1

enter image description here

1 Answer 1

0

If you want to create a delay only before sending the first message - use Flow Control Action sampler between these 2 Samplers.

enter image description here

If you want to create a delay before each request in the loop either move Flow Control Action sampler inside the Loop Controller or alternatively add a Constant Timer as a child of the "Single Write Sampler":

enter image description here

More information: A Comprehensive Guide to Using JMeter Timers

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.