vikranth
vikranth

Reputation: 127

How to get websocket-plugin working in Jmeter?

I have to carry out few tests using Web-socket via Jmeter, i found the jar files (ApacheJmeter_websocket-dist-0.1.0-SNAPSHOT.jar) in stackoverflow (WebSocket plugin for Jmeter).

When i send a request to any valid website (eg: echo.websocket.org) then i get java.net.Protocol Exception: Bad response status 400 Bad Request or java.net.Protocol Exception: Bad response status 404 Not Found.

Am i missing anything?

Upvotes: 0

Views: 1585

Answers (1)

Dmitri T
Dmitri T

Reputation: 168092

As per WebSocket Testing With Apache JMeter the plugin you've mentioned

relies on the 8.1.9.v20130131 Jetty libraries version which not fully RFC6455 compliant, but rather a kind of experimental draft. It also doesn't seem to support reusing one TCP session (this is how browsers work and the majority of test cases will be connected with sending lots of messages through one session)

So please consider using newer WebSocketSampler instead.

Upvotes: 0

Related Questions