SlideShare a Scribd company logo
1 of 14
TESTING
WORLD http://www.thetestingworld.com Call/WhatsApp:
8743913121
Website : www.thetestingworld.com
Skype: testingworld2014
Call or WhatsApp: +91-8743913121
Email testingworldindia@gmail.com
JMeter – Interview Question
http://www.thetestingworld.com/
TESTING
WORLD http://www.thetestingworld.com Call/WhatsApp:
8743913121
Trainer Profile
Having more than 10 yrs industry experience.
Worked on different automation tools like Selenium, QTP, LoadRunner, Jmeter,
Mobile Automation, SoapUI, Big Data Testing
Expertise on Unix and Shell Scripting (AWK, SED)
Expertise on Big data testing (Hive, Pig, Hadoop, Sqoop, Hbase, Cassandra)
Exposer to Data analysis using Python
ISTQB Certified, QTP Certified, QC Certified, LoadRunner11 Certified, CMAT
Certified, SoapUI NG Pro Certified
Trained more than 3000 professionals in classroom and more than 10000
professionals online & self paced video courses.
Running CMS www.thetestingworld.com also contributing many online blogs.
Get Lifetime Access to 25+ Video Courses in just Rs 6000 ($100)
Courses Include:
Functional Automation Selenium(java,Python,Ruby), QTP
Performance Automation Jmeter, LoadRunner,
API/ Web Service Testing SoapUI, Postman, Jmeter, Rest Assured
Manual Testing Database testing, backend testing using Unix and Shell
Scripting for Testers Python, Ruby, Java, Groovy
Test Management and tracking: JIRA, ALM
Miscellaneous Mobile Automation Testing, BDD testing using Cucumber, MySQL
Sample Videos:
https://www.youtube.com/channel/UCsdoSHH5bucBf_wwtvWJfn
Q/playlists
Buy: Call or WhatsApp : +91-8743-913121
Email: testingworldindia@gmail.com
You can directly do payment here:
Credit and debit card payment can be done here.
https://www.payumoney.com/webfronts/#/index/theTestingWorld
http://www.thetestingworld.com/
TESTING
WORLD http://www.thetestingworld.com Call/WhatsApp:
8743913121
Get Lifetime Access to 25+ Video Courses in just Rs 6000 ($100)
http://www.thetestingworld.com/
TESTING
WORLD http://www.thetestingworld.com Call/WhatsApp:
8743913121
QUESTION: 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
behavior and measure performance of the application. It was originally
designed for testing Web Applications but has since expanded to other
test functions.
• Java Based Window Application.
• Support many type of applications like HTTP, Web
Service, LDAP, JDBC, Java, FTP etc.
• Support Distributed Testing: So that we can distribute load
on multiple machine, so that we can simulate load on
server, network or object which are coming from different
machine to implement real world scenario.
• Record & Playback - Record the user activity on the
browser and simulate them in web application using
JMeter.
QUESTION: What are the protocols supported by
JMeter?
ANSWER: The protocols supported by JMeter are:
Web: HTTP, HTTPS sites 'web 1.0' web 2.0 (ajax, flex and flex-ws-amf)
Web Services: SOAP / XML-RPC
Database via JDBC drivers
Directory: LDAP
Messaging Oriented service via JMS
Service: POP3, IMAP, SMT P
FTP Service
http://www.thetestingworld.com/
TESTING
WORLD http://www.thetestingworld.com Call/WhatsApp:
8743913121
QUESTION: List some of the features of JMeter.
ANSWER: Following are some of the features of JMeter:
• It’s an open source software.
• It has simple and intuitive GUI.
• JMeter can load and performance test many different server types:
Web - HTTP, HTTPS, SOAP,
• Database via JDBC, LDAP, JMS, Mail - POP3
• 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.
• It has full Swing and lightweight component support (precompiled
JAR uses packages javax.swing .* ).
• JMeter store its test plans in XML format. This means you can
generate a test plan using a text editor.
• It's full multi-threading framework allows concurrent sampling by
many threads and simultaneous sampling of different functions by
separate thread groups.
• It is highly extensible.
• Can also be used to perform automated and functional testing of
your application.
QUESTION: 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.
QUESTION: 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
http://www.thetestingworld.com/
TESTING
WORLD http://www.thetestingworld.com Call/WhatsApp:
8743913121
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.
QUESTION: List some of the test plan elements in
JMeter.
ANSWER: Following is a list of some of the test plan elements:
• ThreadGroup
• Controllers
• Listeners
• Timers
• Assertions
• Configuration Elements
• Pre-Processor Elements
• Post-Processor Elements
QUESTION: What is distributed load testing? How
can it be achieved in JMeter?
ANSWER: Distributed load testing is the process using which multiple
systems can be used for simulating load of large number of users. The
reason of using more than one system for load testing is the limitation of
single system to generate large number of threads (users). In JMeter we
can do distributed load testing using the master slave configuration.
QUESTION: How can we reduce the resource
requirement in JMeter?
ANSWER: To make the best out of the available resources and in general
as a practice, following practices should be incoroprated in the tests-
• Use non-GUI mode: jmeter -n -t test.jmx -l test.jtl
http://www.thetestingworld.com/
TESTING
WORLD http://www.thetestingworld.com Call/WhatsApp:
8743913121
• Use as few Listeners as possible; if using the -l flag as above they
can all be deleted or disabled.
• Don't use "View Results Tree" or "View Results in Table" listeners
during the load test, use them only during scripting phase to debug
your scripts.
• 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. [The Include Controller does
not help here, as it adds all the test elements in the file to the test
plan.]
• Don't use functional mode
• Use CSV output rather than XML
• Only save the data that you need
• Use as few Assertions as possible
QUESTION: What is Thread Group?
ANSWER: Thread Group elements are the beg inning points of your test
plan. As the name suggests, the thread group elements control the
number of threads JMeter will use during the test.
Thread group elements are the beginning points of any test plan.
• All controllers and samplers must be under a thread group.
• Listeners, may be placed directly under the test plan, in which case
they will apply to all the thread groups.
• The controls for a thread group allow you to:
• Set the number of threads
• Set the ramp-up period
• Set the number of times to execute the test
http://www.thetestingworld.com/
TESTING
WORLD http://www.thetestingworld.com Call/WhatsApp:
8743913121
QUESTION: 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: For
Controller, While Controller, Loop Controller, IF Controller, Run Time
Controller, Interleave Controller, Throughput Controller, Run Once
Controller.
QUESTION: What is Work bench?
http://www.thetestingworld.com/
TESTING
WORLD http://www.thetestingworld.com Call/WhatsApp:
8743913121
ANSWER: The Workbench is simply an area to store test elements while
you are in the process of constructing a test. The Workbench is a sandbox
for any test or portion of a test that you are working on. When you are
ready to test what you have designed in the Workbench, you can copy or
move the elements into the Test Plan.
It also contains Non- Test Elements Http mirror sever Http Proxy server
{which is not available in the thread group & Test plan }
QUESTION: What is Configuration element?
ANSWER: A configuration element works closely with a Sampler
Configuration elements can be used to set up defaults and variables for
later use by samplers.
Note that these elements are processed at the start of the scope in which
they are found, i.e. before any samplers in the same scope.
Its elements:
• CSV Data Set Config: Used to read lines from a file, and split them
into variables.
• HTTP Authorization Manager : You can specify one or more user
logins for web pages that are restricted using server authentication
• Java Request Defaults: You can set default values for Java testing
• HTTP Cookie Manager: The Cookie Manager element has two
functions:
o It stores and sends cookies just like a web browser.
o Second, you can manually add a cookie to the Cookie
Manager. However, if you do this, the cookie will be shared
by all JMeter threads.
• HTTP Request Defaults: This element lets you set default values
that your HTTP Request controllers use.
• HTTP Header Manager : The Header Manager lets you add or
override HTTP request headers
http://www.thetestingworld.com/
TESTING
WORLD http://www.thetestingworld.com Call/WhatsApp:
8743913121
QUESTION: 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
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
QUESTION: 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.’
QUESTION: Explain what is timer in JMeter and
what are the type’s timer in JMeter?
ANSWER: 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
http://www.thetestingworld.com/
TESTING
WORLD http://www.thetestingworld.com Call/WhatsApp:
8743913121
• Gaussian Random Timer
• Synchronizing Timer
• Uniform Random Timer and so on.
QUESTION: 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:
• Response Assertion
• Duration Assertion
• Size Assertion
• XML Assertion
• HTML Assertion
QUESTION: Why Performance Testing is
performed?
ANSWER: Performance Testing is performed to evaluate application
performance under some load and stress condition. It is generally
measured in terms of response time for the user activity. It is designed to
test the whole performance of the system at high load and stress
condition.
Example: Customer like to withdraw money from an ATM counter,
customer inserts debit or credit card and wait for the response. If system
takes more than 5 min. then according to requirements system functioning
is fail.
Type of Performance Testing:
• Load: analogous to volume testing and determine how application
deal with large amount of data.
• Stress: examine application behavior under peak bursts of activity.
http://www.thetestingworld.com/
TESTING
WORLD http://www.thetestingworld.com Call/WhatsApp:
8743913121
• Capacity: measure overall capacity and determine at what time
response time become unacceptable.
QUESTION: 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)}
Training :
Performance Testing using Jmeter:
Call: WhatsApp: +19-8743913121
QUESTION: Mention the execution order of Test
Elements?
ANSWER: The test plans elements execution order is:
http://www.thetestingworld.com/
TESTING
WORLD http://www.thetestingworld.com Call/WhatsApp:
8743913121
• Configuration elements
• Pre-processors
• Timers
• Samplers
• Post-processors
• Assertions
• Listeners
QUESTION: Explain how you can capture the
script of the authentication window in JMeter?
ANSWER: Normally, you can capture script by recording.
• First you have to Thread group in Test plan and then make
HTTPProxyServer in Workbench
• 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
http://www.thetestingworld.com/
TESTING
WORLD http://www.thetestingworld.com Call/WhatsApp:
8743913121
http://www.thetestingworld.com/

