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

Load Runner Interview Questions

Load Runner Interview Questions

What is Load Runner?

Load Runner is one the most used performance tool in the market. The tool was with HP still 2016 and it was bought by microforces Company. Load Runner will support all the protocol.
It works on a principal of simulating Virtual Users on the subject application. These Virtual Users also termed as VUsers, replicate client's requests and expect a corresponding response to passing a transaction.

What are the component present in Load runner?

Below are the important components present in load runner:-

  • Vugen
  • Controller
  • Load Generator
  • Analysis

Click Here to know details about load runner components.

What is Load Generator? Why we use it ?

Load generator is the physical machine with a specific amount of resources like memory and CPU. It is used to inject the load on the application using the machine resources.

Most importantly assigning of number of  load generator depends upon the protocol selected,number of scripts and number of lines in the scripts because each VUsers will be using resources like memory and CPU. So the best practice is to assign the controller separate and load generator separate for the scenario.

What is Parameterization?

Parameter is a container which is used to hold the values which are used in Vugen script.  Parameterization is used to send the different values(Unique values) to the Vugen script  from the parameter file. It will helps a single virtual vuser to use different data on each run. This simulates real-life usage of an application as it avoids server from caching results.
Example : During the test execution we need to use different username to log into the application. So instead of creating different script with different user name, we can create a single script and parameterize the username value. Therefore during the execution the parameter will send the unique values to application for login.

Click Here to know more about parameterization.

Different type of Parameterization present in LoadRunnner?

Below are the list of important parameter present in load runner

  • Date/Time
  • File
  • Group Name
  • Iteration Number
  • Load Generator Name
  • Random Number
  • Table
  • Unique Number
  • User  Define Function
  • Vuser ID
  • XML

Why we use Analysis component in Load runner?

Analysis is the last component of the load runner. Once the execution of the scenario is completed analysis component will be used to display the results collected by the controller. It will also display the graphs for analyzing the execution. Some of the important graphs used to analyse the result are :

  • Hits per second.
  • Throughput.
  • Running the VUsers.
  • Average response time.

What are the different protocol  available n Load Runner?

Load Runner support most of the protocol. Some of the most used protocol are

  • Web - HTTP/HTML
  • True Client - Web
  • Web Services
  • True Client - Mobile Web
  •  SAP GUI
  • SAP - Web
  • RDP (Remote Terminal Emulator)
  • Citrix ICA
  • .Net
  • Java Vuser

All the protocol are displayed in the below image.

Protocol List

What is the latest version of Load runner and what are the new features compared to previous version?

Current Version of Load Runner is 12.57 which is available in the market. Below are the list of new feature in 12.57 version.

  •  TruClient. TruClient now supports Chromium version 63, improving scalability.
  • Protocols. The RTE (Remote Terminal Emulator) protocol now supports Windows 10.
  • VuGen enhancements. You can now import and export parameters between VuGen scripts.
  • Controller
    • LoadRunner now supports Apache JMeter 4.0.
    • Performance improvements when designing large scale tests using the Real World schedule run mode.
    • Improved stability when working in Controller.
  • Documentation. The help center now includes advanced site search functionality:
    • Intuitive friendly Google-like search
    • Search across all ADM help centers
    • Filter search results by selected products
    • Get results from separate deliverable in one place, such as PDFs and APIs