0

I am recording our game app using JMeter

And it has an API server, which using the WebSocket's protocol

While meeting that request sent to API server, I always get this message, and can't go further

enter image description here

Is that means I need to modify the original JMeter's source code to walk around this problem? Or any way out? If so, that'd be appreciated.

smyslov
  • 1,279
  • 1
  • 8
  • 29
Kid Liou
  • 21
  • 4
  • you should use HTTPS and not HTTP, see https://stackoverflow.com/questions/6532273/unrecognized-ssl-message-plaintext-connection-exception – Ori Marko Oct 17 '17 at 07:00

1 Answers1

0

I don't think you will be able to record and replay WebSocket transport using JMeter's HTTP(S) Test Script Recorder as WebSocket is a different beast, given you have a game application my expectation is that it might be the case application opens a WebSocket connection and re-uses it until the end of session and so you won't be able to mimic this behavior using "normal" HTTP Request samplers as WebSocket assumes either ws or wss protocol.

I would suggest considering one of the following JMeter Plugins:

Both plugins can be installed using JMeter Plugins Manager:

JMeter Plugins Manager WebSocket

Dmitri T
  • 159,985
  • 5
  • 83
  • 133