0% found this document useful (0 votes)
524 views25 pages

150 - Jmeter Interview Questions

The document discusses JMeter, an open source load testing tool used to test the performance and functionality of web applications. It provides answers to various questions about what JMeter is, how it works by simulating user load, its various components like samplers, thread groups, timers and listeners. The questions also cover how to use variables and functions, perform different types of tests, reduce resource usage and achieve distributed testing using JMeter.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
524 views25 pages

150 - Jmeter Interview Questions

The document discusses JMeter, an open source load testing tool used to test the performance and functionality of web applications. It provides answers to various questions about what JMeter is, how it works by simulating user load, its various components like samplers, thread groups, timers and listeners. The questions also cover how to use variables and functions, perform different types of tests, reduce resource usage and achieve distributed testing using JMeter.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 25

1. Question 1. What Is Jmeter?

Answer :
JMeter is one of the Java tools which is used to perform load testing client/server
applications. Apache JMeter is open-source software, a 100% pure Java desktop
application designed to load test functional behaviour and measure performance of
the application. It was originally designed for testing Web Applications but has
since expanded to other test functions.
2. Question 2. Explain How Jmeter Works?
Answer :
JMeter acts like a group of users sending requests to a target server. It collects
response from target server and other statistics which show the performance of the
application or server via graphs or tables.
3. Question 3. Explain Where You Can Use Functions and Variables?
Answer :
Variables and functions can be written into any field of any test component.
4. Question 4. Mention What Are Regular Expressions in Jmeter?
Answer :
Based on the pattern, regular expression are used to search and manipulate text.
JMeter is useful in interpreting forms of regular expression or patterns being used
throughout a JMeter test plan.
LoadRunner Tutorial
5. Question 5. Explain What Is Samplers and Thread Groups?
Answer :
Thread group: For any test plan, JMeter is the beginning part of thread group
elements. It is an important element of JMeter, where you can set number of users
and time to load all the users given in the thread group
Samplers: Sampler generates one or more sample results; these sample results have
many attributes like elapsed time, data size, etc. Samplers allow JMeter to send
specific types of requests to the server, through samplers, thread group decides
which type of request it need to make. Some of the useful samplers are HTTP
request, FTP request, JDBC request and so on.
6. Question 6. Whether the Test Plans Built Using Jmeter Are Os Dependent?
Answer :
Usually, test plan are saved in their XML format, so there is nothing to do with any
particular O.S. It can be run on any OS where JMeter can run.
7. Question 7. Mention What Are the Types Of Processor In Jmeter?
Answer :
The types of processor in JMeter are:
1. Pre-processor
2. Post processor
o Question 8. Explain What Are Pre-processor Elements? List Some of The
Pre-processor Elements?
Answer :
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:
1. HTTP URL re-writing modifier
2. HTTP user parameter modifier
3. HTML link parser
4. BeanShell PreProcessor
o Question 9. Mention the Execution Order of Test Elements?
Answer :
The test plans elements execution order is
1. Configuration elements
2. Pre-processors
3. Timers
4. Samplers
5. Post-processors
6. Assertions
7. Listeners
o Question 10. What Does “contain” And “matches” Indicates In The
Regular Expression?
Answer :
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.’
o Question 11. Explain What Is Configuration Elements?
Answer :
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, these elements are processed before any samplers in the same scope.
o Question 12. Explain What Is A Timer In Jmeter And What Are the
Types Of It?
Answer :
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.
o Question 13. Explain What Is Test Fragment?
Answer :
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.
o Question 14. Explain What Is Assertion In Jmeter? What Are The Types
Of Assertion?
Answer :
Assertion helps to verify that your server under test returns the expected results
Some commonly used Assertion in JMeter are
1. Response Assertion
2. Duration Assertion
3. Size Assertion
4. XML Assertion
5. HTML Assertion
o Question 15. Explain How You Can Reduce the Resource Requirement In
Jmeter?
Answer :
To reduce the resource requirements in JMeter
1. Use non-GUI mode: jmeter –n –t test.jmx –l test.jtl
2. During the load, test doesn’t use “view results tree” or “view results in
table” listeners, use them only during scripting phase
3. Don’t use functional mode
4. Instead of using lots of similar samplers, use the same sampler in loop and
use variable to vary the sample
o Question 16. Explain How You Can Perform Spike Testing in Jmeter?
Answer :
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.
o Question 17. Explain How You Can Capture The Script Of The
Authentication Window In Jmeter?
Answer :
Normally, you can capture script by recording.
1. First you have to Threadgroup in Testplan and then make
HTTPProxyServer in Workbench
2. After that, set port number in Global Setting box (e.g., 8911) and modify
your connection setting in IE as local host in address 8911 as in port Then
you can start http proxy server in JMeter and run your application for
login.
o Question 18. List Out Few Jmeter Listeners?
Answer :
Some of the JMeter Listeners are:
1. Spline Visualizer
2. Aggregate Report
3. View Result Tree
4. View Result in Table
5. Monitor Results
6. Distribution Graph
7. BeanShell Listener
8. Summary Report and so on
o Question 19. What Is Distributed Load Testing? How It Can Be
Achieved?
Answer :
Distributed load testing is the process through which numerous systems can be used
for simulating load of a large number of users. By using the master-slave
configuration, JMeter can do distribute load testing.
o Question 20. In Jmeter Is It Necessary To Call Embedded Resources
Explicitly?
Answer :
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.
o Question 21. Explain What Is The Role Of Timer In Jmeter?
Answer :
With the help of timer, JMeter can delay the time between each request, which a
thread makes. It can solve the overload problem of the server.
o Question 22. Explain What Is Post-processor?
Answer :
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.
o Question 23. What Are The Benefits That Jmeter Offers For Performance
Testing?
Answer :
JMeter offers benefits on performance testing like
1. It can be used to test performance for both, static resources as well as
dynamic resources
2. It can handle a maximum number of concurrent users then your website
can handle
3. It provides the graphical analyses of performance reports
o Question 24. What Are The Protocols Supported By Jmeter?
Answer :
The protocols supported by JMeter are:
1. Web: HTTP, HTTPS sites 'web 1.0' web 2.0 (ajax, flex and flex-ws-amf)
2. Web Services: SOAP / XML-RPC
3. Database via JDBC drivers
4. Directory: LDAP
5. Messaging Oriented service via JMS
6. Service: POP3, IMAP, SMTP
7. FTP Service
o Question 25. List Some Of The Features Of Jmeter.?
Answer :
Following are some of the features of JMeter:
1. Its free. Its an open source software.
2. It has simple and intuitive GUI.
3. JMeter can load and performance test many different server types: Web -
HTTP, HTTPS, SOAP, Database via JDBC, LDAP, JMS, Mail - POP3
4. It is platform-independent tool. On Linux/Unix, JMeter can be invoked by
clicking on JMeter shell script. On Windows it can be invoked by starting
the jmeter.bat file.
5. It has full Swing and lightweight component support (precompiled JAR
uses packages javax.swing.* ).
6. JMeter store its test plans in XML format. This means you can generate a
test plan using a text editor.
7. It's full multi-threading framework allows concurrent sampling by many
threads and simultaneous sampling of different functions by separate
thread groups.
8. It is highly Extensible.
9. Can also be used to perform automated and functional testing of your
application.
o Question 26. What Is A Test Plan In Jmeter?
Answer :
A Test Plan defines and provides a layout of how and what to test. For example the
web application as well as the client server application. It can be viewed as a
container for running tests. A complete test plan will consist of one or more
elements such as thread groups, logic controllers, sample-generating controllers,
listeners, timers, assertions, and configuration elements. A test plan must have at
least one thread group.
o Question 27. List Some Of The Test Plan Elements In Jmeter.?
Answer :
Following is a list of some of the test plan elements:
1. ThreadGroup
2. Controllers
3. Listeners
4. Timers
5. Assertions
6. Configuration Elements
7. Pre-Processor Elements
8. Post-Processor Elements
o Question 28. What Is Thread Group?
Answer :
Thread Group elements are the beginning points of your test plan. As the name
suggests, the thread group elements control the number of threads JMeter will use
during the test.
o Question 29. What Are Controllers And Its Types?
Answer :
JMeter has two types of Controllers:
Samplers Controllers : Samplers allow JMeter to send specific types of requests to
a server. They simulate a user's request for a page from the target server. For
example, you can add a HTTP Request sampler if you need to perform a POST,
GET, DELETE on a HTTP service
Logical Controllers : Logic Controllers let you control order of processing of
Samplers in a Thread. Logic Controllers can change the order of request coming
from any of their child elements. Some examples are: ForEach Controller, While
Controller, Loop Controller, IF Controller, Run Time Controller, Interleave
Controller, Throughput Controller, Run Once Controller.
o Question 30. What Is Configuration Element?
Answer :
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.
They are executed at the start of the scope of which they are part, before any
Samplers that are located in the same scope. Therefore, a Configuration Element is
accessed only from inside the branch where it is placed.
o Question 31. What Are Listeners?
Answer :
Listeners let you view the results of Samplers in the form of tables, graphs, trees or
simple text in some log files. They provide visual access to the data gathered by
JMeter about the test cases as a Sampler component of JMeter is executed.
Listeners can be added anywhere in the test, including directly under the test plan.
They will collect data only from elements at or below their level.
o Question 32. What Are Pre-processor And Post-processor Elements?
Answer :
A Pre-Procesor is something that will happen before a sampler executes. They are
often used to modify the settings of a Sample Request just before it runs, or to
update variables that are not extracted from response text.
A Post Processor executes after a sampler finishes its execution. This element is
most often used to process the response data, for example, to retrieve particular
value for later use.
o Question 33. What Is The Execution Order Of Test Elements?
Answer :
Following is the execution order of the test plan elements:
1. Configuration elements
2. Pre-Processors
3. Timers
4. Sampler
5. Post-Processors (unless SampleResult is null)
6. Assertions (unless SampleResult is null)
7. Listeners (unless SampleResult is null)
o Question 34. How Do You Ensure Re-usability In Your Jmeter Scripts?
Answer :
1. Using config elements like "CSV Data Set Config", "User Defined
Variables", etc for greater data reuse.
2. Modularizing shared tasks and invoking them via a "Module Controller".
3. Writing your own BeanShell functions, and reusing them.
o Question 35. Are The Test Plans Built Using Jmeter Os Dependant?
Answer :
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.
o Question 36. What Are The Monitor Tests?
Answer :
Uses of monitor tests are:
1. Monitors are useful for a stress testing and system management.
2. Used with stress testing, the monitor provides additional information about
server performance.
3. Monitors makes it easier to see the relationship between server
performance and response time on the client side.
4. As a system administration tool, the monitor provides an easy way to
monitor multiple servers from one console.
o Question 37. What Are Jmeter Functions?
Answer :
JMeter functions are special values that can populate fields of any Sampler or other
element in a test tree.
A function call looks like this:
${__functionName(var1,var2,var3)}
o Question 38. Where Can Functions And Variables Be Used?
Answer :
Functions and variables can be written into any field of any test component.
o Question 39. What Are Regular Expressions In Jmeter?
Answer :
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.
o Question 40. How Can You Reduce Resource Requirements In Jmeter?
Answer :
Below are some suggestion to reduce resource requirements:
1. Use non-GUI mode: jmeter -n -t test.jmx -l test.jtl.
2. Use as few Listeners as possible; if using the -l flag as above they can all
be deleted or disabled.
3. Disable the “View Result Tree” listener as it consumes a lot of memory
and can result in the console freezing or JMeter running out of memory. It
is, however, safe to use the “View Result Tree” listener with only “Errors”
checked.
4. Rather than using lots of similar samplers, use the same sampler in a loop,
and use variables (CSV Data Set) to vary the sample. Or perhaps use the
Access Log Sampler.
5. Don't use functional mode.
6. Use CSV output rather than XML.
7. Only save the data that you need.
8. Use as few Assertions as possible.
9. Disable all JMeter graphs as they consume a lot of memory. You can view
all of the real time graphs using the JTLs tab in your web interface.
10.Do not forget to erase the local path from CSV Data Set Config if used.
11.Clean the Files tab prior to every test run.
Q1) What is JMeter?
Answer: JMeter is a Java Open source Performance Testing apparatus to stack test utilitarian
conduct and measure execution. You can utilize JMeter to examine and gauge the execution
of web application or an assortment of administrations.
Q2) What are the distinctive kinds of Protocol we can use in JMeter?
Answer: HTTP, FTP, SOAP-XML, JDBC and so on are the distinctive conventions we use
utilizing JMeter.
Q3) What is the skeletal structure of a JMeter Script?
Answer:
1. Test Plan
2. Config Elements
3.  Pre Processors
4.  Thread Group
5.  Post Processors
6.  Listeners
Q4) How does JMeter function?
Answer: JMeter does not bolster the genuine program conduct. It doesn’t render the HTML
site pages as the typical program does. The reaction will be seen in HTML arrange yet the
genuine timings are absent in the produced tests.
Q5) What are the Benefits of Jmeter?
Answer: JMeter offers benefits on execution testing like
It can be utilized to test execution for both, static assets and also powerful assets
It can deal with a most extreme number of simultaneous clients then your site can deal with
It gives the graphical examinations of execution reports
Q6) What is Pre-Processing Element?
Answer: Pre-processors are JMeter components that are utilized to execute activities before
the sampler demands are executed in the test situation. Pre-processors can be utilized for
various execution testing needs, such as getting information from a database, setting a
timeout between sampler executions or before test information age.
Q7) What is Post-Processing Element?
Answer: Post-Processors are JMeter components that are executed after the sampler demands
are executed. Post-Processors can be utilized for some, reasons like separating the
information from the reaction.
Q8) What are Listeners?
Answer: Audience members will give you a chance to see the outcomes as arranged
information, charts, JSON Responses, etc.
Q9) Notice distinctive sorts of Listeners.
Answer:
 Graph results
 View results tree
 Aggregate Report
 Aggregate Graph
 Assertion Results
