JMeter Interview questions for experienced/Jmeter Interview Questions and Answers for Freshers & Experienced

How sampler and logical controllers in JMeter are different?

Both these controllers have their own tasks for which they are responsible. The controller sampler ensures all the requests are met to the server. On the other hand, the Logical controller is responsible for changing the manner of processing the requests that are originated from the elements.

Is JMeter a free tool?

Yes, Apache JMeter is open source tool and there is no cost to purchase and no trial period for downloaded software. There is no licensing cost involved with Apache JMeter download or usage.

There is no limitation on usage being enforced by Apache Foundation on Apache JMeter.

Only cost involved for a company, is of training of the professionals, on the Apache JMeter.

What are regular expressions in JMeter?

Regular expressions are used to search and manipulate text, based on patterns. JMeter interprets forms of regular expressions or patterns being used throughout a JMeter test plan, by including the pattern matching software Apache Jakarta ORO.

Are the test plans built using JMeter OS dependant?

Test plans are usually saved in thr XML format, hence they have nothing to do with any particular OS. You can run those test plans on any OS where JMeter can run.

How does JMeter calculate concurrent users?

Concurrent users in Apache JMeter points to multiple users doing same operation at same time like 100s of users logging into software application, at same time or concurrently.

Number of threads in Apache JMeter simulates concurrent connection to the application under test. It can be configured in Apache JMeter test plan for conducting concurrent users test. Configure concurrent thread group for concurrent users in Apache JMeter.

Calculating concurrent users, is bit tricky as we can only guess the number of concurrent users and it will be good if we make a guess objectively. Calculating concurrent users in Apache JMeter can be done by dividing unique visitors by their visit duration like 100 unique visitors per minute with 10 minutes per visit results in 10 concurrent user per minute (100/10).

Is it possible to run Selenium scripts in JMeter?

Yes, with the help of the WebDriver Set plugin, we can run Selenium Webdriver scripts in JMeter.

What is throughput in JMeter?

Throughput is, number of incoming requests being served or successfully processed and output sent, as per set parameters, with in a time span like seconds or minutes or even hours.

As per Apache JMeter documentation, throughput is requests/unit of time.

In Apache JMeter the unit of time taken for calculating the throughput, is from start of the first sample to the end of the last sample. This time span includes intervals between samples.

The Apache JMeter throughput formula is: Throughput = (number of requests) / (total time).

What is 90% line in JMeter?

The aggregate report listener has 90% line as one of the metrics. The Apache JMeter manual describes 90% line as- “90% of the samples took no more than this time”. It is actually the 90 percentile of the response times of the samples –
90 percentile = (90/100)*N+1/2 where N is the number of samples

So, if there are 10 samples then 90%line will be 9.5 or 9. It means the 9th value in the sorted list of samples (sorted according to ascending order of their response times).

How can we run JMeter in non-GUI mode?

Command to run JMeter in non-GUI mode-

jmeter -n -t test.jmx -l test.jtl
Where,
n specifies that JMeter will run in non-GUI mode
-t for test script file
-l for jtl file having each sample’s result

What is the latest JMeter version?

The latest Apache JMeter version is 5.1.1, as on date and was released on 19-March, 2019.

The latest Apache JMeter version 5.1.1, requires Java 8 and above.

The Apache JMeter version 5.1.1 has further enhancement from the base version of Apache JMeter version 5

Apache JMeter is open source software and hence user can customize as per their needs.

How do I record in JMeter?

Apache JMeter can record tests by using the Test Script Recorder. The web browser used to record user actions, should be configured to use proxy server for web requests.

Steps for recording in Apache JMeter -

1. Select Recording template in Apache JMeter GUI
2. Configure HTTP Request Defaults element
3. Click Start button in HTTP(S) Test Script Recorder
4. Configure browser to use the Apache JMeter Proxy
5. Record user actions by clicking Run then, Start

How do I open JMeter in non GUI?

For opening Apache JMeter in non GUI or CLI (command line )mode run Apache JMeter.bat (on Windows) or Apache JMeter (for Unix/Linux) file in bin directory, with –n flag.

Non GUI or CLI mode is used to run the test plans.

