Presented by,
Ms. Anjali K G
Quality Assurance Engineer, Livares Technologies
Java open source desktop application
Designed to analyze and measure performance of web applications
JMeter has friendly GUI
Platform independent
Full multithreading framework
Visualize test result
Easy installation
Support multi protocol
Record and play back
Can be integrated with selenium for automated testing
2. Introduction
❖ Java open source desktop application
❖ Designed to analyze and measure performance of web applications
❖ JMeter has friendly GUI
❖ Platform independent
❖ Full multithreading framework
❖ Visualize test result
❖ Easy installation
❖ Support multi protocol
❖ Record and play back
❖ Can be integrated with selenium for automated testing
3. Installing JMeter
Step 1: Install Java
JMeter is a pure Desktop Application. You will need to have a JVM 6 or higher. You can
always download the latest version.
Step 2: Download JMeter
Choose the binary file (either zip or tgz) to download as shown in the picture
Step 3: Install JMeter
To install JMeter, unzip the files into the directory that you want JMeter to be installed.
Step 4: Run JMeter
• You can start JMeter in three (3) modes:
• GUI Mode
• Server Mode
• Command Line Mode
4. GUI Mode
To run JMeter in GUI mode, you can run the jmeter.bat file in Windows. For Linux/Mac run
the jmeter.sh file.
5. Server Mode
Server Mode is used for distributed testing. You would use this with the client-server model.
To start the server mode, run the bat file. This is in bin/jmeter-server.bat as shown below
6. Command Line Mode
You can also run JMeter from the command line
Here is an example: jmeter -n -t "..ProjectDirectorylHome.jmx" -l "ResultsDirectory/test" -e -o "test-report/"
8. JMeter Components
There are several JMeter components that you need too know before you
can begin testing.
The most common components include:
• Thread Group
• Samplers
• Listeners
• Timers
9. Thread Groups
A Thread Group is a collection of threads.
A thread represents a user that will carry out specific actions.
Ex: Let us say John, Susan, Mary and Paul visit www.google.com. That would be four threads. JMeter will create and simulate these four
users accessing Google.
10. Samplers
Samplers inform the Thread Group (Users) of the type of request it is to make.
The requests are processed in the order they are made.
There are different request that can be made. They include: HTTP Request, FTP Request, JDBC Request,Java object request, LDAP
Request and WebService (SOAP) Request
11. Listeners
Listeners show the result of the test.
There are various Listeners that will display the results in different formats.
12. Timers
Timers add a delay between each request a user makes.
A timer makes a test more realistic as all users will not visit the site at the same time..
14. What is Performance Testing?
• Performance Testing refers to the process of determining the effectiveness of a computer/device,
network, software or application when exposed to certain conditions.
• JMeter Performance Testing includes Load Testing and Stress Testing
Load Testing
This is usually carried out to determine how the system will behave when being used by the expected
number of users The amount of users using the system would constantly be increased over a specific
time period.
Stress Testing
This is usually carried out to determine how well the system will perform if the load is beyond that which
is expected. Stress Testing tries to break the system under test by overwhelming its resources or by
taking resources away from it (in which case it is sometimes called negative testing). The purpose of this
is to ensure that the system fails and recovers gracefully.
15. Performance Testing with JMeter
Step 1. Add Thread Group
This performance test will be done on ShelterLuv using 30 Users.
• The ramp up period tells JMeter how long it should take before all the users have executed the required
action.
• The loop count states the number of times each user will repeat the action.
17. Performance Testing with JMeter
Step 3. Add Listener
The Listener will allow you to view the result of your test. For this test we will choose the Summary Report and
the Table.
18. Performance Testing with JMeter
Step 4. Run Test
Click the green button to run your test. You can view the results in the Summary report and the Table.
OR
Run JMeter from the command line
19. OUR CONTACT DETAILS
Our helpline is always open to receive any inquiry or feedback. Please feel free to contact us
Livares Technologies Pvt Ltd
5th Floor, Yamuna Building
Technopark Phase III Campus
Trivandrum, Kerala, India-695581
www.livares.com
contact@livares.com
+91-471-2710003 | +91-471-2710004
@livaresofficial
www.facebook.com/livaresofficial
ADDRESS:
EMAIL:
TELEPHONE:
WEBSITE:
20. THANK YOU FOR YOUR TIMEComing together is a beginning; keeping together is progress; working together is success.