More Related Content

What's hot

Apache JMeter - A brief introduction
Apache JMeter - A brief introductionApache JMeter - A brief introduction
Apache JMeter - A brief introductionsilenceIT Inc.
 
"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd Session"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd SessionTharinda Liyanage
 
Using Jenkins and Jmeter to build a scalable Load Testing solution
Using Jenkins and Jmeter to build a scalable Load Testing solutionUsing Jenkins and Jmeter to build a scalable Load Testing solution
Using Jenkins and Jmeter to build a scalable Load Testing solutionRuslan Strazhnyk
 
Load Test Drupal Site Using JMeter and Amazon AWS
Load Test Drupal Site Using JMeter and Amazon AWSLoad Test Drupal Site Using JMeter and Amazon AWS
Load Test Drupal Site Using JMeter and Amazon AWSVladimir Ilic
 
Soft Test Ireland - Introduction to Jakarta Jmeter - Philip Bannon
Soft Test Ireland - Introduction to Jakarta Jmeter - Philip BannonSoft Test Ireland - Introduction to Jakarta Jmeter - Philip Bannon
Soft Test Ireland - Introduction to Jakarta Jmeter - Philip BannonDavid O'Dowd
 
Automation - Apache JMeter
Automation - Apache JMeterAutomation - Apache JMeter
Automation - Apache JMeterWira Santos
 
