SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Downloaden Sie, um offline zu lesen
Introduction to JMeter
          Magus Chen
    maguschen@gmail.com
   http://magustest.com/blog
Agenda

● Performance testing
● What is JMeter
● JMeter basic elements
● Jmeter Plugins
● Example
Performance Testing

● Performance testing is in general testing performed to
   determine how a system performs in terms of responsiveness
   and stability under a particular workload.
Performance Testing

●   Load Testing
    ○ Load testing is the simplest form of performance testing. A load test
       is usually conducted to understand the behaviour of the system under
       a specific expected load.
●   Stress testing
    ○ Stress testing is normally used to understand the upper limits of
       capacity within the system. This kind of test is done to determine the
       system's robustness in terms of extreme load
Performance Testing

●   Performance Goals
    ○ Concurrency/throughput
       ■ Transactions per second the application under test can
          handle
    ○ Server response time
       ■ Amount of time the application under test takes to
          process a request after it has received.
What is JMeter

● Apache JMeter is an Apache project that can be used as a load
   testing tool for analyzing and measuring the performance of a
   variety of services, with a focus on web applications.
JMeter basic elements

● Test Plan
● Thread Group
● Sampler
● Assertion
● Listener
● Logic Controller
● Timer
● Config Element
● Pre-Processor / Post-Processor
JMeter basic elements
Test Plan

A test plan describes a series of steps JMeter will
execute when run. A complete test plan will consist
of one or more Thread Groups, logic conrollers,
sample generating controllers, listeners, timers,
assertions, and configuration elements.
Thread Group

Thread group elements are the beginning points of
any test plan. All controllers and samplers must be
under a thread group.
Sampler

Samplers tell JMeter to send requests to a server and
wait for a response. They are processed in the order
they appear in the tree.
Assertion

Assertions allow you to assert facts about responses
received from the server being tested. Using an
assertion, you can essentially "test" that your
application is returning the results you expect it to.
Listener

Listeners provide access to the information JMeter
gathers about the test cases while JMeter runs.
Logic Controller

Logic Controllers let you customize the logic that
JMeter uses to decide when to send requests. Logic
Controllers can change the order of requests coming
from their child elements. They can modify the
requests themselves, cause JMeter to repeat
requests, etc.
Timer

The timer will cause JMeter to delay a certain
amount of time before each sampler which is in its
scope .
Config Element

A configuration element works closely with a
Sampler. Although it does not send requests (except
for HTTP Proxy Server ), it can add to or modify
requests.
Pre-Processor / Post-Processor

● A Pre-Processor executes some action prior to a
  Sampler Request being made
● A Post-Processor executes some action after a
  Sampler Request has been made
Execution Order

1. Config Element
2. Pre-Processor
3. Timer
4. Sampler
5. Post-Processor
6. Assertion
7. Listener
Jmeter Plugins

●   A plugin of Jmeter, lots of great features
    ○ Stepping Thread Group
    ○ PerfMon Metrics Collector
    ○ Response Times vs Threads
    ○ Response Times Distribution
    ○ Parameterized Controller
Example

● 30 login user threads
   ○ Ramp up: Start 3 threads every 10 seconds
   ○ Hold for 300 seconds
   ○ Stop 2 threads every 5 seconds
● 10 guest threads
   ○ Ramp up: Start 1 thread every 10 seconds
   ○ Hold for 300 seconds
   ○ Stop 1 thread every 5 seconds
Example
Target Page        Sample     Average response time   Throughtput

Guest Start page   4796       149                     10

Start page         10892      247                     23

Weitere ähnliche Inhalte

Was ist angesagt?

Performance testing using Jmeter for apps which needs authentication
Performance testing using Jmeter for apps which needs authenticationPerformance testing using Jmeter for apps which needs authentication
Performance testing using Jmeter for apps which needs authentication
Jay Jha
 
