0

I am using JMeter 5.6.3 with the Peter Doornbosch WebSocket Sampler Plugin to test a WebSocket API. However, I am facing two issues:

Issue 1: Received Ping Frame Data When I send a WebSocket request with the following payload:

{ "Id": ${id}, "Type": "creation" }

I receive a ping frame with data @£3 instead of the expected response.

Why am I receiving this ping frame, and how can I handle it in JMeter? Is there a way to filter out ping frames so they do not interfere with my test?

Missing Multiple Responses My WebSocket request is expected to return 4 responses, but I only receive the first response. When I re-run the WebSocket request with the same payload, I do not receive responses 2, 3, and 4. The WebSocket server is designed to send multiple responses for a single request. "Recieved ping frame data for 4 request response".

How can I configure JMeter to capture all responses in a single request without getting ping data frame?

2

1 Answer 1

0

Is there a way to filter out ping frames so they do not interfere with my test?

Sure there is! See the documentation at https://bitbucket.org/pjtr/jmeter-websocket-samplers/src/master/, specifically:

Filters To handle situations in which the server sends unsolicited messages and the occurrence of such messages is hard to predict or otherwise hard to take into account in the test plan, filters can be used to discard such messages before they are seen by a sampler. There are three different kinds of filters:

Ping/Pong frame filter: discards all ping and pong frames and has an option to automatically respond to pings (with a pong of course)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.