How to Analyze Reports in Jmeter
How to Analyze Reports in JmeterHow to Analyze Reports in Jmeter
How to Analyze Reports in JmeterViviana Lesmes
 
Scalable load testing using jmeter in cloud
Scalable load testing using jmeter in cloudScalable load testing using jmeter in cloud
Scalable load testing using jmeter in cloudVijay Rayapati
 
What Is JMeter?
What Is JMeter?What Is JMeter?
What Is JMeter?QATestLab
 
Performance Testing With Jmeter
Performance Testing With JmeterPerformance Testing With Jmeter
Performance Testing With JmeterAdam Goucher
 
Using JMeter for Performance Testing Live Streaming Applications
Using JMeter for Performance Testing Live Streaming ApplicationsUsing JMeter for Performance Testing Live Streaming Applications
Using JMeter for Performance Testing Live Streaming ApplicationsBlazeMeter
 
JMeter Post-Processors
JMeter Post-ProcessorsJMeter Post-Processors
JMeter Post-ProcessorsLoadium
 
Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeterGalih Lasahido
 
Apache JMeter - A Brief Introduction
Apache JMeter - A Brief IntroductionApache JMeter - A Brief Introduction
Apache JMeter - A Brief Introductionagilitator
 
Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeterRahul Sudame
 
JMeter, Docker sitting in a tree
JMeter, Docker sitting in a treeJMeter, Docker sitting in a tree
JMeter, Docker sitting in a treesrivaths_sankaran
 
