- edited description
Can a Jmeter thread create and use multiple ws connections ?
Hi Peter,
First of all thanks for providing this plugin. I am using it from last couple of weeks and it is really helping out in simulating websocket based app on which I am working.
I have one question, is it possible that same thread can create 2 or more ws connections and reuse them to send data time to time. Below is one scenario:
Data file is having 2 users. (User1,User2) in single row. Step1- User1 will create wss connection1 and will send data to User2. Step2- User2 will create wss connection2 and will receive and validate data send by User1. Step3 - User1 and User2 will perform other operations using their respective wss connections.
I want to achieve the above using single thread.
Is there any plan to add something like connection Id with "WebSocket request-response Sampler" so that that same thread can reuse multiple opened connections?
-Thanks
Comments (6)
-
reporter -
repo owner Hi,
Thanks for the feedback. Having multiple (open) connections on 1 thread is currently not possible; opening a new connection will automatically close the previous. I understand your use case and i might add such a feature in the future, but it isn't planned....
Maybe this fork https://bitbucket.org/coolersport/jmeter-websocket-samplers can help you in the meantime?
-
reporter Thanks Peter.
-
repo owner - changed status to closed
-
repo owner Suddenly, i needed this feature myself ;-). So i started an implementation, see https://bitbucket.org/pjtr/jmeter-websocket-samplers/branch/multiple-connections. It's pretty basic now, it will definitely require more polishing before i'm going to put it into a release, but it works.
-
reporter Thanks Peter :)
- Log in to comment