What is JMeter script?

Apache JMeter script stores actions a user would take in the application being tested. This helps in validating user behavior and application performance under different load conditions.

Script helps in replaying user actions so as to better test the application for more used functionality of the software application.

Is coding required for performance testing?

Yes, depending upon performance testing tool being used.

Apache JMeter performance testing tool is open source toll which has very low coding requirement. Apache JMeter GUI minimizes the amount of coding needed to prepare a test plan. Apache JMeter does performance testing by executing test plans. Preparing the Apache JMeter test plan in central to Apache JMeter.

But validation, verification or customization of test plan require coding for quick and effective Apache JMeter testing.

Is JMeter a good tool?

Yes, of course Apache JMeter is a good tool.

Apache JMeter is good tool because

* Open source so, no purchase cost
* Can do multiple test types, for Web (HTTP/HTTPS), FTP, JDBC, LDAP, * Database, Mail (SMTP/POP3), REST.
runs on multiple operating system
uses popular Java programming language
provides both CLI and GUI mode

Who developed JMeter?

Stefano Mazzocchi, working at Apache Software Foundation, developed Apache JMeter.

Apache Software Foundation later redesigned Apache JMeter’s GUI and to added functional-testing capabilities.

Apache JMeter is open source software and hence user can customize as per their needs.

Can JMeter be used for API testing?

Yes, Apache JMeter supports testing of SOAP / REST Web services.

Performance testing of RESTful API can be done by Apache JMeter.

Can we automate JMeter?

Yes, we can automate Apache JMeter.

Automation can be implemented in Apache JMeter by

* Integrating with Maven under continuous testing of DevOps
* Using Apache JMeter GUI for test plan creation, reducing test plan development.
* Saving and managing frequent test plans
* Using Robotic Process Automation tool

How many users can JMeter simulate?

Apache JMeter can simulate unlimited number of users.

Number of users is specified by the number of threads, in a test plan.

But, remember that the thread count is limited by the hardware resources of the computer machine the test is conducted and number of file descriptors else, testing speed will degrade.

Limitation can be circumvented by conducting distributed Apache JMeter tests or using cloud solutions.

What do you mean by Plan a Test?

There are certain elements that are useful in a performance test. Test Plan is nothing but a logical packet that contains all those test elements. Some common examples are Assertions, thread groups as well as samplers.

Can JMeter be used for .NET applications?

Yes, Apache JMeter tests the functional behavior of .Net application and its performance. Apache JMeter tests performance both on static and dynamic resources. Apache JMeter is widely used for performance testing of web applications.

Apache JMeter can be used for

* Load Testing ASP.NET Sites
* Load Testing ASP.NET Web Applications
* Stress Testing ASP.NET
* Sending HTTP POST Request to an ASP.NET web-site
* ASP.NET WebForms Authentication

What is the use of Configuration elements?

Configuration elements are used for customizing the sampler requests e.g. CSV Data Set Config can be used for parameterizing the sampler requests with values fetched from the external CSV file.

What are assertions in JMeter? Explain the available assertions in JMeter.

Assertions in JMeter are used for verification of certain values in the response of Sampler’s requests. The commonly used assertions are – response assertion, size assertion, XML assertion, BeanShell assertion, HTML Assertion, XPath assertion, etc.

What is a Rendezvous Point?

The Rendezvous point in JMeter is used to perform spike testing. It is performed using “Synchronizing Timer” by waiting until the number of active users reaches a certain specified value during the load test.

What is the difference between the Gaussian random timer vs Poisson random timer?

Both Gaussian and Poisson random timers are used to pause the test execution for a random amount of time but close a specific value. The difference between the two lies in their underlying implementation algorithms to generate the random values.

What are Listeners in JMeter? State some of the widely used Listeners?

Listeners are used for viewing, saving test results and also help in tabular and graphical analysis of the test results. Some of the widely used Listeners are – Aggregate Report, Aggregate Graph, Graph Results, View Results Tree, etc.

What are samplers in JMeter?

Samplers in JMeter are used for sending different types of requests to the server. Some of the commonly used samplers are – HTTP Request, JDBC Request, SOAP-XML Request, JUnit request, TCP Sampler, etc.

