Listener in JMeter

From the name Listener in JMeter you can guess that it listens the result of the test and display in a graphical format or tabular format. Apart from displaying results, Listener also allow user to monitor the requests and analysed those responses in JMeter. In this element, User can monitor average time, minimum time, response time, maximum time etc. of a sampler request. Addition to graphical and tabular format, JMeter also display result in tree and log file also.

Below is the list of Listener present in JMeter.

  • View Result Tree
  • Summery report
  • Aggregate Report
  • Aggregate Graph
  • Generate Summery Result
  • Graph Result
  • JSR223 Listener
  • Mailer Visualizer
  • Response Time Graph
  • Save Response to a file
  • View Results in a Table and so on

 Let’s understand the what assertion signifies what.

View Results Tree:

If you want to monitor each and every individual Sampler, then View Result Tree will be right choice in JMeter. View Result tree displays the sampler result for each individual sample. You can see the below screenshot that there are 2 column specified in in Listen. One is Text and other is Sampler Result. Under Text, each sampler label will display where under sampler result, response details will be displayed.

Above screenshot is the example of View Result tree. It has some filed we should aware of. Let’s discuss the significance of each field.

  • Name: This field signifies the name of the assertion which will be listed under the Thread. Name field is so crucial if you will be working with a big application having lots of validation and functionalities.
  • Comments : Comments field is usually used to give comments to our Assertion. This field is optional.
  • Filename:  This field is used to specify that from which file request should be read or to which file the current sampler results will be written.
  • Log/Display Only: This field allow us to specify that whether you need to display only Error or Success. If you check Error, then under Sampler result, only Error responses will be displayed, If the test plan has no Error then no response will be displayed under sampler result field. Same is for Success also.
  • Text: Under Text, each sampler label will be displayed for which test plan is running,
  • Sampler Result: Sampler result will display details of response with respect to each requests.  

View Result in a Table:

This listener in JMeter in generally displays the sampler response header and response body in a tabular format.

Above screenshot is the example of View Results in a Table. It has some filed we should aware of. Let’s discuss the significance of each field.

  • Name:  This field signifies the name of the assertion which will be listed under the Thread. Name field is so crucial if you will be working with a big application having lots of validation and functionalities.
  • Comments : Comments field is usually used to give comments to our Assertion. This field is optional.
  • Filename: This field is used to specify that from which file request should be read or to which file the current sampler results will be written.
  • Log / Display Only: This field allow us to specify that whether you need to display only Error or Success. If you check Error, then under Sampler result, only Error responses will be displayed, If the test plan has no Error then no response will be displayed under sampler result field. Same is for Success also.
  • Sampler:  This will display the name of each individual request.
  • Thread Name: This will display the name of the Thread of the request.
  • Start Time: This will display the start time of each individual request.
  • Label: This will display the label of the request.
  • Sample Time: This will display the Sample Time of the request.
  • Status: This will display the Status of the request.

Summary Report:

Summary report is mostly like View result tree. But the only one difference is this will display the result in tabular pattern. This will display the Sampler label, Name, Average, Min, max, Std Deviation, Error percentage etc. 

Above screenshot is the example of Summary report. It has some filed we should aware of. Let’s discuss the significance of each field.

  • Name:  This field signifies the name of the assertion which will be listed under the Thread. Name field is so crucial if you will be working with a big application having lots of validation and functionalities.
  • Comments : Comments field is usually used to give comments to our Assertion. This field is optional.
  • Filename: This field is used to specify that from which file request should be read or to which file the current sampler results will be written.
  • Log / Display Only: This field allow us to specify that whether you need to display only Error or Success. If you check Error, then under Sampler result, only Error responses will be displayed, If the test plan has no Error then no response will be displayed under sampler result field. Same is for Success also.
  • Label : This will display the label of the request.
  • Sampler:  This will display the name of each individual request.
  • Average: This will display the average response time of each individual request.
  • Min: This will display the min response time of each individual request.
  • Max: This will display the max response time of each individual request.
  • Std. Deviation : This will display the standard deviation of each individual request.
  • Error Percentage :This will display the Error Percentage of each individual request.
  • Throughput: This will display the Throughput of each individual request.

Aggregate Report :

Aggregate Report is like Summery report with some extra feature like displaying 90 % line and 95 % line. This display is like a report.

