JMeter Interview Basic Question Answers

1.What is JMeter?

Ans: JMeter is an Open Source testing software.It is 100% pure Java application for load and performance testing.

2. How JMeter Works?

Ans: JMeter sends the no of request to the target server and returns the statistics that show the performance/functionality of the target server/application via tables, graphs, etc.

3. What is the difference between the Test Plan and Workbench?

Test Plan: where the real test plan is saved.
Workbench: It simply provides a place to temporarily store test elements. When you save your test plan, Workbench items are not saved with it.

4. How many types of controller in Jmeter?

Ans: JMeter has two types of Controllers-

  1. Sampler
  2. Logic controllers

Sampler: Samplers allow JMeter to send specific types of requests to a server. They simulate a user request for a page from the target server.

Some useful samplers are −

  • HTTP Request
  • FTP Request
  • JDBC Request
  • Java Request
Logic Controllers:  Logic Controllers control the order of processing of Samplers in a Thread. 

The following list consists of all the Logic Controllers JMeter provides −

  • Simple Controller
  • Loop Controller
  • Random Controller
  • Random Order Controller
  • Throughput Controller
  • If Controller
  • While Controller
  • Switch Controller
  • ForEach Controller
  • Recording Controller

5. What is Listener in JMeter?

Ans: With the help of listeners you can view the results of Samplers in the form of tables, graphs, trees, or simple text in some log files.

JMeter provides the following types of listener −

  • Sample Result Save Configuration
  • Graph Full Results
  • Graph Results
  • Spline Visualizer
  • Assertion Results
  • View Results Tree
  • Aggregate Report
  • View Results in Table
  • Simple Data Writer
  • Monitor Results
  • Distribution Graph (alpha)
  • Aggregate Graph
  • Mailer Visualizer
  • BeanShell Listener
  • Summary Report

6. What is timer in JMeter?

Ans: JMeter thread sends requests without pausing between each sampler. Here you can add a timer as per your requirement which allows you to define a period to wait between each request.

JMeter provides the following types of timers −

  • Constant Timer
  • Gaussian Random Timer
  • Uniform Random Timer
  • Constant Throughput Timer
  • Synchronizing Timer
  • JSR223 Time
  • BeanShell Time
  • BSF Time
  • Poisson Random Time

7. What is the assertion in the Jmeter?

Ans: It allow you to include some validation test on the response of your request made using a Sampler. Using assertions you can prove that your application is returning the correct data. JMeter highlights when an assertion fails.

The following list consists of all the assertions JMeter provides −

  • Beanshell Assertion
  • BSF Assertion
  • Compare Assertion
  • JSR223 Assertion
  • Response Assertion
  • Duration Assertion
  • Size Assertion
  • XML Assertion
  • BeanShell Assertion
  • MD5Hex Assertion
  • HTML Assertion
  • XPath Assertion
  • XML Schema Assertion

 8. What is the configuration elements in the JMeter?Ans:Configuration Elements allow you to create defaults and variables to be used by Samplers. They are used to add or modify requests made by Samplers. Configuration Element is accessed only from inside the branch where it is placed.

JMeter provides the following Configuration Elements −

  • Counter
  • CSV Data Set Config
  • FTP Request Defaults
  • HTTP Authorization Manager
  • HTTP Cache Manager
  • HTTP Cookie Manager
  • HTTP Proxy Server
  • HTTP Request Defaults
  • HTTP Header Manager
  • Java Request Defaults
  • Keystore Configuration
  • JDBC Connection Configuration
  • Login Config Element
  • LDAP Request Defaults
  • LDAP Extended Request Defaults
  • TCP Sampler Config
  • User Defined Variables
  • Simple Config Element
  • Random Variable

9. What is the difference between throughput and the deviation?

Throughput: 
The Throughput is the most important parameter. It represents the ability of the server to handle heavy load.  The higher the Throughput is, the better is the server performance.

For example– Throughput of Google server is 1,491.193/minute. It means Google server can handle 1,491.193 requests per minute. This value is quiet high so we can conclude that Google server has good performance.

Deviation: a measure of the variation

High Throughput: better is the server performance
Low Deviation: better
 is the server performance

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s