Listeners in JMeter

What are Listeners?

Listeners are the test plan elements that are used to view and analyze the result of performance tests in tabular and graphical form. They also provide us the whole response of a Sampler request made to the server.

How to add a Listener-
Right Click on Test plan -> Hover over Add -> Hover Over Listener -> Click on the required Listener
Listeners in JMeter

We can add listeners as child of a particular Thread Group also. In that case, the Listener will use the data of that Thread Group for analysis.

*Please note that it is good practice to store the Test results in a .jtl files. This file can then later be loaded into a Listener to create graphs and perform different functions provided by different Listeners.

Different Listeners Provided by JMeter

Aggregate Graph

The Aggregate Graph listener is used to display the test results in both tabular form(reports) and graphs.


Aggregate Report

The Aggregate Report listener is used to display and store test results in the form of reports.


Assertion Results

The assertion results listener is used to display the assertion result for each erroneous sampler response. It is advised to not use this listener during performance test as it is very resource intensive. It should be used while debugging and functional testing only.


Backend Listener

The backend listener is a special type of asynchronous listener used specifically with BackendListenerClient for its customization.


BeanShell Listener

The beanshell listener is used to enable beanshell scripting in JMeter. For details on BeanShell Scipting check our tutorial Bean Shell Scripting in JMeter.


BSF Listener

The beanshell listener is used to enable BSF scripting in JMeter.


Comparision Assertion Visualizer

The Comparision Assertion Visualizer is used to provide the comparision between assertion result in an easy to compare UI.


Generate Summary Results

The Generate Summary results listener is used to store and display detailed test results to log files.


Graph Results

The Graph results listener is used to display each sampler resuest's response time graph in terms of average, median, deviation and throughput.


JSR223 Listener

The JSR223 Listener is used to enable JSR223 scripting in JMeter.


Mailer Visualizer

The Mailer Visualizer sampler is used to provide the functionality of sending customized mails in case of some specific error threshold.


Monitor Results

This is a newly added listener in JMeter used to display and store server performance stats.


Response Time Graph

The response time graph is used to provide the graphical representation of response time with time elapsed during the test run.


Save Response to a file

The save response to a file listener is used to store the sampler response in a file. This listener is used while functional testing or debugging the test script.


Simple Data Writer

The simple data writer listener is used to save the sampler response to a file after with different configurations to remove several unnecessary overheads.


Summary Report

The summary report is used to store and display the test result in tabular form just like aggregate report listener but consumes less memory(as per Apache JMeter).


View Results Tree

This listener is used to provide and store test results for each and every individual sampler.


View Results in Table

The view results in table listener is used to display the sampler response header and response body.



Reference

Apache JMeter User Manual