How to simulate server push and avoid fragmented responses
I am trying to simulate web socket scenario where server is sending data to the browser in every few seconds. How can I simulate this. Also I am able to get data using Read Sampler but it is coming fragmented. In browser it is not coming fragmented.
Comments (5)
-
repo owner -
reporter thanks Peter for the quick response. Actually my Jmeter replay is getting response in fragments but that is not happening in actual web browser. here are the different snapshots. Below snapshot shows web socket communication from web browser.
and below one from Jmeter replay.
So just want to check if it is possible to make data come just like web browser in one frame.
-
repo owner Hi,
I’m not sure whether the browser capture proofs that the messages where not fragmented on the wire; maybe the browser hides this level of detail. Only a wireshark capture will reveal whether the messages are fragmented.
The question how you can make the data come in one frame, i cannot answer; it is your server who is deciding when to split a message into fragments. There is no negotiation about such settings with the client; it’s solely the server that decides.
Hth
Peter
-
reporter Thank you Peter. I will check in wireshark and also what server is actually sending.
-
repo owner - changed status to closed
- Log in to comment
The docs explains how to handle fragments. See https://bitbucket.org/pjtr/jmeter-websocket-samplers/src/master/README.md.