Q10) What is the utilization of Regular Expression Extractor?
Answer: Standard Expression can be utilized for separating a few qualities powerfully from
the reactions to use to it in the resulting solicitation or spare it for revealing purposes.
Ordinary Expression is utilized in both Pre-Processors and also Post-Processors.
Q11) What is the greatest number of strings that can be utilized in a string gathering?
Answer: It relies upon the equipment arrangement of your framework which incorporates a
processor, JVM, designated memory and so forth. Different variables which affect this are
the quantity of segments in your test plan i.e. the quantity of config components or
processors and it additionally relies upon whether you are utilizing GUI/Non-GUI Mode.
Q12) Can portable activities be recorded utilizing JMeter?
Answer: Indeed, JMeter can record HTTP or https ask for setting off to the server from your
portable application moreover. Portable and JMeter ought to be on a similar system.
 Configure your intermediary server in JMeter to keep running at a predefined port.
 Set up an intermediary on your versatile Wi-Fi settings and enter a similar port
number that is utilized in the recorder.
 Install the Root CA declaration on your versatile.
 Hit server ask for from your portable and watch it getting caught by the
predetermined controller.
Q13) Would we be able to utilize Selenium Automated Scripts in JMeter?
Answer: Indeed, we can run selenium contents in JMeter to get a few thoughts on their
execution. It very well may be done in 2 different ways.
You can utilize JUnit libraries to fabricate Selenium contents and spare as Jars and duplicate
the equivalent in JMeter registry. And after that add Junit sampler to your test plan and
import the Jar record.
Something else, Web driver sampler module can be included the JMeter Ext organizer and
after that restart the JMeter. Compose your selenium code in the Web driver sampler and
afterward execute to see the execution.
Q14) How might we oversee sessions and treats in JMeter?
Answer:
1. Sessions and treats can be overseen in JMeter by utilizing config components, for
example, HTTP Cache Manager which gives an alternative to clear the treats in each
emphasis and furthermore permits to include client characterized treats.
2. HTTP Cache administrator encourages you in clearing reserve after every cycle
according to your necessity in the heap tests and furthermore restrains the quantity of
components which can be put away in the store. Both of these config components can
be appended to the HTTP sampler.
Q15) What is a Timer and what are the diverse kinds of Timers accessible in Jmeter?
Answer: A JMeter string as a matter of course will send asks for persistently immediately.
To get a delay between the demand, Timers are utilized. A portion of the Timers utilized are
Constant Timer, Gaussian arbitrary Timer, Synchronizing Timer, and Uniform Random
Timer, etc.
Q16) Clarify the job of the clock.
Answer: With the assistance of a clock, JMeter can defer the time between each demand,
which a string makes. It can take care of the over-burden issue of the server.
Q17) Clarify the contrast among Gaussian and Poisson Timers.
Answer: Both Gaussian and Poisson Timers chip away at a numerical recipe with some
consistent Delay and extra balance. Contrast between the two lies in the reality how the
lambda esteem is determined on account of Poisson clock and how deviation is determined
on account of Gaussian Timer.
Q18) What is the contrast between Constant Timer and Constant Throughput Timer?
Answer:
Consistent Timer: If we need to have each string delay for a similar measure of length, we
utilize Constant Timer.
Consistent Throughput Timer: A Constant Throughput Timer will give the set throughput
through a string gathering or a specific string.
Q19) What is Beanshell Scripting?
Answer: BeanShell is a lightweight Java scripting that is utilized in JMeter to play out some
perplexing assignment. BeanShell sampler can perform different capacities with the
utilization of coding. You can print the string number, get the present sampler executed,
bring the treats and so on.
Q20) What is a root CA declaration?
Answer: HTTPS association requires an endorsement to confirm the associations which get
set up when the program hits the web server. JMeter produces it incidentally to catch the
SSL traffic so as to record the activities. For account activities by means of versatile, you
need this endorsement in your portable to record the activities.
Q21) What is the utilization of a CSV Data Set Config?
Answer: It is a config component utilized amid the heap test to give outside emphasis
contributions to Parameters.
Q22) Would we be able to do versatility testing in JMeter? Assuming this is the case,
how?
Answer: Indeed, we can do adaptability testing in Jmeter. It should either be possible by
running in numerous occurrences physically or in a similar occasion we can make the
duplicate of the string gathering and utilize the scheduler highlight to begin the test
according to plan.
Q23) Would we be able to run JMeter in GUI Mode?
Answer: Indeed, it is conceivable to run the JMeter in GUI. For this, the accompanying
direction is utilized
:jmeter – n – ttest.jmx – l test.jtl
Q24) Would we be able to perform Spike Testing in JMeter?
Answer: By synchronizing clock, JMeter Spike Testing can be accomplished. Synchronizing
clock squares string until an explicit measure of strings has been blocked and after that
discharge them all together in this manner making vast quick load.
Q25) What is Test Fragment?
Answer: Test piece is likewise a kind of component like Thread Group component. The main
distinction is test piece isn’t actualized except if it is referenced by either a Module controller
or an Include controller.
Q26) Are the test designs worked in Jmeter are OS Dependant?
Answer: Test designs are typically spared in XML arrange, thus they don’t have anything to
do with any 1. What is JMeter?
JMeter is a Java Open source Performance Testing device to stack test utilitarian conduct
and measure execution. You can utilize JMeter to examine and quantify the execution of web
application or an assortment of administrations.
Q27) What is a Listener?
Answer: Audience comes vigorously when the content is executed. It tunes in to the
solicitation and reaction and presentations it in a visual way. It very well may be
comprehended as a report of the trial. They are exceptionally valuable to investigate the trial
and help to discover the main driver of the disappointments assuming any.
Q28) What are diverse kinds of Listeners in JMeter?
Answer:
1. View Results in a Tree
2. View Results in a Table
3. Straightforward Data author
4. Total Graph
Q29) Is there some other method to open JMeter other than GUI mode?
Answer: JMeter can be kept running in the non-GUI mode utilizing beneath order in
Command brief
jmeter – n – t <scriptname.jmx>
Q30) What is the reason for a Timer?
Answer: Clocks are otherwise called Think Time in JMeter. They add certain deferral to the
solicitations to which they are included. Including Timer isn’t required yet as a rule, are
added to specific demands that should hit the server after a specific interim. Diverse kind of
Timers is Constant Timer, Gaussian Random Timer, Uniform Random Timer, Synchronizing
Timer and so forth.
Become an JMeter Certified Expert in 25Hours
Q31) What is a customary articulation?
Answer: Standard articulation or Regex are articulations that are made to get information
progressively among solicitations and reaction. This is finished utilizing programming that
coordinates the example in JMeter. Images, for example, ., $, +, ? to make articulation and
match string.
Q32) What are the advantages of JMeter above different apparatuses in the market
that are utilized for execution testing?
Answer:
1. JMeter is open source and one need not pay for its permit.
2. It is stage autonomous.
3. Backings Multithreading
4. No programming abilities are required
5. Great Reporting
Q33) What is a preprocessor?
Answer: Pre-Processors are a lot of activities that are executed before the example demand is
executed. There are diverse sorts of pre-processors in JMeter like BeanShell Pre-processor,
JDBC pre-processor, User Parameters pre-processor and so forth.
Q34) What is a post processor?
Answer: Postprocessors are a lot of activities that are executed after the example demand is
executed. There are distinctive sorts of post processors in JMeter like JDBC post processor,
Regular articulation extractor, XPath Extractor
Q35) What is circulated trying utilizing JMeter?
Answer: As JMeter devours a great deal of memory and the utilization increments with the
quantity of clients henceforth on the off chance that one needs to test with countless than the
heap can be part between various machines. Each machine hits the server with some heap.
For instance, in the event that one needs to mimic the heap of 900 clients than 3 machines of
300 burden each can be utilized. This is upheld by JMeter and that encourages us to utilize
‘n’ number of servers to create as much burden as we need.
Q36) By what method can we parameterize information? (Imperative JMeter Interview
Questions)
Answer: Factors in JMeter can be utilized to parametrize information. Include config
component – > User Defined Variables (Right snap Thread Group > Add > Config Element
> User Defined Variables). The qualities in a variable are put away by ${}
Arrangement
Name: Var1
Esteem: ${variableValue}
Q37) What is the increase time frame?
Answer: Toward the start of the heap trial of an application as opposed to putting every one
of the clients live, we gradually increase the quantity of clients so as to think about their
impact in the application’s execution. In JMeter, increase period characterizes the timeframe
inside which all the predefined clients get in running state.
Q38) What are samplers in JMeter?
Answer: Samplers are utilized for sending distinctive kinds of solicitations to the server. A
portion of the regularly utilized samplers are – HTTP Request, JDBC Request, SOAP-XML
Request, JUnit demand, TCP Sampler and so forth.
Q39) What are Listeners in JMeter? Express a portion of the broadly utilized
Listeners?
Answer: Audience members are utilized for review, sparing of test outcomes and
furthermore help in a forbidden and graphical examination of the test outcomes. A portion of
the broadly utilized Listeners are – Aggregate Report, Aggregate Graph, Graph Results,
View Results Tree and so on.
Q40) What is dispersed burden testing? How might it be accomplished in JMeter?
Answer: Circulated load testing is the procedure utilizing which numerous frameworks can
be utilized for mimicking a heap of expansive number of clients. The purpose behind
utilizing more than one framework for burden testing is the impediment of a solitary
framework to create a substantial number of strings (clients). In JMeter, we can do conveyed
load testing utilizing the ace slave design. [For complete strides to perform appropriated load
testing allude to the post-Distributed burden testing in JMeter]
Q41) What are the diverse clocks in JMeter?
Answer: Clocks are utilized for ending the test execution of a string for a certain predefined
time. These clocks are utilized for recreating the genuine client think time. The diverse kinds
of clocks accessible in JMeter are – Constant Timer, Gaussian Random Timer, Uniform
Random Timer, Constant Throughput Timer, Synchronizing Timer, Beanshell clock, BSF
Timer and so on.
Q42) What is the utilization of Configuration components?
Answer: Arrangement components are utilized for modifying the sampler demands for
example CSV Data Set Config can be utilized for parameterizing the sampler demands with
qualities brought from the outside CSV document.
Q43) What are Pre-Processors?
Answer: Pre-processors are tried arrangement components that are executed before the
sampler demand execution. Some ordinarily utilized pre-processor in JMeter are BeanShell
PreProcessor, HTML Link Parser, HTTP URL Re-composing Modifier, RegEx User
Parameters and so on.
Q44) What are Post-processors?
Answer: Post-processors are the test plan components that are executed after the sampler
demand execution. For the most part, post processors are utilized for bringing a few qualities
from the sampler reaction.
Q45) How might we lessen the asset necessity in JMeter?
Answer:
1. To make the best out of the accessible assets and by and large as a training, the
accompanying practices ought to be fused in the tests-
2. Utilize the non-GUI mode: JMeter – n – t-test.JMX – l test.jtl
3. Use as couple of Listeners as could be allowed; if utilizing the – l banner as above
they would all be able to be erased or crippled.
4. Try not to utilize “View Results Tree” or “View Results in Table” audience members
amid the heap test, use them just amid the scripting stage to investigate your contents.
5. As opposed to utilizing heaps of comparative samplers, utilize a similar sampler in a
circle, and use factors (CSV Data Set) to change the example. Or on the other hand
maybe utilize the Access Log Sampler. [The Include Controller does not help here, as
it includes all the test components in the record to the test plan.]
Q46) Try not to utilize JMeter’s useful mode amid the heap test executions.
Answer:
1. Use CSV yield instead of XML.
2. Just spare the information that you need.
3. Use as couple of Assertions as could reasonably be expected
Q47) What Is The Execution Order Of Test Elements?
Answer: Following is the execution request of the test plan components:
Arrangement components
Pre-Processors
Clocks
Sampler
Post-Processors (except if SampleResult is invalid)
Statements (except if SampleResult is invalid)
Audience members (except if SampleResult is invalid)
Q48) How Do You Ensure Re-ease of use In Your Jmeter Scripts?
Answer: Utilizing config components like “CSV Data Set Config”, “Client Defined
Variables”, and so on for more prominent information reuse.
Modularizing shared errands and conjuring them through a “Module Controller”.
Composing your own BeanShell capacities, and reusing them.
Q49) What Are The Monitor Tests?
Answer: Employments of screen tests are:
1. Screens are helpful for stress testing and framework the board.
2. Utilized with pressure testing, the screen gives extra data about server execution.
3. Screens make it less demanding to see the connection between server execution and
reaction time on the customer side.
4. As a framework organization instrument, the screen gives a simple method to screen
different servers from one reassure.
Q50) What is the distinction among gauge and benchmark testing?
Answer: The contrasts among pattern and benchmark testing are:
1. Pattern testing is the way toward running a lot of tests to catch execution data. This
data can be utilized as a point of reference when in future changes are made to the
application while Benchmarking is the way toward looking at your framework
execution against an industry standard that is given by some other association.
2. Precedent: We can run benchmark trial of an application, gather and investigate
results, and afterward alter a few files on a SQL Server database and run a similar test
once more, utilizing the past outcomes to decide if the new outcomes were better,
more terrible, or about the equivalent.
Get JMeter Online Training
Q51) Can you design a J-METER scenario, where you should plan the execution of
launch and login only once, even when the submit transaction should be executed
multiple times?
Answer: I can make use of below Logic controllers to design a scenario where Login and
Launch should be executed once and submit transaction (rest others) can be executed
multiple times:
 We can use Once Only Controller and put Login and Launch under it
 We can put other transactions (here submit) into runtime controller which should
