I am using "WebSocket Samplers by Peter Doornbosch" plugin
The system will send a heartbeat message to the client every 30 seconds. The client must respond for not disconnect to the system.
I want to do the heartbeat part without pausing the current testing process.
What I tried:
- Create a Single read sampler in While timer. It will pause the testing process.
- Create two thread groups. The Websocket object (connection ID) cannot be shared between two thread groups.
- Tried plugin -- Parallel Controller & Sampler, unfortunately it cannot share the websocket object as well.
Edit: For 2, I want the websocket object can be shared between threads. 1 thread for heartbeat job, 1 thread for doing test. Even I input the same connection ID in the second thread, jmeter still treat it as different object.