Introduction to jmeter & how to view jmeter Test Result in Real-Time
Introduction to jmeter & how to view jmeter Test Result in Real-TimeIntroduction to jmeter & how to view jmeter Test Result in Real-Time
Introduction to jmeter & how to view jmeter Test Result in Real-TimeBugRaptors
 

What's hot (20)

Apache JMeter - A brief introduction
Apache JMeter - A brief introductionApache JMeter - A brief introduction
Apache JMeter - A brief introduction
 
"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd Session"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd Session
 
Using Jenkins and Jmeter to build a scalable Load Testing solution
Using Jenkins and Jmeter to build a scalable Load Testing solutionUsing Jenkins and Jmeter to build a scalable Load Testing solution
Using Jenkins and Jmeter to build a scalable Load Testing solution
 
Load Test Drupal Site Using JMeter and Amazon AWS
Load Test Drupal Site Using JMeter and Amazon AWSLoad Test Drupal Site Using JMeter and Amazon AWS
Load Test Drupal Site Using JMeter and Amazon AWS
 
Soft Test Ireland - Introduction to Jakarta Jmeter - Philip Bannon
Soft Test Ireland - Introduction to Jakarta Jmeter - Philip BannonSoft Test Ireland - Introduction to Jakarta Jmeter - Philip Bannon
Soft Test Ireland - Introduction to Jakarta Jmeter - Philip Bannon
 
Automation - Apache JMeter
Automation - Apache JMeterAutomation - Apache JMeter
Automation - Apache JMeter
 
How to Analyze Reports in Jmeter
How to Analyze Reports in JmeterHow to Analyze Reports in Jmeter
How to Analyze Reports in Jmeter
 
Scalable load testing using jmeter in cloud
Scalable load testing using jmeter in cloudScalable load testing using jmeter in cloud
Scalable load testing using jmeter in cloud
 
What Is JMeter?
What Is JMeter?What Is JMeter?
What Is JMeter?
 
Apache jMeter
Apache jMeterApache jMeter
Apache jMeter
 
Performance Testing With Jmeter
Performance Testing With JmeterPerformance Testing With Jmeter
Performance Testing With Jmeter
 
Load testing with J meter
Load testing with J meterLoad testing with J meter
Load testing with J meter
 
Using JMeter for Performance Testing Live Streaming Applications
Using JMeter for Performance Testing Live Streaming ApplicationsUsing JMeter for Performance Testing Live Streaming Applications
Using JMeter for Performance Testing Live Streaming Applications
 