be executed multiple times and assign the duration of test in seconds
Q52) Let us say you have got out of Memory Exception while Executing the J-meter,
what can you do?
Answer: I will try to increase the heap memory size in the jmeter.bat file as per the system
RAM.
To do this I Would have to open jmeter.bat file in notepad and change the heap memory as
below:
Set HEAP=-Xms 2048m – Xmx
2048m -XX:MaxMetaSpaceSize=2048m
Q53) How to do correlation in J-METER?
Answer: Correlation in J-METER can be done using Regular expression post-processor. We
need to put the regular expression in the place where the dynamic parameter is captured. we
can find out RB and LB from the view result tree (response of the request). We should also
verify those in Regular expression tester after the correlation.
Q54) How can we analyze test results of J-METER?
Answer: Results in J-METER are generated in the of form .jtl file format, we can add
different graphs to these results like aggregate report, response time graph and can analyse
TPS and response time. Sometimes there would be a requirement to install J-METER
plugins to generate some of additional graphs in J-METER library(lib) folder.
Q55) How do we create scripts in J-METER?
Answer: To create, debug and record the scripts in J-METER, we need to add below
elements:
 Manager=&gt;Constant Timer=&gt;View Results Tree=&gt;CSV Data Set
Config=&gt;Response Assertion=&gt;Aggregate Report
 Test Plan=&gt;Thread Gruop=&gt;HTTP Request =&gt;HTTP Header