What is the ramp-up period?

At the beginning of the load test of an application instead of putting all the users live, we slowly ramp up the number of users in order to study their effect in the application’s performance. In JMeter, the ramp-up period defines the time period within which all the specified users get in running state.

How do I start Apache JMeter?

Apache JMeter can be started in CLI Mode and GUI Mode

Execute jmeter.bat (on Windows) or jmeter (for Unix/Linux) file in bin directory. By default GUI Mode opens up.

For CLI or command line mode run the above files in bin directory, with –n flag.

CLI mode is used to run the test plans.

What is a test fragment in JMeter?


To a minimum, Apache JMeter GUI minimizes the amount of coding needed to prepare a test plan. Apache JMeter does performance testing by executing test plans. Preparing the Apache JMeter test plan in central to Apache JMeter.

But validation, verification or customization of test plan require coding for quick and effective Apache JMeter testing.

Does JMeter require coding?

To a minimum, Apache JMeter GUI minimizes the amount of coding needed to prepare a test plan. Apache JMeter does performance testing by executing test plans. Preparing the Apache JMeter test plan in central to Apache JMeter.

But validation, verification or customization of test plan require coding for quick and effective Apache JMeter testing.

Which is better LoadRunner vs JMeter?

JMeter is better, considering no purchase cost, huge support and available documentation.

JMeter also scores more against LoadRunner as, JMeter can

conduct multiple test types, for Web (HTTP/HTTPS), FTP, JDBC, LDAP, Database, Mail (SMTP/POP3), REST.
supports multiple operating system
based on popular Java programming language
has CLI and GUI mode

What is JMeter and how it works?

JMeter is actually, Apache JMeter and is open source software application to conduct performance test on software applications. Apache JMeter is extensively used for performance testing of web applications.

Apache JMeter works by executing a test plan, made by test engineer or manager. The Apache JMeter test plan lists steps to execute. A Apache JMeter test plan has

* Thread Groups
* logic controllers
* sample generating controllers
* listeners
* timers
* assertions
* configuration elements

Apache JMeter can conduct multiple test types, for Web (HTTP/HTTPS), FTP, JDBC, LDAP, Database, Mail (SMTP/POP3) , REST.

What is Apache JMeter testing?

Apache JMeter testing involves using the open source Apache JMeter software for testing of software application. Apache JMeter testing is applied for performance check of both static and dynamic resources. Apache JMeter simulates a heavy load on application, to test its strength or to analyze overall performance under different load types.

Apache JMeter is widely used for performance testing of web applications. Apache JMeter is open source software and made in Java programming language.

What are the types of the controller in JMeter?

Controllers are used in JMeter to control the flow of execution of requests.

Below are the controllers that are used in JMeter:

* Recording controller
* IF controller
* While controller
* Transaction controller
* Loop controller
* Simple controller
* Module controller

What are the important plugins that are supported in JMeter?

JMeter supports different types of plugins which are helpful in generating high-quality results.

Below are the major plugins that are supported:

* Thread group plugin – Stepping thread group plugin.

* Samplers plugins like Webdriver.

* Listeners plugins.

What is Tidy Parsing?

Tidy Parsing is a type of parsing that is used in Xpath extractor. If the response is in pure XML then tidy parsing is not required whereas, in the case of XHTML, it is mandatory to check the tidy parsing option in order to fetch the correct results.

What is a Workbench and why is it required?

Workbench is a storage area for adding some components which can be added to the test plan if required.

Components of workbench do not get saved with the test plan automatically. They have to be saved separately as test fragments. A most important part of the Workbench is HTTP(s) Test script recorder which is highly useful in recording the https request and later load can be applied to+9859 them to measure the response time.

Which factors decide the maximum threads that one should generate per system?

It depends on the hardware of the system.

For Example, on a 2-3 GHz CPU, 400-600 threads can be generated. It also depends on the components in your test plan. More the processors and XML parsing elements, the more the CPU load and hence fewer threads. For high load, it is recommended to use multiple machines for load testing.

What is a Root CA certificate?

