SlideShare a Scribd company logo
Performance Testing with JMeter Adam Goucher http://adam.goucher.ca [email_address]
Lecture Objective Give students an introduction to performance testing concepts and implementation using JMeter.
Definitions
Performance Testing Performance testing determines or validates the speed of the AUT (X per T)
Load Testing Load testing identifies the maximum operating capacity of an application as well as any bottlenecks that might interfere with its operating at capacity (Or, when does it blow up?)
Stress Testing Stress testing is focused on determining an application’s robustness, availability, and reliability under extreme conditions  heavy loads high concurrency limited computational resources
Scalability Scalability testing determines or validates whether adding another Y resource (database, memory, disk, CPU, etc) increases speed of X proportionally
Pre-testing Activities
Design Review The cheapest performance issues to address are ones that are never put into the code. Testers should review the application design to see if there are any obvious potential performance problems.
Environment Prep - Network Performance testing is often a network intensive activity which can affect others in the organization Testing should be done on a separate, segregated network.
Environment Prep - Hardware Depending on what your goals are for your testing, different hardware is appropriate for both the AUT and load generators. Testers should acquire and configure the correct hardware.
Environment Prep - Software Generating load is not as easy as it sounds. Testers should acquire or create load generators and configure them for their desired goal
Mission Performance testing without a Mission is just throwing load at a server to see what is going to happen. Testers should determine Why they are doing their testing.
Audience Determining who you are generating numbers for, will largely dictate what you do Development Marketing Operations
Metrics Performance testing is all about numbers and metrics. Testers should determine which metrics they are concerned about and how to get them.
Give Warning Let anyone who might be affected by your testing advance warning.
Generic Testing Steps Create / Record Test Add measurement hooks Data drive script Add logging Build workload profile Execute test
JMeter
JMeter JMeter is a free, open-source performance measurement tool written in Java
Thread Groups The Thread Group is the basic element of a JMeter Test Plan Each thread represents a user    setting a thread group to 1000 simulates 1000 users
Samplers Samplers do the actual work in JMeter and interact with the server you are loading There are a number Samplers in JMeter by default. For web testing, use ‘HTTP Request'
Listeners The information produced by Samplers is consumed by Listeners Popular listeners are: Graph Results View Results Tree Simple Data Writer
Logic Controllers Logic Controllers determine the order that Samplers are processed More complex scripts will make use of Loops Interleave Random If
Assertions A test isn’t a test unless it checks something. Assertions are what do the checking For web applications, these are the useful ones Response Duration HTML Assertion
Configuration Elements Configuration Elements set default values for other parts of the Test Plan as well as configure variables CSV Data Set Config allows you do to DDT within JMeter HTTP Cookie Manager will automatically intercept and sent cookies with requests HTTP Request Defaults saves you time when doing lots of HTTP Samplers
Variables In JMeter, you can reference variables as such ${VARIABLE}
Batch JMeter can run in a non-gui mode to save resources on the load generating machines
Recording There is a way to record tests (as in LoadRunner) but I find it easier to build scripts one element at a time

More Related Content

PPTX
Presentation on Apache Jmeter
PPTX
J Meter Intro
PPTX
Performance testing using jmeter
PDF
Introduction to jmeter
PPT
Performance testing jmeter
PPTX
Load testing with J meter
PPTX
Basic of jMeter
PDF
Introduction to JMeter
Presentation on Apache Jmeter
J Meter Intro
Performance testing using jmeter
Introduction to jmeter
Performance testing jmeter
Load testing with J meter
Basic of jMeter
Introduction to JMeter

What's hot (20)