Manager=&gt;HTTP Cookies
Q56) How can you pass Unique values into J-METER’s CSV Data Set Config?
Answer: Create a CSV format of unique values in the parameter file, J-METER always picks
up the values from the parameter file in a sequential way by default. End-of-file options in
CSV dataset config can also be controlled by us.
Q57) Do we have any limit on a number of users/threads that we can generate in J-
METER?
Answer: J-METER always creates threads on the application under testing. since every
thread created consumes part of RAM memory during execution, the number of threads that
we can create always would depend on systems hardware config on which the J-METER is
being ran on.
Q58) How can we test J-METER’s web services?
Answer: To test the web services on J-METER we need to get the XML file generated using
SOAP UI and WSDL file from the developer.
 Put the XML file from SOAP UI in body data of HTTP Request
 Enter server IP and protocol as http/https, port number and method should be
entered as POST

So that we can find out what parameters are needed for parameterization for that particular
API.
Q59) Have you ever worked on BeanShell Sampler of J-METER?
Answer: Yes, I did get few opportunities to work on it while working with some of
projects(or one of projects) with my previous organization, we used it to write Java code.
There was a scenario where I had to import packages, create objects and pass string
messages in XML format and validate the creation of SR using J-METER.
Q60) What types of recording have you used in J-METER?
Answer: In all types of performance tools, we will have two types of recordings to record
scripts 1. Manual and 2. Automatic.
In J-METER we can make use of workbench for the automatic record, of scripts and
Network log(F12) or fiddler to do it manually.
Q61) What versions of J-METER available in the market? And what are the features
that are added into latest version of J-METER?
Answer: Latest version of J-METER that is released by Apache is 5.1.1,
The new features that are added into this version is
 New Menu tools from which we can generate the HTML reports
 Search in view results tree is implemented.
 J-METER script from the different versions of it can be upgraded to latest version
