Jmeter extending a threadgroup to make it more like listener - jmeter

Is it even possible to extend Thread group in jmeter that it will be both Thread group and listener i mean hat it will get data from samplers and probably save then into a file ?

Related

How to listen to a port in cloverleaf using JMeter to receive messages and get them as response into JMeter Listeners?

I have tried using Java Requests, TCP Samplers, JSR223 but nothing seems to work, a connection is established but no message is shown in the Listeners.
If you use Java Request or JSR223 Sampler it's you who needs to get the response, convert it into a byte array or a string and set it as a SampleResult.
See JavaDoc for all available functions (you're interested in setResponseData() mainly) and Top 8 JMeter Java Classes You Should Be Using with Groovy article for more information on this and other most commonly used JMeter API classes

Jmeter: Access all results from all threadGroups from JSR223 Sampler or BeanShell Sampler in TeardownThread

is there a way to get info about all requests in the mentioned samplers after main thread group finished? In TeardownThread maybe?
I want to perform some calculation and send couple request which are based on info about those requests and it is to resource consuming to do it with sampler for each of the requests.
No.
The options are in:
Parse the .jtl results file
Use the JSR23 Listener in the main Thread Group. The Listeners obey JMeter Scoping Rules if you don't want your code to run after all samplers
Create a JMeter Plugin, the most suitable option for your case would be your own implementation of Backend Listener

Concurrent Users Load test for WebSocket is not executing properly in JMeter

I'm doing concurrent users load test for SignalR Protocol with WebSocket transport, I'm able run the script successfully for single users with more than 1 iteration. If I run it for concurrent users I'm not getting the expected behavior- which is I'm getting Second users response in first user request.
Please guide me here.
Most probably your parameterization or correlation fails somewhere somehow, i.e. you're sending the same session argument for both users.
Use Debug Sampler and View Results Tree listener combination in order to inspect request and response details and associated JMeter Variables values.

Using Communication style "clear" in Jmeter JMS point to point sampler

As per http://jmeter.apache.org/usermanual/component_reference.html#JMS_Point-to-Point
the communication style clear is used to clear the messages from the given queue.
Scenario: In my test plan , i have 2 threadgroups.
1) JMS Point to Point sampler to send messages: My JMS sampler fires request_only messages to the inqueue.
2) JMS Point to Point sampler to clear the messages in the outqueue. Here the communication style is selected as "clear" and the outqueue has been specified in the "JNDI Request queue" field.
On running the test plan almost always the View results tree shows that the clear JMS sampler has cleared 0 messages from the outqueue.
Any idea why this is so.
My objective is to ensure that the outqueue is drained regularly. Please advise if there is a better way to do this.
JMeter 4.0 supports clear option in JMS
JMS Point-to-Point sampler has been enhanced with read, browse, clear options.
So you can choose communication style clear

How to get slow response services in bulk email using jmeter?

I want email notification after completion of test i have more than 100 samplers so i need bulk mail which should contain only slow response services/samplers how to achieve this?
I would suggest the following setup:
Amend JMeter configuration to save only failed samples and to store the results as soon as they appear by adding the next lines to user.properties file:
jmeter.save.saveservice.successful=false
jmeter.save.saveservice.autoflush=true
JMeter restart will be required to pick the properties up
Use Duration Assertion with some form of threshold to mark "slow" samplers with response times lower than that threshold as failed
Use tearDown Thread Group and SMTP Sampler to send the results where required.
References:
Configuring JMeter
Load Testing Your Email Server: How to Send and Receive E-mails with JMeter

Resources