How to Analyze Reports in Jmeter
How to Analyze Reports in JmeterHow to Analyze Reports in Jmeter
How to Analyze Reports in Jmeter
Viviana Lesmes
 
LoadRunner Performance Testing
LoadRunner Performance TestingLoadRunner Performance Testing
LoadRunner Performance Testing
Atul Pant
 

Was ist angesagt? (20)

Load testing with J meter
Load testing with J meterLoad testing with J meter
Load testing with J meter
 
Load testing jmeter
Load testing jmeterLoad testing jmeter
Load testing jmeter
 
Performance testing using Jmeter for apps which needs authentication
Performance testing using Jmeter for apps which needs authenticationPerformance testing using Jmeter for apps which needs authentication
Performance testing using Jmeter for apps which needs authentication
 
Apache jMeter
Apache jMeterApache jMeter
Apache jMeter
 
Automation - Apache JMeter
Automation - Apache JMeterAutomation - Apache JMeter
Automation - Apache JMeter
 
Performance testing using jmeter
Performance testing using jmeterPerformance testing using jmeter
Performance testing using jmeter
 
JMeter
JMeterJMeter
JMeter
 
Performance testing with Jmeter
Performance testing with JmeterPerformance testing with Jmeter
Performance testing with Jmeter
 
Performance testing with Apache JMeter
Performance testing with Apache JMeterPerformance testing with Apache JMeter
Performance testing with Apache JMeter
 
Performance testing with JMeter
Performance testing with JMeterPerformance testing with JMeter
Performance testing with JMeter
 
Performance testing with jmeter
Performance testing with jmeter Performance testing with jmeter
Performance testing with jmeter
 
Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeter
 
How to Analyze Reports in Jmeter
How to Analyze Reports in JmeterHow to Analyze Reports in Jmeter
How to Analyze Reports in Jmeter
 
LoadRunner Performance Testing
LoadRunner Performance TestingLoadRunner Performance Testing
LoadRunner Performance Testing
 
Perofrmance testing and apache jmeter
Perofrmance testing and apache jmeterPerofrmance testing and apache jmeter
Perofrmance testing and apache jmeter
 
Jmeter From Scratch
Jmeter From ScratchJmeter From Scratch
Jmeter From Scratch
 
Introduction to blazemeter and jmeter
Introduction to blazemeter and jmeterIntroduction to blazemeter and jmeter
Introduction to blazemeter and jmeter
 
Performance Testing from Scratch + JMeter intro
Performance Testing from Scratch + JMeter introPerformance Testing from Scratch + JMeter intro
Performance Testing from Scratch + JMeter intro
 
JMETER-SKILLWISE
JMETER-SKILLWISEJMETER-SKILLWISE
JMETER-SKILLWISE
 
Performance Testing Using JMeter | Edureka
Performance Testing Using JMeter | EdurekaPerformance Testing Using JMeter | Edureka
Performance Testing Using JMeter | Edureka
 

Andere mochten auch

Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeter
Rahul Sudame
 
Load Testing & Apache JMeter
Load Testing & Apache JMeterLoad Testing & Apache JMeter
Load Testing & Apache JMeter
WO Community
 
Apachejmeterabriefintroduction
ApachejmeterabriefintroductionApachejmeterabriefintroduction
Apachejmeterabriefintroduction
Foredoomed
 
Apache JMeter Introduction
Apache JMeter IntroductionApache JMeter Introduction
Apache JMeter Introduction
Søren Lund
 
JMeter - Performance testing your webapp
JMeter - Performance testing your webappJMeter - Performance testing your webapp
JMeter - Performance testing your webapp
Amit Solanki
 

Andere mochten auch (18)

Introduction to Jmeter
Introduction to JmeterIntroduction to Jmeter
Introduction to Jmeter
 
"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd Session"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd Session
 
What Is JMeter?
What Is JMeter?What Is JMeter?
What Is JMeter?
 
Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeter
 