making use of New Plug-In managers
Q62) How can we configure load distribution on the Linux Platform using J-METER?
Answer: Load-Distribution on Linux platform can be done in 2 ways
1.GUI
2.Non-GUI
For both configurations we need to make sure that both versions of Java and J-METER are
in sync, the firewall should be disabled and we need to update IP address of different
machines of J-METER to startup the slave machine remotely.
For Non-GUI mode specifically, there is a need to make sure that the security group needs to
be updated for allowing connections on both machines.
Q63) How do we configure Email Notifications in J-METER?
Answer: By using SMTP sampler Email notifications can be configured in our scripts, we
can also use google server and Gmail account for trail purpose. Once the implementation is
done in a project-specific way, we can take the permission from the clients to use google
account for security purpose.
Q64) How can we configure JTL files in J-METER?
Answer: For using simple data writer or view result tree to record the info of all requests that
has been executed we can save JTL/CSV files. These files saved would be much helpful
while executing the scripts in Non-GUI mode, and in this mode,  we have the option to save
all requests/Only failed request/only pass into JTL format.
Q65) How should we configure the HTML report in J-METER?
Answer: We used to configure HTML reports in older versions of J-METER in user property
files and system property files before starting the execution, but as in latest version we have
got new menus added in J-METER to generate the HTML reports along with the existing
JTL and CSV files.
Q66) What is parameterization in J-METER, and what are different types of it?
Answer: Passing the values in test cases like input data like username/password to test cases
is called as parameterization, we can make use of CSV data to pass the values either using
CSV format or TXT format files.
Two ways of passing values into parameters are,
 Pass values directly into body data
 Data config using CSV