JMeter Post-Processors
JMeter Post-ProcessorsJMeter Post-Processors
JMeter Post-Processors
 
Load testing jmeter
Load testing jmeterLoad testing jmeter
Load testing jmeter
 
Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeter
 
Apache JMeter - A Brief Introduction
Apache JMeter - A Brief IntroductionApache JMeter - A Brief Introduction
Apache JMeter - A Brief Introduction
 
Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeter
 
JMeter, Docker sitting in a tree
JMeter, Docker sitting in a treeJMeter, Docker sitting in a tree
JMeter, Docker sitting in a tree
 
Introduction to jmeter & how to view jmeter Test Result in Real-Time
Introduction to jmeter & how to view jmeter Test Result in Real-TimeIntroduction to jmeter & how to view jmeter Test Result in Real-Time
Introduction to jmeter & how to view jmeter Test Result in Real-Time
 

Similar to Best Jmeter Interview Questions- Prepared by Working Professionals

Performance testing jmeter
Performance testing jmeterPerformance testing jmeter
Performance testing jmeterBhojan Rajan
 
Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02Shivakumara .
 
Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Nitish Bhardwaj
 
Apachejmeterabriefintroduction
ApachejmeterabriefintroductionApachejmeterabriefintroduction
ApachejmeterabriefintroductionForedoomed
 
JMeter & ColdFusion
JMeter & ColdFusion JMeter & ColdFusion
JMeter & ColdFusion isummation
 
Testing - How Vital and How Easy to use
Testing - How Vital and How Easy to useTesting - How Vital and How Easy to use
Testing - How Vital and How Easy to useUma Ghotikar
 
Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meterPurna Chandar
 
Performance testing using jmeter
Performance testing using jmeterPerformance testing using jmeter
Performance testing using jmeterRachappa Bandi
 
J meter introduction
J meter introductionJ meter introduction
J meter introductionBharath Kumar
 
performancetestingjmeter-121109061704-phpapp02
performancetestingjmeter-121109061704-phpapp02performancetestingjmeter-121109061704-phpapp02
performancetestingjmeter-121109061704-phpapp02Gopi Raghavendra
 
performancetestingjmeter-121109061704-phpapp02 (1)
performancetestingjmeter-121109061704-phpapp02 (1)performancetestingjmeter-121109061704-phpapp02 (1)
performancetestingjmeter-121109061704-phpapp02 (1)QA Programmer
 
Software testing
Software testingSoftware testing
Software testingnil65
 
Perfromane Test Tool jmeter
Perfromane Test Tool jmeterPerfromane Test Tool jmeter
Perfromane Test Tool jmeterNaga Mallala
 
Server Performance by Tonny
Server Performance by TonnyServer Performance by Tonny
Server Performance by TonnyAgate Studio
 
Jmeter_Presentaion_Parag
Jmeter_Presentaion_ParagJmeter_Presentaion_Parag
Jmeter_Presentaion_ParagPARAG KHEDIKAR
 
Day1_Apache_JMeter_Overview
Day1_Apache_JMeter_OverviewDay1_Apache_JMeter_Overview
Day1_Apache_JMeter_OverviewSravanthi N
 

Similar to Best Jmeter Interview Questions- Prepared by Working Professionals (20)

JMeter Intro
JMeter IntroJMeter Intro
JMeter Intro
 
Performance testing jmeter
Performance testing jmeterPerformance testing jmeter
Performance testing jmeter
 
Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02
 
Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02
 
JMETER-SKILLWISE
JMETER-SKILLWISEJMETER-SKILLWISE
JMETER-SKILLWISE
 
Apachejmeterabriefintroduction
ApachejmeterabriefintroductionApachejmeterabriefintroduction
Apachejmeterabriefintroduction
 
JMeter & ColdFusion
JMeter & ColdFusion JMeter & ColdFusion
JMeter & ColdFusion
 
