Websocket Sampler- Unable to read multiple streams

Issue #217 closed
Former user created an issue

Hi Peter,

I have tried my best to search if this issue is covered earlier but may be I am searching wrong terminology hence starting this new thread.If you feel this is repeated please redirect me to correct thread and you can close this one.

I am using JMeterWebSocketSamplers-1.2.jar

My application is designed in Stomp protocol. When a request is Subscribed it sends data from two different databases in form of two streams.

Dev tools shows me below Response Message. Each chunk of response starts with this details which helps to identify which set of records belongs to which system. --Stream 1(from db1) - "sourceSystem":"Sys1","subSystem":null,"realTime":false --Stream 2(From db2) - "sourceSystem":"Sys2","subSystem":"subSys2","realTime":false,

I am able to successfully connect,subscriobe and read my response in loop till it reaches end of records. But the issue here is, I receive responsee from only one stream - SourceSystem Sys1. When I read the response in loop it reads till end of records for SourceSystem Sys1 stream.

How can I get/read response from sourceSystem Sys2?

In current scenario I am able to get responsetime of only 1 SourceSystem. However I want to get total responsetime taken for the application to retrieve records received from both the sourceSystems.

Regards, Disha

Comments (3)

  1. Disha Rajapurkar

    Hi Peter, Any views/suggestions on this? I tried using filter frames to capture data separately from different streams but no luck. It will be very helpful to get your expert comments. Let me know if you want me to explain the issue in a better way

  2. Peter Doornbosch repo owner

    Hi,

    The WebSocket protocol does not have the concept of “streams”, a websocket connection is a stream. I don’t know about the Stomp protocol, so you should investigate how Stomp streams are mapped on the websocket protocol. That you don’t see the records from the second stream, might indicate they are send over a second websocket connection.

    Hth
    Peter

  3. Log in to comment