Professional Documents
Culture Documents
5 JMeter
5 JMeter
•Performance Testing Tools : Jmeter, Open STA, Load Runner, Web Load
etc.
Goal
•Speed - Determines whether the application responds quickly wrt Response Time
•Scalability - Determines maximum user load the software application can handle.
• Testing to get the breakeven point where system starts downgrading it’s
performance.
• To test the system by constantly and steadily increasing the load on the system till
the time it reaches the threshold limit.
• The primary goal of load testing is to define the maximum amount of work a system
can handle without significant performance degradation.
• To monitor the response time and staying power of application when system is
performing well under heavy load.
•to find the upper limit capacity of the system and also to determine how the system
performs if the current load goes well above the expected maximum.
Stress Testing
does not break the system like load testing but increasing
the load on the server
JMeter
•Apache Jmeter is a open source performance testing tool.
•To analyze and measure the performance of web application or a variety of services
against heavy load, multiple and concurrent user traffic.
•JMeter originally is used for testing Web Application or FTP application. also, it is used
for a functional test, database server test etc.
•JDK Environment, Windows/Linux
Thread Group
Loop count : If I set it to 1 , then my 5 requests will run for 1 time only. If set to
infinite , then my 5 requests will run for infinite time.
Sampler = actual server that you want to check. It could be http server / jdbc
server / FTP server
1. FTP Request :
◦ To performance test an FTP server
◦ FTP request sampler
◦ Get/Put File
2. HTTP Request : This sampler lets to send an
HTTP/HTTPS request to a web server.
3. JDBC Request : This sampler lets to execute Database testing. It sends a JDBC Request (an
SQL query) to a database.
Listeners
shows the results of the test execution in a different format such as a tree, table, graph or
log file
Assertion
Assertion help verifies that server under test returns the expected results.
Response Assertion
add pattern strings to be compared against various fields of the server response.
Duration Assertion
each server response was received within a given amount of time.
Any response that takes longer than the given number of milliseconds (specified by the user)
is marked as a failed response.
Size Assertion
The Size Assertion tests that each server response contains the expected number of byte in it.
specify that the size be equal to, greater than, less than, or not equal to a given number of
bytes.
Controller
•Logic Controller to handle the order of processing Samplers/Requests in a Thread.
•Logic Controllers will decide “When & How” to send a request to a web server.
1. Simple Controller :
Simple Controller is just a container for user request.
2. Module Controller :
Module controller adds modularity to the JMeter Test Plan.
To construct test plan consists of small units of functionality
3. Loop Controller:
the user request run a specified number of times or run forever.
4.Random Controller :
samplers/requests to run in random order in each loop
Master