Jmeter Listener

Jmeter Listener

There are different type of listeners present in Jmeter. We will see all the listeners and there usage one by one.

Aggregate Graph :
Aggregate Report :
Assertion Results
Backend Listener
BeanShell Listener
BSF Listener
Comparison Assertion Visualizer
Generate Summary Results
Graph Results
JSR223 Listener
Mailer Visualizer
Monitor Results
Response Time Graph
Saves Responses to a file
Simple Data Writer
Summary Report
View Results in Table
View Results Tree

Jmeter Interview Questions

Most Important Jmeter Interview Questions

Explain what is a timer in JMeter and what are the types of it?

A JMeter thread by default will send requests continuously without any pause. To get a pause between the request, Timers are used. Some of the Timers used are Constant Timer, Gaussian Random Timer, Synchronizing Timer, Uniform Random Timer and so on.

Explain what is Test Fragment?

Test fragment is also a type of element like Thread Group element. The only difference is test fragment is not implemented unless it is referenced by either a Module controller or an Include controller.

Explain what is Assertion in JMeter? What are the types of assertion?

Assertion helps to verify that your server under test returns the expected results

Some commonly used Assertion in JMeter are

  • Response Assertion
  • Duration Assertion
  • Size Assertion
  • XML Assertion
  • HTML Assertion

Explain how you can reduce the resource requirement in JMeter?

To reduce the resource requirements in JMeter

Use non-GUI mode: jmeter –n –t test.jmx –l test.jtl
During the load, a test doesn’t use “view results tree” or “view results in table” listeners, use them only during the scripting phase
Don’t use functional mode
Instead of using lots of similar samplers, use the same sampler in a loop and use the variable to vary the sample.

Explain how you can perform spike testing in JMeter?

By synchronizing, timer JMeter spike Testing can be achieved. Synchronizing timer blocks thread until a specific amount of threads has been blocked and then release them all together thus creating large instantaneous load.

Explain how you can capture the script of the authentication window in JMeter?

Normally, you can capture script by recording.

First, you have to Threadgroup in Testplan and then make HTTPProxyServer in Workbench
After that, set port number in the Global Setting box (e.g., 8911) and modify your connection setting in IE as localhost in address 8911 as in port Then you can start http proxy server in JMeter and run your application for login

List out few JMeter Listeners?

Some of the JMeter Listeners are

  • Spline Visualizer
  • Aggregate Report
  • View Result Tree
  • View Result in Table
  • Monitor Results
  • Distribution Graph
  • BeanShell Listener
  • Summary Report and so on

In JMeter is it necessary to call embedded resources explicitly?

You can eliminate all embedded resources from being explicitly called. Requests have a checkbox at the bottom that says “retrieve embedded resources.” It would grab all CSS, JPG, etc. It is a brilliant way to find resources and broken link in a web App.

Explain what is the role of Timer in JMeter?

With the help of a timer, JMeter can delay the time between each request, which a thread makes. It can solve the overload problem of the server.

Explain what is Post-processor?

To perform any action after making a request, Post-processor is used. For example, if JMeter sends an HTTP request to the web server, and if you want JMeter to stop sending the request if the web server shows an error, then you will use post-processor to perform this action.

What are the benefits that JMeter offers for performance testing?

JMeter offers benefits on Performance Testing like

  • Can be used to test performance for both, static resources as well as dynamic resources
  • Handles a maximum number of concurrent users then your website can handle
  • It provides the graphical analyses of performance reports