Testing - How Vital and How Easy to use
Testing - How Vital and How Easy to useTesting - How Vital and How Easy to use
Testing - How Vital and How Easy to use
 
Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meter
 
QSpiders - Presentation JMeter
QSpiders - Presentation JMeterQSpiders - Presentation JMeter
QSpiders - Presentation JMeter
 
Performance testing using jmeter
Performance testing using jmeterPerformance testing using jmeter
Performance testing using jmeter
 
J meter introduction
J meter introductionJ meter introduction
J meter introduction
 
performancetestingjmeter-121109061704-phpapp02
performancetestingjmeter-121109061704-phpapp02performancetestingjmeter-121109061704-phpapp02
performancetestingjmeter-121109061704-phpapp02
 
performancetestingjmeter-121109061704-phpapp02 (1)
performancetestingjmeter-121109061704-phpapp02 (1)performancetestingjmeter-121109061704-phpapp02 (1)
performancetestingjmeter-121109061704-phpapp02 (1)
 
Software testing
Software testingSoftware testing
Software testing
 
jmeter interview q.pdf
jmeter interview q.pdfjmeter interview q.pdf
jmeter interview q.pdf
 
Perfromane Test Tool jmeter
Perfromane Test Tool jmeterPerfromane Test Tool jmeter
Perfromane Test Tool jmeter
 
Server Performance by Tonny
Server Performance by TonnyServer Performance by Tonny
Server Performance by Tonny
 
Jmeter_Presentaion_Parag
Jmeter_Presentaion_ParagJmeter_Presentaion_Parag
Jmeter_Presentaion_Parag
 
Day1_Apache_JMeter_Overview
Day1_Apache_JMeter_OverviewDay1_Apache_JMeter_Overview
Day1_Apache_JMeter_Overview
 

Recently uploaded

Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 

Recently uploaded (20)

Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 

