Top 39 Jmeter Interview Questions
Q1. In Jmeter Is It Necessary To Call Embedded Resources Explicitly?
You can take away all embedded assets from being explicitly referred to as. Requests have a checkbox at the bottom that asserts “retrieve embedded assets.” It could take hold of all CSS, JPG, and so on. It is a wonderful way to find sources and broken hyperlink in a web App.
Q2. What Are The Monitor Tests?
Uses of monitor exams are:
Monitors are beneficial for a stress testing and system control.
Used with strain trying out, the display gives additional data approximately server performance.
Monitors makes it easier to peer the relationship among server performance and reaction time at the consumer side.
As a system administration device, the screen gives an easy manner to screen more than one servers from one console.
Q3. What Are Controllers And Its Types?
JMeter has two sorts of Controllers:
Samplers Controllers : Samplers allow JMeter to ship particular forms of requests to a server. They simulate a user's request for a page from the goal server. For instance, you can add a HTTP Request sampler in case you want to perform a POST, GET, DELETE on a HTTP carrier
Logical Controllers : Logic Controllers allow you to manipulate order of processing of Samplers in a Thread. Logic Controllers can alternate the order of request coming from any of their toddler elements. Some examples are: ForEach Controller, While Controller, Loop Controller, IF Controller, Run Time Controller, Interleave Controller, Throughput Controller, Run Once Controller.
Q4. List Some Of The Features Of Jmeter.?
Following are a number of the features of JMeter:
Its unfastened. Its an open source software.
It has simple and intuitive GUI.
JMeter can load and performance test many unique server types: Web - HTTP, HTTPS, SOAP, Database through JDBC, LDAP, JMS, Mail - POP3
It is platform-independent device. On Linux/Unix, JMeter may be invoked by means of clicking on JMeter shell script. On Windows it is able to be invoked with the aid of beginning the jmeter.Bat file.
It has full Swing and lightweight thing help (precompiled JAR uses packages javax.Swing.* ).
JMeter keep its test pl in XML layout. This me you may generate a test plan using a textual content editor.
It's full multi-threading framework permits concurrent sampling by using many threads and simultaneous sampling of various functions by using separate thread businesses.
It is fairly Extensible.
Can also be used to carry out automated and functional testing of your application.
Q5. What Is Distributed Load Testing? How It Can Be Achieved?
Distributed load testing is the process via which severa systems can be used for simulating load of a large variety of users. By using the master-slave configuration, JMeter can do distribute load trying out.
Q6. What Are The Protocols Supported By Jmeter?
The protocols supported via JMeter are:
Web: HTTP, HTTPS sites 'internet 1.Zero' internet 2.0 (ajax, flex and flex-ws-amf)
Web Services: SOAP / XML-RPC
Database through JDBC drivers
Directory: LDAP
Messaging Oriented service via JMS
Service: POP3, IMAP, SMTP
FTP Service
Q7. What Are Listeners?
Listeners assist you to view the outcomes of Samplers in the shape of tables, graphs, timber or easy textual content in some log documents. They provide visual get entry to to the information accumulated by means of JMeter about the check instances as a Sampler element of JMeter is done.
Listeners may be brought anywhere in the test, along with at once under the test plan. They will acquire records only from factors at or under their level.
Q8. What Are Regular Expressions In Jmeter?
Regular expressions are used to look and control textual content, primarily based on styles. JMeter translates styles of ordinary expressions or patterns being used for the duration of a JMeter take a look at plan, through together with the pattern matching software Apache Jakarta ORO.
Q9. What Is Jmeter?
JMeter is one of the Java tools that's used to carry out load testing consumer/server programs. Apache JMeter is open source software, a a hundred% pure Java computer software designed to load check functional conduct and degree performance of the software. It was at the start designed for trying out Web Applications however has in view that elevated to different check features.
Q10. What Are Pre-processor And Post-processor Elements?
A Pre-Procesor is something so as to show up earlier than a sampler executes. They are regularly used to regulate the settings of a Sample Request simply earlier than it runs, or to update variables that aren't extracted from response text.
A Post Processor executes after a sampler finishes its execution. This element is most often used to system the response statistics, for instance, to retrieve unique price for later use.
Q11. Explain What Is Post-processor?
To carry out any movement after creating a request, Post- processor is used. For example, if JMeter sends an http request to the web server, and if you want JMeter to forestall sending the request if the internet server suggests an mistakes, then you'll use publish-processor to perform this movement.
Q12. Whether The Test Pl Built Using Jmeter Are Os Dependent?
Usually, test plan are stored 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.
Q13. Explain How Jmeter Works?
JMeter acts like a collection of users sending requests to a goal server. It collects reaction from target server and other information which show the overall performance of the utility or server thru graphs or tables.
Q14. What Are The Benefits That Jmeter Offers For Performance Testing?
JMeter offers benefits on performance trying out like
It can be used to check performance for both, static assets in addition to dynamic assets
It can deal with a most quantity of concurrent customers then your website can handle
It provides the graphical analyses of overall performance reports
Q15. What Is A Test Plan In Jmeter?
A Test Plan defines and affords a format of the way and what to check. For example the internet utility as well as the client server utility. It can be viewed as a field for running exams. A whole check plan will consist of one or extra elements which includes thread agencies, good judgment controllers, pattern-producing controllers, listeners, timers, assertions, and configuration elements. A test plan must have at least one thread institution.
Q16. Mention The Execution Order Of Test Elements?
The check pl factors execution order is
Configuration elements
Pre-processors
Timers
Samplers
Post-processors
Assertions
Listeners
Q17. What Is The Execution Order Of Test Elements?
Following is the execution order of the test plan factors:
Configuration factors
Pre-Processors
Timers
Sampler
Post-Processors (unless SampleResult is null)
Assertions (except SampleResult is null)
Listeners (except SampleResult is null)
Q18. Explain How You Can Reduce The Resource Requirement In Jmeter?
To lessen the resource necessities in JMeter
Use non-GUI mode: jmeter –n –t take a look at.Jmx –l check.Jtl
During the burden, test doesn’t use “view results tree” or “view results in table” listeners, use them handiest in the course of scripting section
Don’t use purposeful mode
Instead of using plenty of comparable samplers, use the equal sampler in loop and use variable to differ the sample
Q19. Explain What Is Assertion In Jmeter? What Are The Types Of Assertion?
Assertion facilitates to verify that your server under test returns the expected consequences
Some normally used Assertion in JMeter are
Response Assertion
Duration Assertion
Size Assertion
XML Assertion
HTML Assertion
Q20. What Is Configuration Element?
Configuration Elements permit you to create defaults and variables to be used by Samplers. They are used to feature or regulate requests made by Samplers.
They are performed at the begin of the scope of which they're component, before any Samplers which can be placed within the identical scope. Therefore, a Configuration Element is accessed most effective from within the department in which it's far positioned.
Q21. Are The Test Pl Built Using Jmeter Os Dependant?
Test pl are commonly stored in thr XML format, for this reason they have got not anything to do with any particular OS. You can run those take a look at pl on any OS where JMeter can run.
Q22. List Some Of The Test Plan Elements In Jmeter.?
Following is a listing of some of the test plan factors:
ThreadGroup
Controllers
Listeners
Timers
Assertions
Configuration Elements
Pre-Processor Elements
Post-Processor Elements
Q23. Explain What Is Test Fragment?
Test fragment is likewise a type of element like Thread Group detail. The simplest difference is take a look at fragment isn't always applied except it is referenced with the aid of either a Module controller or an Include controller.
Q24. Explain What Is A Timer In Jmeter And What Are The Types Of It?
A JMeter thread via default will ship requests constantly without any pause. To get a pause among the request, Timers are used. Some of the Timers used are Constant Timer, Gaussian Random Timer, Synchronizing Timer, Uniform Random Timer and so on.
Q25. Explain What Is Configuration Elements?
A configuration element works parallel with a Sampler. To set up defaults and variables for later use through samplers configuration factors may be used. At the begin of the scope, these elements are processed earlier than any samplers in the identical scope.
Q26. Explain How You Can Capture The Script Of The Authentication Window In Jmeter?
Normally, you may seize script by way of recording.
First you have to Threadgroup in Testplan and then make HTTPProxyServer in Workbench
After that, set port range in Global Setting box (e.G., 8911) and modify your connection putting in IE as local host in cope with 8911 as in port Then you can begin http proxy server in JMeter and run your application for login.
Q27. Explain What Is Samplers And Thread Groups?
Thread group: For any take a look at plan, JMeter is the beginning a part of thread organization elements. It is an crucial element of JMeter, wherein you may set quantity of customers and time to load all of the users given within the thread organization
Samplers: Sampler generates one or extra sample consequences; these pattern consequences have many attributes like elapsed time, information size, and so on. Samplers allow JMeter to send unique varieties of requests to the server, via samplers, thread organization comes to a decision ?which sort of request it want to make. Some of the useful samplers are HTTP request, FTP request, JDBC request and so forth.
Q28. How Do You Ensure Re-usability In Your Jmeter Scripts?
Using config factors like "CSV Data Set Config", "User Defined Variables", and so forth for greater information reuse.
Modularizing shared obligations and invoking them through a "Module Controller".
Writing your very own BeanShell features, and reusing them.
Q29. Mention What Are Regular Expressions In Jmeter?
Based on the sample, regular expression are used to look and manipulate textual content. JMeter is useful in deciphering sorts of normal expression or patterns getting used at some point of a JMeter take a look at plan.
Q30. Explain What Are Pre-processor Elements? List Some Of The Pre-processor Elements?
A pre-processor is some thing so that it will take place earlier than sampler executes. To configure the sample request previous to its execution or to update variables that aren't extracted from reaction textual content pre-processor factors are used.
Some of the pre-processor factors are:
HTTP URL re-writing modifier
HTTP consumer parameter modifier
HTML link parser
BeanShell PreProcessor
Q31. What Is Thread Group?
Thread Group factors are the beginning points of your check plan. As the name shows, the thread institution elements manage the wide variety of threads JMeter will use in the course of the test.
Q32. What Are Jmeter Functions?
JMeter functions are special values which can populate fields of any Sampler or other detail in a check tree.
A function name looks like this:
$__functionName(var1,var2,var3)
Q33. How Can You Reduce Resource Requirements In Jmeter?
Below are a few notion to reduce useful resource necessities:
Use non-GUI mode: jmeter -n -t check.Jmx -l test.Jtl.
Use as few Listeners as feasible; if using the -l flag as above they could all be deleted or disabled.
Disable the “View Result Tree” listener as it consumes quite a few memory and can result in the console freezing or JMeter running out of reminiscence. It is, but, secure to apply the “View Result Tree” listener with only “Errors” checked.
Rather than using masses of similar samplers, use the identical sampler in a loop, and use variables (CSV Data Set) to vary the sample. Or possibly use the Access Log Sampler.
Don't use useful mode.
Use CSV output instead of XML.
Only keep the facts which you need.
Use as few Assertions as possible.
Disable all JMeter graphs as they devour quite a few reminiscence. You can view all the actual time graphs using the JTLs tab on your internet interface.
Do no longer neglect to erase the nearby path from CSV Data Set Config if used.
Clean the Files tab prior to each take a look at run.
Q34. Explain What Is The Role Of Timer In Jmeter?
With the assist of timer, JMeter can put off the time between every request, which a thread makes. It can remedy the overload trouble of the server.
Q35. Mention What Are The Types Of Processor In Jmeter?
The styles of processor in JMeter are:
Pre-processor
Post processor
Q36. Where Can Functions And Variables Be Used?
Functions and variables can be written into any field of any test thing.
Q37. Explain How You Can Perform Spike Testing In Jmeter?
By synchronizing, timer JMeter spike testing can be carried out. Synchronizing timer, blocks thread till a particular amount of threads has been blocked after which release all of them collectively consequently developing huge on the spot load.
Q38. Explain Where You Can Use Functions And Variables?
Variables and features can be written into any subject of any check thing.
Q39. 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

