WS Connection across Thread Groups

Issue #36 closed
Ashish Grover created an issue

Hey there

I want to create and open a web socket connection in my setUp Thread and then use this connection across multiple thread groups.

I have a WebSocket Single Write Sampler setup to 'use existing connection', however I'm getting an error that no connection exists (which makes sense since I'm not opening a new connection in this thread group).

Is there a way to carry open WS connections across thread groups?

Comments (3)

  1. Peter Doornbosch repo owner

    Hi Ashish,

    No, it's not possible to share ws connections across threads. This is intentional. A JMeter thread is supposed to simulate a client and in reality, different clients won't share ws connections either.

    If you can explain what you want to achieve, i might be able to help you setting up a test plan.

    Regards Peter

  2. Log in to comment