Q67) What exactly is the use of BeanShell script in J-METER?
Answer: Beanshell sampler can be used to allow java bean shell scripts into J-METER, for
example if there is need to store test case values and compare those then we can use Java
beans heel code to handle the jobs, we can also implement bean shell pre-processer or post-
processer based on our requirements.
Q68) What is the use of using Workbench and Test Plan in J-METER?
Answer: The main use of Workbench is to record the scripts and also as a temporary place to
store the requests or Test cases.
A test plan is used to build test cases using the necessary test cases. We can add in elements
like a sampler, timers, listeners, test assertions, thread groups and processers as part of
building the test plans.
Q69) How can we handle AJAX calls on the website that has a refresh rate of 5secs and
data is updated for each refresh?
Answer: We can make use of a parallel controller for this. We can use IF Controller to check
the 5 seconds condition and loop controller for looping the request for every 5 seconds.
Q70) What are the different Protocols Supported By J-Meter?
Answer:
 Web Protocol: for testing web applications, supports both HTTPS(secured) and
HTTP protocols.
 Web Services: for testing web services and web applications, it supports both
REST and SOAP.
 FTP: For testing FTP Applications and servers
 Database via JDBC: for testing DB applications
 LightWeight Directory Access Protocol(LDAP)
 MOM: Message Oriented Middleware via JMS
 Mail: Test mail servers like POP3(S), SMTP(S) and IMAP(S)
 NOSQL(MongoDB): most recent protocol supported by J-METER
 Shell scripts and Native commands
 TCP
