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

PPT
Performance testing jmeter
PPTX
Performance testing using Jmeter for apps which needs authentication
PPTX
Performance testing using jmeter
PPTX
Basic of jMeter
PDF
Introduction to jmeter
PDF
Performance testing with JMeter
PPTX
Load testing jmeter
PDF
Introduction to JMeter
Performance testing jmeter
Performance testing using Jmeter for apps which needs authentication
Performance testing using jmeter
Basic of jMeter
Introduction to jmeter
Performance testing with JMeter
Load testing jmeter
Introduction to JMeter

What's hot (20)

PPT
Performance testing with Jmeter
PPT
Performance testing and reporting with JMeter
PPTX
J Meter Intro
PPT
JMeter & ColdFusion
PPTX
Load testing with J meter
PDF
Performance testing with jmeter
PDF
PPT
Jmeter From Scratch
PPTX
Introduction to blazemeter and jmeter
PPTX
Apache JMeter - A brief introduction
PDF
Jmeter Performance Testing
PPTX
Presentation on Apache Jmeter
PDF
Automation - Apache JMeter
PPTX
Load Testing and JMeter Presentation
PDF
Fundamentals Performance Testing
PDF
Performance Testing Using JMeter | Edureka
PPTX
Performance testing with Apache JMeter
PPTX
JMeter Intro
PDF
LoadRunner Performance Testing
Performance testing with Jmeter
Performance testing and reporting with JMeter
J Meter Intro
JMeter & ColdFusion
Load testing with J meter
Performance testing with jmeter
Jmeter From Scratch
Introduction to blazemeter and jmeter
Apache JMeter - A brief introduction
Jmeter Performance Testing
Presentation on Apache Jmeter
Automation - Apache JMeter
Load Testing and JMeter Presentation
Fundamentals Performance Testing
Performance Testing Using JMeter | Edureka
Performance testing with Apache JMeter
JMeter Intro
LoadRunner Performance Testing
Ad

Similar to Performance Testing With Jmeter (20)

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
PPT
Performance testing and j meter
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_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
Performance testing and j meter
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)

PPTX
Training Program for knowledge in solar cell and solar industry
PDF
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
PDF
Comparative analysis of machine learning models for fake news detection in so...
PDF
Co-training pseudo-labeling for text classification with support vector machi...
PDF
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
PDF
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
PDF
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
PPTX
SGT Report The Beast Plan and Cyberphysical Systems of Control
PDF
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
PDF
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
PPTX
agenticai-neweraofintelligence-250529192801-1b5e6870.pptx
PDF
MENA-ECEONOMIC-CONTEXT-VC MENA-ECEONOMIC
PPTX
MuleSoft-Compete-Deck for midddleware integrations
DOCX
Basics of Cloud Computing - Cloud Ecosystem
PDF
4 layer Arch & Reference Arch of IoT.pdf
PDF
Improvisation in detection of pomegranate leaf disease using transfer learni...
PDF
Data Virtualization in Action: Scaling APIs and Apps with FME
PDF
Statistics on Ai - sourced from AIPRM.pdf
PDF
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
PDF
NewMind AI Weekly Chronicles – August ’25 Week IV
Training Program for knowledge in solar cell and solar industry
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
Comparative analysis of machine learning models for fake news detection in so...
Co-training pseudo-labeling for text classification with support vector machi...
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
SGT Report The Beast Plan and Cyberphysical Systems of Control
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
agenticai-neweraofintelligence-250529192801-1b5e6870.pptx
MENA-ECEONOMIC-CONTEXT-VC MENA-ECEONOMIC
MuleSoft-Compete-Deck for midddleware integrations
Basics of Cloud Computing - Cloud Ecosystem
4 layer Arch & Reference Arch of IoT.pdf
Improvisation in detection of pomegranate leaf disease using transfer learni...
Data Virtualization in Action: Scaling APIs and Apps with FME
Statistics on Ai - sourced from AIPRM.pdf
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
NewMind AI Weekly Chronicles – August ’25 Week IV

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