Above screenshot is the example of Aggregate Report. It has some filed we should aware of. Let’s discuss the significance of each field.

  • Name:  This field signifies the name of the assertion which will be listed under the Thread. Name field is so crucial if you will be working with a big application having lots of validation and functionalities.
  • Comments : Comments field is usually used to give comments to our Assertion. This field is optional.
  • Filename: This field is used to specify that from which file request should be read or to which file the current sampler results will be written.
  • Log / Display Only: This field allow us to specify that whether you need to display only Error or Success. If you check Error, then under Sampler result, only Error responses will be displayed, If the test plan has no Error then no response will be displayed under sampler result field. Same is for Success also.
  • Label : This will display the label of the request.
  • Sampler:  This will display the name of each individual request.
  • Average: This will display the average response time of each individual request.
  • Median: This will display the Median of each individual request.
  • 90% Line : This will display the 90% Line of each individual request.
  • Min: This will display the min response time of each individual request.
  • Max: This will display the max response time of each individual request.
  • Error Percentage :This will display the Error Percentage of each individual request.
  • Throughput: This will display the Throughput of each individual request.

Aggregate Graph:

Aggregate Graph displays the aggregate report in tabular format as well as in graphical format.

Above screenshot is the example of Aggregate Graph. It has some filed we should aware of. Let’s discuss the significance of each field.

  • Name:  This field signifies the name of the assertion which will be listed under the Thread. Name field is so crucial if you will be working with a big application having lots of validation and functionalities.
  • Comments : Comments field is usually used to give comments to our Assertion. This field is optional.
  • Filename: This field is used to specify that from which file request should be read or to which file the current sampler results will be written.
  • Log / Display Only: This field allow us to specify that whether you need to display only Error or Success. If you check Error, then under Sampler result, only Error responses will be displayed, If the test plan has no Error then no response will be displayed under sampler result field. Same is for Success also.
  • Sampler:  This will display the name of each individual request.
  • Average: This will display the average response time of each individual request. This will display in Graph if we enable in graph settings
  • Median: This will display the Median of each individual request. This will display in Graph if we enable in graph settings
  • 90% Line : This will display the 90% Line of each individual request. This will display in Graph if we enable in graph settings
  • Error Percentage :This will display the Error Percentage of each individual request.
  • Throughput: This will display the Throughput of each individual request.

Addition to the above parameter, you can configure the UI if the graph from the Graph settings,

Generate Summery Result :

This Listener in JMeter is used to store and display the detailed test report to log files.

Above screenshot is the example of Generate Summery Result. It has some filed we should aware of. Let’s discuss the significance of each field.

  • Name:  This field signifies the name of the assertion which will be listed under the Thread. Name field is so crucial if you will be working with a big application having lots of validation and functionalities.
  • Comments : Comments field is usually used to give comments to our Assertion. This field is optional.

Graph Result :

The Graph results listener in JMeter is used to display each sampler request’s response time in terms of average, median, deviation, and throughput in a graphical format.

Above screenshot is the example of Graph Result. It has some filed we should aware of. Let’s discuss the significance of each field.

  • Name:  This field signifies the name of the assertion which will be listed under the Thread. Name field is so crucial if you will be working with a big application having lots of validation and functionalities.
  • Comments : Comments field is usually used to give comments to our Assertion. This field is optional.
  • Filename: This field is used to specify that from which file request should be read or to which file the current sampler results will be written.
  • Graph to display: This will display response time in terms of average, median, deviation, and throughput in a graphical format.

Response Time Graph :

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

Above screenshot is the example of Response time Graph. It has some filed we should aware of. Let’s discuss the significance of each field.

  • Name:  This field signifies the name of the assertion which will be listed under the Thread. Name field is so crucial if you will be working with a big application having lots of validation and functionalities.
  • Comments : Comments field is usually used to give comments to our Assertion. This field is optional.
  • Filename: This field is used to specify that from which file request should be read or to which file the current sampler results will be written.
  • Log / Display Only: This field allow us to specify that whether you need to display only Error or Success. If you check Error, then under Sampler result, only Error responses will be displayed, If the test plan has no Error then no response will be displayed under sampler result field. Same is for Success also.
  • Display Graph: This will display response time in graphical format. You can change the graph parameters in Graph settings.  

Now we have discuss in detail on Listener in JMeter. In short, Listener in JMeter actually listen all the progress and log the success, error with message.

Leave a Reply

Your email address will not be published. Required fields are marked *