Q71) What are different controller types in J-METER?
Answer: There are mainly two different types of controllers in J-METER
Sampler Controller: used by JMETER for posting the specific type of requests to the server,
also simulates users’ requests for a webpage from the target servers.
Logical Controller: Used to control the order of execution of samplers in a thread.
Q72) Why can’t be J-METER considered as a browser?
Answer: There are two main reasons for this
 J-METER doesn’t have javascript Execution engines like browsers, so it can’t
execute java scripts.
 It can’t render HTML pages as a browser does
Q73) How can we handle Correlation and Parameterization in J-METER?
Answer:
Parameterization:
Use Pre-Processors: Regex User Parameter, User Parameters, Bean Shell Pre-Processor etc.
Configuration Elements: Counters, CSV Data Set Configs
Correlation:
Use Post-Processors: Boundary Extractor, Regular Expression Extractor, and JSON
Extractor etc.
Q74) What are Listeners in J-METER? And please list few listeners?
Answer: Listeners enables us to view the results of samplers in the form of graphs, tables,
simple text in some log files or trees.
Few listeners used in J-METER are
 Spline visualizer
 Aggregate Report
 View Result Tree
Q75) How Actually does a J-METER work?
Answer: J-METER works on the network level, it always acts like a proxy and can record
network traffic between server and client(browser). We can also modify the recorded traffic
and send it with multiple users(threads) for load and performance testing.
Q76) How can we do Percent Based Distribution in J-METER?
Answer: We should do both browser and network distributions in J-METER
 Browser Distribution (40% to Chrome, 30% to Firefox and 30% to IE)
 Network Distribution (60% to LAN, 20% to 4G, 10% each to 3G and 2G)

There are multiple ways in achieving these scenarios, using


 By using multiple Thread Groups
 Using Parameterization Techniques
 Using Throughput Controller
 Using Beanshell /JSR223 sampler
 Using Switch Controller
Q77) How can we perform Testing on J-METER from different Geo-Locations?
Answer: We can make use of distributed testing using J-METER for testing on J-METER
from different locations. There are two ways to do it
  On-Premise set up of JMeter on different locations
 Using Blaze meter (Cloud-based)
Q78) What exactly is a thread group in JMeter?
Answer: Thread group is an element of test plan in J-METER which represents a pool of
virtual users performing set of operations.
Q79) What test element should be added to perform recording in J-METER?
Answer:  HTTP(S) Script recorder
Q80) Does J-METER connect automatically to the internet without proxy or do we need
setup browser proxy for Mozilla or chrome manually to record?
Answer: There is a need to set-up browser proxy to record in J-METER manually, this can
be done by providing the address of the port in proxy settings of any browser.
Q81) What is difference between Pre_processer and Post_Processer in J-METER?
Answer:
  Pre-Processor is always executed before running Sampler and can be used to