Load Testing and JMeter Presentation
Load Testing and JMeter PresentationLoad Testing and JMeter Presentation
Load Testing and JMeter Presentation
 
Jmeter
JmeterJmeter
Jmeter
 
Introduction to performance testing
Introduction to performance testingIntroduction to performance testing
Introduction to performance testing
 
Cucumber
CucumberCucumber
Cucumber
 
Load Testing & Apache JMeter
Load Testing & Apache JMeterLoad Testing & Apache JMeter
Load Testing & Apache JMeter
 
Apachejmeterabriefintroduction
ApachejmeterabriefintroductionApachejmeterabriefintroduction
Apachejmeterabriefintroduction
 
Apache JMeter Introduction
Apache JMeter IntroductionApache JMeter Introduction
Apache JMeter Introduction
 
Jmeter introduction
Jmeter introductionJmeter introduction
Jmeter introduction
 
JMeter
JMeterJMeter
JMeter
 
JMeter - Performance testing your webapp
JMeter - Performance testing your webappJMeter - Performance testing your webapp
JMeter - Performance testing your webapp
 
JMeter workshop
JMeter workshopJMeter workshop
JMeter workshop
 
Performance Engineering Basics
Performance Engineering BasicsPerformance Engineering Basics
Performance Engineering Basics
 
Cucumber - Curso de Automatización de Pruebas
Cucumber - Curso de Automatización de PruebasCucumber - Curso de Automatización de Pruebas
Cucumber - Curso de Automatización de Pruebas
 
Apache JMeter - A Brief Introduction
Apache JMeter - A Brief IntroductionApache JMeter - A Brief Introduction
Apache JMeter - A Brief Introduction
 

Ähnlich wie Introduction to jmeter

Software testing
Software testingSoftware testing
Software testing
nil65
 
Jmeter_Presentaion_Parag
Jmeter_Presentaion_ParagJmeter_Presentaion_Parag
Jmeter_Presentaion_Parag
PARAG KHEDIKAR
 
Jmeter load testing
Jmeter load testingJmeter load testing
Jmeter load testing
Ali Raza
 
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
David O'Dowd
 

Ähnlich wie Introduction to jmeter (20)

Jmeter Walkthrough
Jmeter WalkthroughJmeter Walkthrough
Jmeter Walkthrough
 
Test talk academy apachejmeter-120521121306-phpapp02
Test talk academy apachejmeter-120521121306-phpapp02Test talk academy apachejmeter-120521121306-phpapp02
Test talk academy apachejmeter-120521121306-phpapp02
 
Day1 JMeter_training_overview
Day1 JMeter_training_overviewDay1 JMeter_training_overview
Day1 JMeter_training_overview
 
Day1_Apache_JMeter_Overview
Day1_Apache_JMeter_OverviewDay1_Apache_JMeter_Overview
Day1_Apache_JMeter_Overview
 
J meter introduction
J meter introductionJ meter introduction
J meter introduction
 
JMeter Intro
JMeter IntroJMeter Intro
JMeter Intro
 
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
 
JMeter.ppt
JMeter.pptJMeter.ppt
JMeter.ppt
 
Software testing
Software testingSoftware testing
Software testing
 
Apache J meter
Apache J meterApache J meter
Apache J meter
 
Automation for developers
Automation for developersAutomation for developers
Automation for developers
 
Jmeter.ppt
Jmeter.pptJmeter.ppt
Jmeter.ppt
 
Jmeter_Presentaion_Parag
Jmeter_Presentaion_ParagJmeter_Presentaion_Parag
Jmeter_Presentaion_Parag
 
Day4_Part 1_Apache_JMeter_Performance_Test_Execution_GUI_Mode
Day4_Part 1_Apache_JMeter_Performance_Test_Execution_GUI_ModeDay4_Part 1_Apache_JMeter_Performance_Test_Execution_GUI_Mode
Day4_Part 1_Apache_JMeter_Performance_Test_Execution_GUI_Mode
 