Best Jmeter Interview Questions- Prepared by Working Professionals

  • 1. TESTING WORLD http://www.thetestingworld.com Call/WhatsApp: 8743913121 Website : www.thetestingworld.com Skype: testingworld2014 Call or WhatsApp: +91-8743913121 Email testingworldindia@gmail.com JMeter – Interview Question http://www.thetestingworld.com/
  • 2. TESTING WORLD http://www.thetestingworld.com Call/WhatsApp: 8743913121 Trainer Profile Having more than 10 yrs industry experience. Worked on different automation tools like Selenium, QTP, LoadRunner, Jmeter, Mobile Automation, SoapUI, Big Data Testing Expertise on Unix and Shell Scripting (AWK, SED) Expertise on Big data testing (Hive, Pig, Hadoop, Sqoop, Hbase, Cassandra) Exposer to Data analysis using Python ISTQB Certified, QTP Certified, QC Certified, LoadRunner11 Certified, CMAT Certified, SoapUI NG Pro Certified Trained more than 3000 professionals in classroom and more than 10000 professionals online & self paced video courses. Running CMS www.thetestingworld.com also contributing many online blogs. Get Lifetime Access to 25+ Video Courses in just Rs 6000 ($100) Courses Include: Functional Automation Selenium(java,Python,Ruby), QTP Performance Automation Jmeter, LoadRunner, API/ Web Service Testing SoapUI, Postman, Jmeter, Rest Assured Manual Testing Database testing, backend testing using Unix and Shell Scripting for Testers Python, Ruby, Java, Groovy Test Management and tracking: JIRA, ALM Miscellaneous Mobile Automation Testing, BDD testing using Cucumber, MySQL Sample Videos: https://www.youtube.com/channel/UCsdoSHH5bucBf_wwtvWJfn Q/playlists Buy: Call or WhatsApp : +91-8743-913121 Email: testingworldindia@gmail.com You can directly do payment here: Credit and debit card payment can be done here. https://www.payumoney.com/webfronts/#/index/theTestingWorld http://www.thetestingworld.com/
  • 3. TESTING WORLD http://www.thetestingworld.com Call/WhatsApp: 8743913121 Get Lifetime Access to 25+ Video Courses in just Rs 6000 ($100) http://www.thetestingworld.com/
  • 4. TESTING WORLD http://www.thetestingworld.com Call/WhatsApp: 8743913121 QUESTION: 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 behavior and measure performance of the application. It was originally designed for testing Web Applications but has since expanded to other test functions. • Java Based Window Application. • Support many type of applications like HTTP, Web Service, LDAP, JDBC, Java, FTP etc. • Support Distributed Testing: So that we can distribute load on multiple machine, so that we can simulate load on server, network or object which are coming from different machine to implement real world scenario. • Record & Playback - Record the user activity on the browser and simulate them in web application using JMeter. QUESTION: What are the protocols supported by JMeter? ANSWER: The protocols supported by JMeter are: Web: HTTP, HTTPS sites 'web 1.0' web 2.0 (ajax, flex and flex-ws-amf) Web Services: SOAP / XML-RPC Database via JDBC drivers Directory: LDAP Messaging Oriented service via JMS Service: POP3, IMAP, SMT P FTP Service http://www.thetestingworld.com/
  • 5. TESTING WORLD http://www.thetestingworld.com Call/WhatsApp: 8743913121 QUESTION: List some of the features of JMeter. ANSWER: Following are some of the features of JMeter: • It’s an open source software. • It has simple and intuitive GUI. • JMeter can load and performance test many different server types: Web - HTTP, HTTPS, SOAP, • Database via JDBC, LDAP, JMS, Mail - POP3 • 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. • It has full Swing and lightweight component support (precompiled JAR uses packages javax.swing .* ). • JMeter store its test plans in XML format. This means you can generate a test plan using a text editor. • It's full multi-threading framework allows concurrent sampling by many threads and simultaneous sampling of different functions by separate thread groups. • It is highly extensible. • Can also be used to perform automated and functional testing of your application. QUESTION: 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. QUESTION: 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 http://www.thetestingworld.com/
  • 6. TESTING WORLD http://www.thetestingworld.com Call/WhatsApp: 8743913121 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. QUESTION: List some of the test plan elements in JMeter. ANSWER: Following is a list of some of the test plan elements: • ThreadGroup • Controllers • Listeners • Timers • Assertions • Configuration Elements • Pre-Processor Elements • Post-Processor Elements QUESTION: What is distributed load testing? How can it be achieved in JMeter? ANSWER: Distributed load testing is the process using which multiple systems can be used for simulating load of large number of users. The reason of using more than one system for load testing is the limitation of single system to generate large number of threads (users). In JMeter we can do distributed load testing using the master slave configuration. QUESTION: How can we reduce the resource requirement in JMeter? ANSWER: To make the best out of the available resources and in general as a practice, following practices should be incoroprated in the tests- • Use non-GUI mode: jmeter -n -t test.jmx -l test.jtl http://www.thetestingworld.com/
  • 7. TESTING WORLD http://www.thetestingworld.com Call/WhatsApp: 8743913121 • Use as few Listeners as possible; if using the -l flag as above they can all be deleted or disabled. • Don't use "View Results Tree" or "View Results in Table" listeners during the load test, use them only during scripting phase to debug your scripts. • 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. [The Include Controller does not help here, as it adds all the test elements in the file to the test plan.] • Don't use functional mode • Use CSV output rather than XML • Only save the data that you need • Use as few Assertions as possible QUESTION: What is Thread Group? ANSWER: Thread Group elements are the beg inning points of your test plan. As the name suggests, the thread group elements control the number of threads JMeter will use during the test. Thread group elements are the beginning points of any test plan. • All controllers and samplers must be under a thread group. • Listeners, may be placed directly under the test plan, in which case they will apply to all the thread groups. • The controls for a thread group allow you to: • Set the number of threads • Set the ramp-up period • Set the number of times to execute the test http://www.thetestingworld.com/
  • 8. TESTING WORLD http://www.thetestingworld.com Call/WhatsApp: 8743913121 QUESTION: 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: For Controller, While Controller, Loop Controller, IF Controller, Run Time Controller, Interleave Controller, Throughput Controller, Run Once Controller. QUESTION: What is Work bench? http://www.thetestingworld.com/
  • 9. TESTING WORLD http://www.thetestingworld.com Call/WhatsApp: 8743913121 ANSWER: The Workbench is simply an area to store test elements while you are in the process of constructing a test. The Workbench is a sandbox for any test or portion of a test that you are working on. When you are ready to test what you have designed in the Workbench, you can copy or move the elements into the Test Plan. It also contains Non- Test Elements Http mirror sever Http Proxy server {which is not available in the thread group & Test plan } QUESTION: What is Configuration element? ANSWER: A configuration element works closely with a Sampler Configuration elements can be used to set up defaults and variables for later use by samplers. Note that these elements are processed at the start of the scope in which they are found, i.e. before any samplers in the same scope. Its elements: • CSV Data Set Config: Used to read lines from a file, and split them into variables. • HTTP Authorization Manager : You can specify one or more user logins for web pages that are restricted using server authentication • Java Request Defaults: You can set default values for Java testing • HTTP Cookie Manager: The Cookie Manager element has two functions: o It stores and sends cookies just like a web browser. o Second, you can manually add a cookie to the Cookie Manager. However, if you do this, the cookie will be shared by all JMeter threads. • HTTP Request Defaults: This element lets you set default values that your HTTP Request controllers use. • HTTP Header Manager : The Header Manager lets you add or override HTTP request headers http://www.thetestingworld.com/
  • 10. TESTING WORLD http://www.thetestingworld.com Call/WhatsApp: 8743913121 QUESTION: 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 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 QUESTION: 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.’ QUESTION: Explain what is timer in JMeter and what are the type’s timer in JMeter? ANSWER: 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 http://www.thetestingworld.com/
  • 11. TESTING WORLD http://www.thetestingworld.com Call/WhatsApp: 8743913121 • Gaussian Random Timer • Synchronizing Timer • Uniform Random Timer and so on. QUESTION: 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: • Response Assertion • Duration Assertion • Size Assertion • XML Assertion • HTML Assertion QUESTION: Why Performance Testing is performed? ANSWER: Performance Testing is performed to evaluate application performance under some load and stress condition. It is generally measured in terms of response time for the user activity. It is designed to test the whole performance of the system at high load and stress condition. Example: Customer like to withdraw money from an ATM counter, customer inserts debit or credit card and wait for the response. If system takes more than 5 min. then according to requirements system functioning is fail. Type of Performance Testing: • Load: analogous to volume testing and determine how application deal with large amount of data. • Stress: examine application behavior under peak bursts of activity. http://www.thetestingworld.com/
  • 12. TESTING WORLD http://www.thetestingworld.com Call/WhatsApp: 8743913121 • Capacity: measure overall capacity and determine at what time response time become unacceptable. QUESTION: 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)} Training : Performance Testing using Jmeter: Call: WhatsApp: +19-8743913121 QUESTION: Mention the execution order of Test Elements? ANSWER: The test plans elements execution order is: http://www.thetestingworld.com/
  • 13. TESTING WORLD http://www.thetestingworld.com Call/WhatsApp: 8743913121 • Configuration elements • Pre-processors • Timers • Samplers • Post-processors • Assertions • Listeners QUESTION: Explain how you can capture the script of the authentication window in JMeter? ANSWER: Normally, you can capture script by recording. • First you have to Thread group in Test plan and then make HTTPProxyServer in Workbench • 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 http://www.thetestingworld.com/