PPT
Jmeter From Scratch
PPTX
Performance testing with Apache JMeter
PDF
Automation - Apache JMeter
PDF
PPTX
Load testing jmeter
PPT
Performance testing and j meter
PPTX
Performance testing using Jmeter for apps which needs authentication
PDF
Performance Testing Using JMeter | Edureka
PDF
JMeter - Performance testing your webapp
PDF
Performance testing with JMeter
PPT
Performance testing and reporting with JMeter
PPTX
Apache JMeter - A brief introduction
PPTX
PPT
Performance testing : An Overview
PPTX
How to Analyze Reports in Jmeter
PDF
Jmeter Performance Testing
PPT
Performance testing with Jmeter
PPTX
Automation Framework Presentation
PDF
Performance testing with jmeter
Jmeter From Scratch
Performance testing with Apache JMeter
Automation - Apache JMeter
Load testing jmeter
Performance testing and j meter
Performance testing using Jmeter for apps which needs authentication
Performance Testing Using JMeter | Edureka
JMeter - Performance testing your webapp
Performance testing with JMeter
Performance testing and reporting with JMeter
Apache JMeter - A brief introduction
Performance testing : An Overview
How to Analyze Reports in Jmeter
Jmeter Performance Testing
Performance testing with Jmeter
Automation Framework Presentation
Performance testing with jmeter
Ad

Similar to Performance Testing With Jmeter (20)

PPTX
JMeter Intro
PPT
JMeter_introduction_Final.ppt for jmeter
PDF
Performancetestingjmeter 131210111657-phpapp02
ODP
Soft Test Ireland - Introduction to Jakarta Jmeter - Philip Bannon
PPTX
PPT
Load Test Drupal Site Using JMeter and Amazon AWS
PPTX
JMETER-SKILLWISE
PPTX
Perofrmance testing and apache jmeter
PPTX
How to use Jmeter for performance testing
PDF
Performancetestingjmeter 121109061704-phpapp02
PPTX
J meter
PPTX
JMeter_ Cubet Seminar ppt
PDF
This Is How We Test Our Performance With JMeter
PPTX
J meter introduction
PPTX
Test talk academy apachejmeter-120521121306-phpapp02
PPT
J Meter Presentation 4
PPTX
JMeter Training in Delhi
PPTX
Jmeter_Presentaion_Parag
PPT
Apachejmeterabriefintroduction
JMeter Intro
JMeter_introduction_Final.ppt for jmeter
Performancetestingjmeter 131210111657-phpapp02
Soft Test Ireland - Introduction to Jakarta Jmeter - Philip Bannon
Load Test Drupal Site Using JMeter and Amazon AWS
JMETER-SKILLWISE
Perofrmance testing and apache jmeter
How to use Jmeter for performance testing
Performancetestingjmeter 121109061704-phpapp02
J meter
JMeter_ Cubet Seminar ppt
This Is How We Test Our Performance With JMeter
J meter introduction
Test talk academy apachejmeter-120521121306-phpapp02
J Meter Presentation 4
JMeter Training in Delhi
Jmeter_Presentaion_Parag
Apachejmeterabriefintroduction
Ad

More from Adam Goucher (20)

PDF
Lightsabers, Time Machines and other Automation Heuristics
PDF
SeleniumConf London 2019 - "Part 3: Practice what you Preach"
PDF
Is your Automation Infrastructure ‘Well Architected’?
PDF
Your Job Is To Collect Stories
PDF
[Automation] Trick-or-Treat Style
KEY
Proxy and Executor
PDF
Maintainable Automation FTW
PDF
Selenium Page Objects101
KEY
Selenium IDE - The future if plugin-y
PDF
You're doing it wrong
PDF
Namesmatter
PDF
Everything I learned about Agile I learned from Pirates
PDF
Agile Test Case Management
PDF
Mitigation
PDF
The Many Hats of a Tester
PDF
Testing inspiration
PDF
Archetypes
PDF
Agile Hats Art Show
PDF
Quality through the lens of Astrophysics
PDF
Legend of Zealot Anarchist Robot
Lightsabers, Time Machines and other Automation Heuristics
SeleniumConf London 2019 - "Part 3: Practice what you Preach"
Is your Automation Infrastructure ‘Well Architected’?
Your Job Is To Collect Stories
[Automation] Trick-or-Treat Style
Proxy and Executor
Maintainable Automation FTW
Selenium Page Objects101
Selenium IDE - The future if plugin-y
You're doing it wrong
Namesmatter
Everything I learned about Agile I learned from Pirates
Agile Test Case Management
Mitigation
The Many Hats of a Tester
Testing inspiration
Archetypes
Agile Hats Art Show
Quality through the lens of Astrophysics
Legend of Zealot Anarchist Robot

