Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

JMeter Listeners, Part II: Listeners That Aggregate Data Samples

DZone's Guide to

JMeter Listeners, Part II: Listeners That Aggregate Data Samples

Listeners not only enable developers and performance testers to monitor JMeter requests and analyze test results — they can also consolidate data collected from samples.

· DevOps Zone
Free Resource

“Automated Testing: The Glue That Holds DevOps Together” to learn about the key role automated testing plays in a DevOps workflow, brought to you in partnership with Sauce Labs.

Welcome to Part II of our JMeter Listeners series. In Part I, we covered Listeners that have basic displays. This time, we will review listeners that consolidate information collected from samples.

Just to remind you, listeners enable developers and performance testers to monitor JMeter requests and analyze test results. Listeners aggregate data, process and manipulate the information in it and even enable customization.

All listeners can be found by right clicking the test plan Add > Listeners. A JMeter listener will only collect data from JMeter elements at or above its level. For a more detailed explanation, see the first blog post in this series.

The Aggregate Report listener shows the aggregated and statistical data for each sample of the script. The report table displays the following KPIs for each sample: the number of times it was executed in the script, minimum, maximum, average response times, percentages, response time, throughput, the number of samples per time unit, Kbytes per second, and error percentage. These KPIs are useful for tracking your test performance as well as your system's health and for monitoring trends.

Aggregate Graph 

The Aggregate Graph is similar to the Aggregate Report, only in addition to the aggregated data table, it plots a bar chart for the response time metrics for each sample. An example of how the Aggregate Graph report might look like is shown in the screenshot below:

Increase imageaggregate graph listener jmeter

The Graph Results listener shows a line chart of the response times, throughput, and deviation of the tested system, over time.

Increase imagegraph results listener jmeter

Generate Summary Results

The Generate Summary Results listener generates the summary report to a log file and to the JMeter log. The report format and the report file are defined in the JMeter properties file. A screenshot of what this looks like is shown below.

Increase imagegenerate summary results jmeter

Please note that when running your tests in CA BlazeMeter, you should remove or disable the listeners unless you intend to generate extra log files. This is because they consume resources from the machine or engine that is running the test.

Congratulations! You finished learning about the second group of JMeter listeners. Stay tuned for the next part.

Learn about the importance of automated testing as part of a healthy DevOps practice, brought to you in partnership with Sauce Labs.

Topics:
jmeter ,listeners ,devops ,data sample

Published at DZone with permission of Konsantine Firsanov, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}