jmeter-websocket-samplers | Plugin for JMeter for load testing WebSocket | Performance Testing library

 by   Luminis-Arnhem Java Version: v1.0 License: Non-SPDX

kandi X-RAY | jmeter-websocket-samplers Summary

kandi X-RAY | jmeter-websocket-samplers Summary

jmeter-websocket-samplers is a Java library typically used in Testing, Performance Testing applications. jmeter-websocket-samplers has no vulnerabilities, it has build file available and it has low support. However jmeter-websocket-samplers has 9 bugs and it has a Non-SPDX License. You can download it from GitHub.

JMeter add-on that defines a number of samplers for load testing WebSocket applications.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              jmeter-websocket-samplers has a low active ecosystem.
              It has 46 star(s) with 19 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              jmeter-websocket-samplers has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of jmeter-websocket-samplers is v1.0

            kandi-Quality Quality

              OutlinedDot
              jmeter-websocket-samplers has 9 bugs (2 blocker, 0 critical, 6 major, 1 minor) and 330 code smells.

            kandi-Security Security

              jmeter-websocket-samplers has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              jmeter-websocket-samplers code analysis shows 0 unresolved vulnerabilities.
              There are 6 security hotspots that need review.

            kandi-License License

              jmeter-websocket-samplers has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              jmeter-websocket-samplers releases are available to install and integrate.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              It has 7669 lines of code, 704 functions and 80 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed jmeter-websocket-samplers and discovered the below as its top functions. This is intended to give you an instant insight into jmeter-websocket-samplers implemented functionality, and help decide if they suit your requirements.
            • Sample
            • Connects to the web socket
            • Setup proxy connection
            • Read a server response from an input stream
            • Gets the assertion result
            • Formats a byte array
            • Converts a string into a byte array
            • Checks if source array contains value
            • Modify a test element
            • Sends a ping response
            • Create a web socket client
            • Modifies the test element
            • Configures the TestWebSocketSampler
            • Configures the test web socket
            • Modify test web socket element
            • Sends a sample request
            • Configures the web socket web socket
            • Checks if the given frame matches the filter
            • Initialize this box
            • Aligns the components of a layout
            • Initialize the JPanel
            • Aligns the components to a compact grid
            • Initialize the panel
            • Returns whether the given frame matches the given comparison type
            • Initialize the options
            • Initialize this panel
            Get all kandi verified functions for this library.

            jmeter-websocket-samplers Key Features

            No Key Features are available at this moment for jmeter-websocket-samplers.

            jmeter-websocket-samplers Examples and Code Snippets

            Logging
            Javadot img1Lines of Code : 3dot img1License : Non-SPDX (NOASSERTION)
            copy iconCopy
            log_level.eu.luminis.jmeter=DEBUG
            log_level.eu.luminis.websocket=DEBUG
              
            JMeter WebSocket Samplers,Building
            Javadot img2Lines of Code : 3dot img2License : Non-SPDX (NOASSERTION)
            copy iconCopy
            gradle assemble
            
            ./gradlew
            
            gradle idea
              

            Community Discussions

            QUESTION

            JMeter & socket.io - I can see the message I want, but the socket plugin is not showing what I expect
            Asked 2022-Mar-02 at 15:16

            Here is the socket message I see in the browser debugger console:

            More illustrative, perhaps:

            I call an API operation that triggers this message over a socket.

            What I Tried

            To preclude inaccuracies, I started 2 instances of JMeter.

            1. REST API call.
            2. 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).

            Expected

            Eventually, (1) should show me a sampler in the View Results Tree with the message in the screenshot ("42" - GAME_STARTED)

            Actual

            The 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.

            Update

            We succeeded in finding the message using python-socketio:

            ...

            ANSWER

            Answered 2022-Feb-28 at 07:36

            Take 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.

            Source https://stackoverflow.com/questions/71285624

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install jmeter-websocket-samplers

            You can download it from GitHub.
            You can use jmeter-websocket-samplers 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-samplers 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

            If you encounter any issues or ambiguities, please report them. Also questions, problems, or other feedback (appreciation ;-)) is always welcome. Please mail the author (peter dot doornbosch) at luminis dot eu, or create an issue at https://bitbucket.org/pjtr/jmeter-websocket-samplers/issues.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/Luminis-Arnhem/jmeter-websocket-samplers.git

          • CLI

            gh repo clone Luminis-Arnhem/jmeter-websocket-samplers

          • sshUrl

            git@github.com:Luminis-Arnhem/jmeter-websocket-samplers.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link