Recently uploaded (20)

PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Machine learning based COVID-19 study performance prediction
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Unlocking AI with Model Context Protocol (MCP)
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Spectral efficient network and resource selection model in 5G networks
Advanced methodologies resolving dimensionality complications for autism neur...
Per capita expenditure prediction using model stacking based on satellite ima...
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Digital-Transformation-Roadmap-for-Companies.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
cuic standard and advanced reporting.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
The Rise and Fall of 3GPP – Time for a Sabbatical?
Machine learning based COVID-19 study performance prediction
MIND Revenue Release Quarter 2 2025 Press Release
Encapsulation_ Review paper, used for researhc scholars
Agricultural_Statistics_at_a_Glance_2022_0.pdf

Performance Testing With Jmeter

  • 1. Performance Testing with JMeter Adam Goucher http://adam.goucher.ca [email_address]
  • 2. Lecture Objective Give students an introduction to performance testing concepts and implementation using JMeter.
  • 4. Performance Testing Performance testing determines or validates the speed of the AUT (X per T)
  • 5. Load Testing Load testing identifies the maximum operating capacity of an application as well as any bottlenecks that might interfere with its operating at capacity (Or, when does it blow up?)
  • 6. Stress Testing Stress testing is focused on determining an application’s robustness, availability, and reliability under extreme conditions heavy loads high concurrency limited computational resources
  • 7. Scalability Scalability testing determines or validates whether adding another Y resource (database, memory, disk, CPU, etc) increases speed of X proportionally
  • 9. Design Review The cheapest performance issues to address are ones that are never put into the code. Testers should review the application design to see if there are any obvious potential performance problems.
  • 10. Environment Prep - Network Performance testing is often a network intensive activity which can affect others in the organization Testing should be done on a separate, segregated network.
  • 11. Environment Prep - Hardware Depending on what your goals are for your testing, different hardware is appropriate for both the AUT and load generators. Testers should acquire and configure the correct hardware.
  • 12. Environment Prep - Software Generating load is not as easy as it sounds. Testers should acquire or create load generators and configure them for their desired goal
  • 13. Mission Performance testing without a Mission is just throwing load at a server to see what is going to happen. Testers should determine Why they are doing their testing.
  • 14. Audience Determining who you are generating numbers for, will largely dictate what you do Development Marketing Operations
  • 15. Metrics Performance testing is all about numbers and metrics. Testers should determine which metrics they are concerned about and how to get them.
  • 16. Give Warning Let anyone who might be affected by your testing advance warning.
  • 17. Generic Testing Steps Create / Record Test Add measurement hooks Data drive script Add logging Build workload profile Execute test
  • 19. JMeter JMeter is a free, open-source performance measurement tool written in Java
  • 20. Thread Groups The Thread Group is the basic element of a JMeter Test Plan Each thread represents a user  setting a thread group to 1000 simulates 1000 users
  • 21. Samplers Samplers do the actual work in JMeter and interact with the server you are loading There are a number Samplers in JMeter by default. For web testing, use ‘HTTP Request'
  • 22. Listeners The information produced by Samplers is consumed by Listeners Popular listeners are: Graph Results View Results Tree Simple Data Writer
  • 23. Logic Controllers Logic Controllers determine the order that Samplers are processed More complex scripts will make use of Loops Interleave Random If
  • 24. Assertions A test isn’t a test unless it checks something. Assertions are what do the checking For web applications, these are the useful ones Response Duration HTML Assertion
  • 25. Configuration Elements Configuration Elements set default values for other parts of the Test Plan as well as configure variables CSV Data Set Config allows you do to DDT within JMeter HTTP Cookie Manager will automatically intercept and sent cookies with requests HTTP Request Defaults saves you time when doing lots of HTTP Samplers
  • 26. Variables In JMeter, you can reference variables as such ${VARIABLE}
  • 27. Batch JMeter can run in a non-gui mode to save resources on the load generating machines
  • 28. Recording There is a way to record tests (as in LoadRunner) but I find it easier to build scripts one element at a time