Perfromane Test Tool jmeter
Perfromane Test Tool jmeterPerfromane Test Tool jmeter
Perfromane Test Tool jmeter
 
Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meter
 
JMeter
JMeterJMeter
JMeter
 
Jmeter load testing
Jmeter load testingJmeter load testing
Jmeter load testing
 
Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02
 
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
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Kürzlich hochgeladen (20)

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

Introduction to jmeter

  • 1. Introduction to JMeter Magus Chen maguschen@gmail.com http://magustest.com/blog
  • 2. Agenda ● Performance testing ● What is JMeter ● JMeter basic elements ● Jmeter Plugins ● Example
  • 3. Performance Testing ● Performance testing is in general testing performed to determine how a system performs in terms of responsiveness and stability under a particular workload.
  • 4. Performance Testing ● Load Testing ○ Load testing is the simplest form of performance testing. A load test is usually conducted to understand the behaviour of the system under a specific expected load. ● Stress testing ○ Stress testing is normally used to understand the upper limits of capacity within the system. This kind of test is done to determine the system's robustness in terms of extreme load
  • 5. Performance Testing ● Performance Goals ○ Concurrency/throughput ■ Transactions per second the application under test can handle ○ Server response time ■ Amount of time the application under test takes to process a request after it has received.
  • 6. What is JMeter ● Apache JMeter is an Apache project that can be used as a load testing tool for analyzing and measuring the performance of a variety of services, with a focus on web applications.
  • 7. JMeter basic elements ● Test Plan ● Thread Group ● Sampler ● Assertion ● Listener ● Logic Controller ● Timer ● Config Element ● Pre-Processor / Post-Processor
  • 9. Test Plan A test plan describes a series of steps JMeter will execute when run. A complete test plan will consist of one or more Thread Groups, logic conrollers, sample generating controllers, listeners, timers, assertions, and configuration elements.
  • 10. Thread Group Thread group elements are the beginning points of any test plan. All controllers and samplers must be under a thread group.
  • 11. Sampler Samplers tell JMeter to send requests to a server and wait for a response. They are processed in the order they appear in the tree.
  • 12. Assertion Assertions allow you to assert facts about responses received from the server being tested. Using an assertion, you can essentially "test" that your application is returning the results you expect it to.
  • 13. Listener Listeners provide access to the information JMeter gathers about the test cases while JMeter runs.
  • 14. Logic Controller Logic Controllers let you customize the logic that JMeter uses to decide when to send requests. Logic Controllers can change the order of requests coming from their child elements. They can modify the requests themselves, cause JMeter to repeat requests, etc.
  • 15. Timer The timer will cause JMeter to delay a certain amount of time before each sampler which is in its scope .
  • 16. Config Element A configuration element works closely with a Sampler. Although it does not send requests (except for HTTP Proxy Server ), it can add to or modify requests.
  • 17. Pre-Processor / Post-Processor ● A Pre-Processor executes some action prior to a Sampler Request being made ● A Post-Processor executes some action after a Sampler Request has been made
  • 18. Execution Order 1. Config Element 2. Pre-Processor 3. Timer 4. Sampler 5. Post-Processor 6. Assertion 7. Listener
  • 19. Jmeter Plugins ● A plugin of Jmeter, lots of great features ○ Stepping Thread Group ○ PerfMon Metrics Collector ○ Response Times vs Threads ○ Response Times Distribution ○ Parameterized Controller
  • 20. Example ● 30 login user threads ○ Ramp up: Start 3 threads every 10 seconds ○ Hold for 300 seconds ○ Stop 2 threads every 5 seconds ● 10 guest threads ○ Ramp up: Start 1 thread every 10 seconds ○ Hold for 300 seconds ○ Stop 1 thread every 5 seconds
  • 21. Example Target Page Sample Average response time Throughtput Guest Start page 4796 149 10 Start page 10892 247 23