• info@helpingtesters.com
  • helpingtesters

Listeners in JMeter

September 10, 2017 JMeter Tutorial
Listeners in JMeter, best Listeners in JMeter, understanding Listeners in JMeter, types of Listeners in JMeter

Once all components of a Test Plan are added one can run the test. But, results of the test run can be viewed through Listeners in Jmeter. It listens to actions that are taking place in the script. Listeners in Jmeter records and displays result in different formats like table, graph and log files etc. They help the user to visualize the results and analyze request sent and the response received. 

The listener can be added as part of the Test Plan or a particular Thread group based on requirement. Right click Test Plan > Thread group > Simple controller > HTTP Request

→Complete list of JMeter Tutorial Series

Popular listeners in JMeter

⇒ View Results Tree

This helps to display data in Tree format. Suppose Thread count is set as 5 and test is executed. Now, click on the listener, it will show 5 requests. If the requests have succeeded then the green color is displayed else red.

Clicking on any request displays 3 tabs > Sampler Result, Request, and Response.

  • Response code = 200 shows that request has passed.
  • Request Tab shows the request sent, post URL, Headers etc.
  • Response tab shows response received from the server
  • One can publish results to a CSV file also. Click on “Browse” button. It will open the folder and create a new file.
  • This will help to export file to the external location.
  • The file will be created in the location with the results table.
  • All information related to test run is shared.
  • This Listeners in Jmeter consumes a lot of memory. For the test run with fewer users (10 or 15) it’s fine to use this listener but for the larger number, it is not advisable as it will eat up all the memory.


⇒ View Results in a Table

View Results in a Table is used to display results in tabular format.

Below are the fields displayed in a Table

  • Sample #: Total number of Threads
  • Start Time: Time at which run is started
  • Thread Name: Name of the thread group with count based on total number of users
  • Label: Name of Sampler
  • Sample Time (ms): Total Time is taken to receive response in milliseconds
  • Status: OK status means that all requests have passed
  • Size of Bytes: Total bytes which are transferred for the request
  • Latency: Time in which response of the first byte is received. Here it is 249s to get the response. Once the whole response is received that is the sample time.
  • Connect Time: Time to connect to server


⇒ Aggregate Graph

We can see results of a test run in a graphical manner as well.



Below are various fields which are displayed in the result of the aggregate graph after the test is run.

  • Label: Distinguish requests by name of sampler
  • # Sample: Number of threads
  • Average: Requests are sent to the server. Based on the response received average is taken for all requests and shown in this column.
  • Median: Half of the requests took this response time and rest took more than this.
  • 90% Line: 90% of requests took this response time and rest took more than it.
  • 95% Line: 95% of requests took this response time and rest took more than it.
  • 99% Line: 99% of requests took this response time and rest took more than it.
  • Minimum response time: This is the minimum response time taken by any of the requests
  • Maximum response time: This is the maximum response time taken by any of the requests
  • Error percentage: Depends on how many requests passed or failed
  • Throughput: Time is taken by request per second
  • Size: Size of data that is sent

The graph will display values of those fields that are checked in the Settings tab. In order to successfully display the graph, 1 or more than 1 field should be checked. Also, one may configure the color in which graph needs to display for each column.


⇒ Simple Data Writer

This Listeners in Jmeter takes minimum memory. It should be used in case of heavy load. Click on “Browse” button and navigate to the CSV file. Once CSV file is selected,  run the test.

Response data of Simple data writer is written into the file as shown below:

As it does not display data in form of graph, tree or table structure in JMeter Graphical User Interface but instead exports the contents to a CSV file hence, the amount of memory it consumes is less.

About the author

Ankita Dawar author

Ankita has worked on different types of testing like Manual, Automation, Performance testing.  She likes to learn about new tools in market that help to make testing easier and interesting. Testing is her passion due to versatile areas it offers.

Leave a Reply

Your email address will not be published.