jmeter-java-dsl
jmeter-java-dsl copied to clipboard
Support for WebSocketClient
Please add websocket/wss client to DSL. For example, jmeter has a good websocket plugin https://jmeter-plugins.org/?search=websocket-samplers.
This will greatly simplify the work !
Upvote!
Upvote, it's necessary and useful
Upvote!
Upvote!
Upvote!
Upvote
Upvote !
Upvote, it's super necessary!
"Upvote !"
Upvote!
Upvote!
Upvote!
Upvote!
Upvote!
upvote!
Upvote !
upvote
Upvote!
Wow, a lot of suden upvoting in this issue. Do you have any additional insight why is this important for so many people in such short period of time?
There is also this issue which requests the same support .
Hi Rebelenda ! Glad you heard us, thank you! We all came to you from the different Performance tests and QA communities. A lot of guys use Jmeter dsl and we would like to see the ability to test websockets. We know that you can add your script through the DslJavaSample + BaseSampler wrapper. But I would like to see the ability to use a websocket client according to the standard like http. We will be very grateful to you if you implement this.
Hello @rabelenda! We are all very interested in this feature. Resolving this issue would be highly appreciated by the performance testing community
Hi, @rabelenda! We will highly appreciate you if you increase the priority of implementing this functionality. This really helpful to build performance testing tools for numerous projects.
Upvote!
Can you provide different samples (maybe jmx files, potentially scrumbling urls and any potential sensitive config) of the main ways you use the samplers plugin?
I am interested in identifying what are the main/most common scenarios to ease their usage, and also identify the scope (how much features & effort is needed to support most of the use cases).
For example, what samplers do you usually use, what data formats you use for requests, do you usually specify request headers, do you load request bodies from files, do you use binary response assertions or filters?
Do you have any best practices or tips that we should consider in the design?
For example, I see that for handling segmented messages (sent in multiple frames) nowadays with the plugin you need to add a loop or add multiple samplers. Additionally, I see that the sampler does not close the connection by default and reuses it in each thread iteration (which is not the same behavior we use by default in DSL for other connections, like HTTP). In the DSL we could optimize these cases, and other that you may identify, and make them simpler to use in the DSL.
Upvote!
Hi @rabelenda, thank you for supporting this issue. Here are the answers to your questions and the simple script example. As for samplers, the most popular:
- WS Write
- WS Read
- WS Open
- WS Close
- WS Ping Pong sampler
- WS Text Frame Filter
As for loading the body samplers, I load them from the txt files. I don't use the binary response assertion, the simple text Response assertion works for me
Hi @rabelenda, sorry for the long reply. There are some good usage examples here: https://github.com/Luminis-Arnhem/jmeter-websocket-samplers/tree/master/samples
Thx @NaumVik thx for examples !
Upvote!
@rabelenda Hi ! Do you have any news about this task ?
hi @IvanKvashnin ,we're currently finishing the support for JMeter 5.6.3, and websocket support is next in our backlog in terms of priority. We'll keep you updated.
Thank you!