HTTPS connection requires a certificate to authenticate the connections which get established when the browser hits the webserver. JMeter generates it temporarily to intercept the SSL traffic in order to record the actions. For recording actions via mobile, you need to have this certificate on your mobile to record the actions.

What is the default protocol used when testing a web server using SSL encryption?

TLS is used when testing a web server using SSL encryption.

Which programming language does JMeter is based on?

Jmeter is based on Java programming language and not on other programming languages.

Let us suppose I have multiple screens in my mobile app. Then can Jmeter measure the time taken to flip the screens or can Jmeter measure the performance of a complete application?

At no point of time Jmeter measure the transition time between the screens. As it can only measure the server actions not the UI interactions.

What is BeanShell scripting?

BeanShell is a lightweight Java scripting that is used in JMeter to perform some complex task. BeanShell sampler can perform various functions with the use of coding. You can print the thread number, get the current sampler executed, fetch the cookies, etc.

How do you manage sessions and cookies in JMeter?

Sessions and cookies can be managed in JMeter by using config elements such as HTTP Cache Manager which provides an option to clear the cookies in every iteration and also allows to add user-defined cookies.

HTTP Cache manager helps you in clearing cache after each iteration as per your requirement in the load tests and also limits the number of elements that can be stored in the cache. Both of these config elements can be attached to the HTTP sampler.

What does “Contains” and “Matches” indicate 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.’

Is it necessary to call embedded resources explicitly in JMeter?

You can eliminate all embedded resources from being explicitly called. Requests have a checkbox at the bottom named as “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.

Is it possible to run selenium scripts in JMeter? If yes, how?

Yes, it is possible to run selenium scripts in JMeter to get some ideas on their performance.

There are two ways of doing it. Either you can use JUnit libraries to build selenium scripts and save as Jars and copy the same in the JMeter directory. And then add JUnit sampler to your test plan and import the Jar file.

Otherwise, the Webdriver sampler plugin can be added in the JMeter ext folder. Restart the JMeter. Write your selenium code in the Webdriver sampler and then execute it to see the performance.

Why is it recommended to run JMeter in GUI mode?

JMeter tests can be run both GUI as well as Non-GUI Mode. It is highly recommended to run the load test in Non-GUI mode because the AWT event thread can kill the tests in case of high load scenarios.

The various Non-GUI mode supported with JMeter are:

* Command-line
* ANT plugin
* MAVEN plugin
* Jenkins

Explain the syntax of JMeter variables and functions.

Just as in any other programming language, variables and functions are used in JMeter also in order to make the scripts reusable.

Syntax of Variable – ${var}

There are many inbuilt functions that are available in JMeter to perform various actions. Function string can be generated from the Function Dialogue Box itself.

For Example, if you want to get the machine IP stored in a machineIP variable, you can use the string ${__machineIP(machineIP)}.

Search
R4R Team
R4R provides Jmeter Freshers questions and answers (Jmeter Interview Questions and Answers) .The questions on R4R.in website is done by expert team! Mock Tests and Practice Papers for prepare yourself.. Mock Tests, Practice Papers,JMeter Interview questions for experienced,Jmeter Freshers & Experienced Interview Questions and Answers,Jmeter Objetive choice questions and answers,Jmeter Multiple choice questions and answers,Jmeter objective, Jmeter questions , Jmeter answers,Jmeter MCQs questions and answers Java, C ,C++, ASP, ASP.net C# ,Struts ,Questions & Answer, Struts2, Ajax, Hibernate, Swing ,JSP , Servlet, J2EE ,Core Java ,Stping, VC++, HTML, DHTML, JAVASCRIPT, VB ,CSS, interview ,questions, and answers, for,experienced, and fresher R4r provides Python,General knowledge(GK),Computer,PHP,SQL,Java,JSP,Android,CSS,Hibernate,Servlets,Spring etc Interview tips for Freshers and Experienced for Jmeter fresher interview questions ,Jmeter Experienced interview questions,Jmeter fresher interview questions and answers ,Jmeter Experienced interview questions and answers,tricky Jmeter queries for interview pdf,complex Jmeter for practice with answers,Jmeter for practice with answers You can search job and get offer latters by studing r4r.in .learn in easy ways .