0
votes

I am new to JMeter testing, but want to learn :) I am trying to set and test websocket messages, however any of my requests is not recorded on the server where I expect to see these.

I used the given steps here: https://www.blazemeter.com/blog/websocket-testing-apache-jmeter Also , tried other plugin, as well. I think I added all dependencies. installed plugins

libraries

After plugin installation, I have only Sampler Websocket Sampler available to work with, as for-message and session, there is displayed error "2021-11-21 00:37:15,992 ERROR o.a.j.u.JMeterUtils: java.lang.NoClassDefFoundError: com/google/common/base/Function"

I tried with message request parameters and body, also added header manager, however still nothing is shown on the server as message from my thread group. Both requests passed successfully with header manager and without. I can see server messages in Jmeter when connected to the WS, but I cannot send any message of my own.

Sampler Results: Thread Name:Thread Group 1-1 Sample Start:2021-11-21 00:10:50 EET Load time:1025 Connect Time:0 Latency:0 Size in bytes:2164 Sent bytes:0 Headers size in bytes:0 Body size in bytes:2164 Sample Count:1 Error Count:0 Data type ("text"|"bin"|""): Response code:200 Response message:

[Execution Flow]

  • Reusing existing connection
  • Waiting for messages for 2000 MILLISECONDS
  • Received frame #3 (32 bytes); matched response pattern
  • Received message #4 (32 bytes); matched response pattern
  • Leaving streaming connection open

[Variables]

  • Message count: 4

[Problems]

SampleResult fields: ContentType: DataEncoding: UTF-8