JMeter Interview Question 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 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 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.

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

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

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

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 what is configuration elements?

A configuration element works parallel with a Sampler. To set up defaults and variables for later use by samplers configuration elements can be used. At the start of the scope, theExplain how you can reduce the resource requirement in JMeter?

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, test doesn’t use “view results tree” or “view results in table” listeners, use them only during scripting phase

Don’t use functional mode

Instead of using lots of similar samplers, use the same sampler in loop and use variable to vary the sample

Get through the interview bar with our selected interview questions for JMeter enthusiasts

Explain what are Pre-processor Elements? List some of the pre-processor elements?

A pre-processor is something that will happen before sampler executes. To configure the sample request prior to its execution or to update variables that are not extracted from response text pre-processor elements are used.

Some of the pre-processor elements are:

  • HTTP URL re-writing modifier
  • HTTP user parameter modifier
  • HTML link parser
  • BeanShell PreProcessor

Mention the execution order of Test Elements?

The test plans elements execution order is

  • Configuration elements
  • Pre-processors
  • Timers
  • Samplers
  • Post-processors
  • AssertionsListeners

What does “contain” and “matches” indicates in the regular expression?

In the regular expression, contains indicates that the regular expression matched at least some part of the target. While matches means the regular expression matched the whole target. So, ‘alphabet’ is “matched” by ‘al.*t.’

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 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.

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

0 Responses on JMeter Interview Question And Answers"

    Leave a Message

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

    Support


    Please leave a message and we'll get back to you soon.

    3 + 5