jmeter-websocket | The jmeter plugin for WebSocket protocol | Plugin library
kandi X-RAY | jmeter-websocket Summary
kandi X-RAY | jmeter-websocket Summary
This is the jmeter plugin for WebSocket protocol.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Samples a single entry
- Returns the query string
- Initialize the sampler
- Returns the URI for the resource
- Sets the path
- Add an HTTP argument
- Adds an HTTP argument
- Parse query arguments
- Initialize the panel
- Gets the receive message panel
- Helper method to retrieve a string from a resource key
- Gets the protocol and path
- Create a web socket sampler
- Sets the name of the component
- Modifies web socket test element
- Returns true if there are arguments
- Gets arguments
- Configures the web socket sampler
- Apply the given config to the sampler
- Returns the default port for the given protocol and protocol
- Returns the static label for the test
- Add an argument
- Set the protocol
jmeter-websocket Key Features
jmeter-websocket Examples and Code Snippets
Community Discussions
Trending Discussions on jmeter-websocket
QUESTION
Here is the socket message I see in the browser debugger console:
I call an API operation that triggers this message over a socket.
What I TriedTo preclude inaccuracies, I started 2 instances of JMeter.
- REST API call.
- Revised version of the GitHub JMeter example of sockets.io, in which I just call a WebSocket Sampler repeatedly on wss://events.dev.myserver.com:443/socket.io/?EIO=4&transport=websocket.
I kicked off (2).
While that was running, I kicked off (1).
ExpectedEventually, (1) should show me a sampler in the View Results Tree with the message in the screenshot ("42" - GAME_STARTED)
ActualThe only messages I see look like this:
This is really all I want to do: run the appropriate sampler, a sufficient time after making the API call, to get the message.
UpdateWe succeeded in finding the message using python-socketio:
...ANSWER
Answered 2022-Feb-28 at 07:36Take a look at other fields of the HTTP Request, in particular HTTP Headers, most probably your JMeter request is missing some essential information.
My expectation is that in order to "start the game" (whatever it means) you need to open the page in the browser, authorize somehow, follow the steps of the protocol upgrade mechanism, etc. to wit exactly mimic what real browser does, all the request sequence which is prior to starting the game.
You might need to correlate dynamic parameters, add HTTP Header Manager, add HTTP Cookie Manager, etc.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jmeter-websocket
You can use jmeter-websocket like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the jmeter-websocket component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page