generate some input.
  Post-Processor is executed after running Sampler, can be used for clean-up or
recovery
Q82) How can we manage Sessions and cookies in J-METER?
Answer: HTTP cache manager can be used to manage cookies and sessions in J-METER,
which can allow to define user-defined cookies and also can clear the cookies after every
iteration cycle. We can also regulate the clearing of the cache according to user requirements
in load tests to restrict a number of elements stored in the cache and these elements can be
attached to the Listener.
Q83) What are the Thread group’s main parts in J-METER?
Answer:
 Sampler: used for sending different types of requests to the server.
 Listeners: To save and view the results of the run.
 Timer: used to run more realistic scenarios by insertion of delays in between
requests.
 Controller: used to control the flow of thread groups
 Config Element: Info of requests that need to be added with samplers.
 Assertion: used to check whether the responses generated are within given time
and has expected data
Q84) How are requests sent to the server in J-METER?
Answer: Samplers are used to send requests to the server in J-METER. There are different
samplers which are present in the J-METER and few of them are:
 Junit request
 JDBC request
 HTTP request
Q85) How can we collect client-side metrics using J-METER?
Answer: A component called WebDriver Sampler can be used to collect client-side metrics
Get JMeter 100% Practical Training
Q86) What exactly do you mean by term J-METER?
Answer: J-METER Java-based tool, open-source nature of it makes it very popular. We can
use J-METER across different web-based apps or web services. Moreover, it is the capability
to handle databases and also FTP servers.
Q87) Can I test run a script recorded on MAC on Windows?
Answer: Yes.
Q88) Which Listener is the best one to keep during a Load test?
Answer: Sample Data Writer
Q89) How can we monitor server metrics of a load test in J-METER when it is being
run on a Windows platform?
Answer: Perfmon plugin of J-METER can be used to capture the performance metrics of the
server during the load test.
Q90) Can you explain the flow of the Test Script Recorder?
Answer: HTTP(s) Test Script Recorder can be used to record the requests from Application
to server. There are some configurations to be done in JMETER to make that work.
Here are the steps needed to be followed for recording HTTP(S) traffic:
 Do Add HTTP(S) recorder to workbench
 Enter the port number from which you want to start proxy and start the proxy
server.

Now configure proxy settings your browser manually on your Browser by giving the same
port number used in the recorder of test Script.
Q91) Suppose if you have 5 users and you want to maintain their own counter for each
user then how you will achieve it?
Answer: >Using a ‘_Counter’ function, you can set a ‘True’ value for ‘TRUE, for each user
to have own counter’  field
>Suppose there are 5 users then in the first iteration counter of all 5 users will be 1.
>In the second iteration it will be 2 for all users like that
Q92) If you want to hit your own machine’s ip then how you will achieve it ?
Answer: >Using functions available in Jmeter we can achieve it.
>Options->Function helper dialog->Choose a function-> select ‘_machineIP’->store in value
example ‘IP’->Click on ‘Generate’->copy string->and paste in request->Server Name or IP
field
Q93) What is a disadvantage of ‘Simple Controller’?
Answer: >Simple controller does not provide the total time required to execute all
transactions
Q94) Is it possible to restrict output within time boundaries and which parameter will
be used for the same?
Answer: >In the individual sampler connection time out can provide OR
>In http request defaults we can provide response time. If child samplers have there owned
timeout then the child will override HTTP request defaults connection timeout value
Q95) Will it help to define an FTP protocol while downloading a file?
Answer: >No need to mention FTP explicitly..In FTP request we have to mention a remote
file path, local file path and Server URL from where we want to download file
Q96) Which feature FTP request sampler provides to check downloaded file from
server is correct or not?
Answer: >’Save File in response checkbox’-this saves file in a listener
Q97) How to extract the link from one http request sampler to other http requests?
Answer: >HTML link parser is used
Q98) How you will make sure that ‘Xpath Extractor’ post-processor has captured the
right variable?
Answer: >We can use ‘Debug Sampler’ along with one listener
Q99) To parse a html response in view results tree listener which settings need to be
done?
Answer: >Select an ‘Xpath Tester’ from output dropdown available and
>select checkbox of ‘Use Tidy <tolerant Parser>
>Pass Xpath Expression ->click on ‘test’ button then you can find expected variable from
Xpath Tester
Q100) Which Sampler is similar to Constant Timer in Jmeter?
Answer: >’Test Action’ sampler is similar to Constant Timer in which you can select actions
to ‘Pause’, ‘Stop’, ‘Stop Now’, and ‘Go to next loop iterations’ and can give time in
‘Duration(milliseconds)’ field as well
Q101) What is the use of ‘Include duration of the timer and pre-post processors in
generated sample’ checkbox in the transaction controller?
Answer: >It gives a total transaction time required for executing requests +preprocessors
execution time +postprocessor execution time52. Scenario: If you want to test load when 100
users are doing login and at the same time another 100 users are hitting the home page. How
will you test?
You can use an ‘Interleave Controller’ so first login functionality will be tested and after
that, if home page request is in another controller then that will be picked to execute rather
than the second request from the first controller

You might also like