JMeter Interview Questions and Answers

//
What is JMeter?

Apache JMeter is an open source load testing application which is purely developed in Java. Apache JMeter is mainly used to test the performance and stability of an application.

What are the different type of applications you can test with JMeter?

You can test mainly web applications, it all supports to test PHP, Java, ASP.NET, web services, databases, mail servers, network etc.

What are the protocol JMeter supports?

IT support more than 10 protocols, here are some of the protocols that JMeter supports.
Web Protocol: To test the web applications, it supports both HTTP and HTTPS protocols.
Web Services: To test web services applications, it supports both SOAP and REST.
FTP: File Transfer Protocol, it is used to test the FTP servers and applications.
Database via JDBC: It is used to test the database applications.
LDAP: Lightweight Directory Access Protocol
Message-oriented middleware (MOM) via JMS
Mail – It is used to test mail servers such as SMTP(S), POP3(S) and IMAP(S)
MongoDB (NoSQL): it is recently supported protocol by JMeter.
Native commands or shell scripts
TCP

Why do you choose JMeter as your performance testing tool?

JMeter is an open source tool and is widely used tool in the market and it has the large online community support and is developed in pure Java and you can test more than 10 protocols.

What is the difference between JMeter and Loadrunner?

JMeter
Loadrunner
JMeter is an open source tool.
Loadrunner is one of the costliest tools in the market.
JMeter is primarily focusing on web and Java protocols.
Loadrunner supports more than 50 protocols.
JMeter has good online community support.
Loadrunner has technical support, but they hardly resolve your issue.
JMeter is a standalone application and there is no centralized process.
You can operate Loadrunner from a centralized process such as performance center.

What is a Listener? What are the different type of listeners?

Listener is a graph or an image that shows the results of different samplers. You have more than 50 listeners through standard JMeter and JMeter plugins.

List of listeners are: Aggregate graph, Aggregate report, Assertion Results, Backend Listener, Bean Shell Listener, BSF Listener, Comparison Assertion Visualizer, Distribution Graph (alpha), Generate summary results, Graph Results, JSR223 Listener, Mailer Visualizer, Monitor Results, Response Time Graph, Save responses to a file, Simple data writer, Spline Visualizer, Summary Report, View Results in Table, View Results Tree.

What are timers and what are the different timers available?

Timers is waiting time between requests, these timers are used to simulate real user behavior during each request, this helps to simulate real time production load on the server.
There are different timers available in JMeter: Bean Shell Timer, BSF Timer, Constant Throughput Timer, Constant Timer, Gaussian Random Timer, JSR223 Timer, Poisson Random Timer, Synchronizing Timer, and Uniform Random Timer.

What is assertion and what are the different type of assertions available in JMeter?

Assertions are used to define the check points in different parts of the script, there are different type of assertions available Bean Shell Assertion, BSF Assertion, Compare Assertion, Duration Assertion, HTML Assertion, JSR223 Assertion, MD5Hex Assertion, Response Assertion, Size Assertion, SMIME Assertion, XML Assertion.





0 comments:

Post a Comment