SlideShare a Scribd company logo
1 of 24
By
Bharath kumar.M
J Meter introduction:
• It is a open source software from Java to load test functional
behavior and measure performance. Testing a web application
against heavy load, multiple and concurrent user traffic.
• For example: one day, your boss asks you to do performance
testing of www.google.com for 100 users. What would you
do?
• Answer is J-meter
• It will stimulate multiple user at a time as per the request
• JMeter originally is used for testing Web Application or FTP
application. Nowadays, it is used for functional test, database
server test etc.
Why JMeter ?
1. JMeter is totally
free, allows developer
use the source code for
the development
2. JMeter is 100% pure Java
desktop application. So it
can run on multiple
platforms
3. JMeter supports many
testing strategies such as
Load Testing, Distributed
Testing, and Functional
Testing.
How does JMeter work ?
Architecture of J-meter
Thread Group
• Thread Groups is a collection of Threads. Each
thread represents one user using the
application under test. Basically each Thread
simulates one real user request to the server.
• The controls for a thread group allow you to
Set the number of threads for each group.
• For example, if you set the number of threads
as 100; JMeter will create and simulate 100
user requests to the server under test
Thread Group
Samplers
• As we know already that JMeter supports testing HTTP, FTP , JDBC and many other
protocols.
• We already know that Thread Groups simulate user request to the server
• But how does a Thread Group know which type of requests (HTTP, FTP etc.) it
needs to make ?
• The answer is Samplers
• The user request could be FTP Request, HTTP Request, JDBC Request…Etc.
FTP request:
• You can use FTP request sampler to perform test an FTP server
• This controller lets you send an FTP “download file” or “upload file”
request to an FTP server.
HTTP request:
• This sampler lets you send an HTTP/HTTPS request to a web
server.
• JMeter send a HTTP request to Google website and retrieve
HTML files or image from this website.
JDBC request:
• It sends a JDBC Request (an SQL query) to a database.
Logic Controllers
• Logic Controllers let you define the order of processing request in a Thread. For
example, you can use Random Controllers to send HTTP requests to the server
randomly.
• Logic Controllers determine the order in which user request are executed.
• commonly used Logic controllers are
Recording Controller
JMeter can record your testing steps; recording controller is a place holder to
store these recording steps.
Simple Controller
Simple Controller is just a container for user request.
Loop Controller
makes the user request run specified number of times
Listeners
• A listener is a component that shows the results of the samples.
• The results can be shown in a tree, tables, graphs or simply written to a log file.
Configuration Elements
• set up defaults and variables for later use by samplers.
• Suppose you want to test a website for 100 users signing-in with different
credentials.
• You do not need to record the script 100 times! You can parameterization the
script to enter different login credentials.
CSV Data Set Configuration
HTTP Cookie Manager
• HTTP Cookie Manager also has the same feature like a web browser.
• If you have an HTTP Request and the response contains a cookie, the Cookie
Manager automatically stores that cookie and will use it for all future
requests to that particular web site.
HTTP request default
• This element lets you set default values that your HTTP Request controllers
use.
Login Configuration Element
• The Login Configuration Element lets you add or override username and
password settings in samplers.
Assertions
• Assertion help verify that your server under test returns the expected
results.
• Commonly used Assertion in JMeter:
1.Response Assertion
2.Duration Assertion
3.Size Assertion
4.XML Assertion
5.HTML Assertion
Response Assertion
• The response assertion lets you add pattern strings to be compared against
various fields of the server response.
Duration Assertion
• The Duration Assertion tests that 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. You can specify that the size be equal to, greater than, less than, or
not equal to a given number of bytes.
Timers
• JMeter sends the request without pausing between each request. In that case,
JMeter could overwhelm your test server by making too many requests in a
short amount of times.
• To overcome this we are using timers
• common types of timer in JMeter
Constant Timer:
• Constant timer delays each user request for the same amount of time
Gaussian Random Timer:
• Gaussian random timer delays each user request for a random amount
of time
Total Time delay
• Other Timer used in J-meter is Ben shell timer, BSF Timer, JSR223, Uniform
random timer
Processor
• Processor is used to modify the Samplers in their scope.
There are 2 Types of processors:
1.Pre-processor
2.Post-processor
Pre-processor
• Pre-processor executes some action before making Sampler Request.
• A Pre-Processor is most often used to modify the settings of a Sample
Request just before it runs, or to update variables that aren't extracted from
response text.
Post-processor
• Post-processor executes some action after making a Sampler Request.
• A Post-Processor is most often used to process the response data,
often to extract values from it.
J meter : Performance Testing
• Performance testing is crucial to determine that the web application under test will
satisfy high load requirements. It can be used to analyze overall server performance
under heavy load.
• J meter performance testing includes both Load test and Stress Test
• Load Testing Help us to
study the behavior of the
application under various
loads
• The main parameter to
focus is response time.
• Stress Testing Help us to
observe the stability of the
application.
• The main parameter to
focus is throughput.
Sample Performance Test Plan in J meter
• performance analysis of Google.com for 10 users
• Before testing the performance of target web application, we should determine-
Normal Load: Average number of users visit your website
Heavy Load: The maximum number of users visit your website
What is your target in this test?
• Roadmap of this practical example
Step 1) Add Thread Group
Right click on the Test Plan and add a new thread group
Add –> Threads (Users) –> Thread Group
In Thread Group control panel, enter Thread Properties
A. Number of threads
B. Ramp-up periods
C. Loop count
Step 2) Adding J Meter elements
This element can be added by right-clicking on the Thread Group and selecting
Add –> Configuration Element –> HTTP Request Defaults.
Enter the website you want to test
HTTP Request
Right-click on Thread Group and select
Add –> Sampler –> HTTP Request
J Meter will create the URL request to Google server
Step 3) Adding Graph result
J Meter can show the test result in Graph format.
Add –> Listener –> Graph Results
Step 4) Run Test and get the test result
• Press Run button (Ctrl + R) on Toolbar to start the testing process.
• You will see the test result display on Graph at the real time.
Test Result will look like
THANK U 

More Related Content

What's hot

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 authenticationJay Jha
 
Performance testing with Apache JMeter
Performance testing with Apache JMeterPerformance testing with Apache JMeter
Performance testing with Apache JMeterRedBlackTree
 
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 AWSVladimir Ilic
 
JMeter & ColdFusion
JMeter & ColdFusion JMeter & ColdFusion
JMeter & ColdFusion isummation
 
Jmeter vs loadrunner vs neoload
Jmeter vs loadrunner vs neoloadJmeter vs loadrunner vs neoload
Jmeter vs loadrunner vs neoloadpratik mohite
 
Basic of jMeter
Basic of jMeter Basic of jMeter
Basic of jMeter Shub
 
How to Simplify Load Testing: JMeter and Beyond
How to Simplify Load Testing: JMeter and BeyondHow to Simplify Load Testing: JMeter and Beyond
How to Simplify Load Testing: JMeter and BeyondAndrey Pokhilko
 
Performance Testing With Jmeter
Performance Testing With JmeterPerformance Testing With Jmeter
Performance Testing With JmeterAdam Goucher
 
Introduction to jmeter
Introduction to jmeterIntroduction to jmeter
Introduction to jmetertest test
 
Performance Testing - Apache Benchmark, JMeter
Performance Testing  - Apache Benchmark, JMeterPerformance Testing  - Apache Benchmark, JMeter
Performance Testing - Apache Benchmark, JMeterAntoni Orfin
 
Testing Soap/Rest Web Services with JMeter
Testing Soap/Rest Web Services with JMeterTesting Soap/Rest Web Services with JMeter
Testing Soap/Rest Web Services with JMeterBlazeMeter
 
Performance testing with 100,000 concurrent users in AWS
Performance testing with 100,000 concurrent users in AWSPerformance testing with 100,000 concurrent users in AWS
Performance testing with 100,000 concurrent users in AWSMatthias Matook
 
Introduction to blazemeter and jmeter
Introduction to blazemeter and jmeterIntroduction to blazemeter and jmeter
Introduction to blazemeter and jmeterb4usolution .
 
Load Testing and JMeter Presentation
Load Testing and JMeter PresentationLoad Testing and JMeter Presentation
Load Testing and JMeter PresentationNeill Lima
 
How to Analyze Reports in Jmeter
How to Analyze Reports in JmeterHow to Analyze Reports in Jmeter
How to Analyze Reports in JmeterViviana Lesmes
 

What's hot (20)

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
 
Performance testing with Apache JMeter
Performance testing with Apache JMeterPerformance testing with Apache JMeter
Performance testing with Apache JMeter
 
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-SKILLWISE
JMETER-SKILLWISEJMETER-SKILLWISE
JMETER-SKILLWISE
 
JMeter & ColdFusion
JMeter & ColdFusion JMeter & ColdFusion
JMeter & ColdFusion
 
J Meter Intro
J Meter IntroJ Meter Intro
J Meter Intro
 
Jmeter vs loadrunner vs neoload
Jmeter vs loadrunner vs neoloadJmeter vs loadrunner vs neoload
Jmeter vs loadrunner vs neoload
 
JMeter_ Cubet Seminar ppt
JMeter_ Cubet Seminar pptJMeter_ Cubet Seminar ppt
JMeter_ Cubet Seminar ppt
 
Basic of jMeter
Basic of jMeter Basic of jMeter
Basic of jMeter
 
How to Simplify Load Testing: JMeter and Beyond
How to Simplify Load Testing: JMeter and BeyondHow to Simplify Load Testing: JMeter and Beyond
How to Simplify Load Testing: JMeter and Beyond
 
Performance Testing With Jmeter
Performance Testing With JmeterPerformance Testing With Jmeter
Performance Testing With Jmeter
 
Introduction to jmeter
Introduction to jmeterIntroduction to jmeter
Introduction to jmeter
 
Apache jMeter
Apache jMeterApache jMeter
Apache jMeter
 
Performance Testing - Apache Benchmark, JMeter
Performance Testing  - Apache Benchmark, JMeterPerformance Testing  - Apache Benchmark, JMeter
Performance Testing - Apache Benchmark, JMeter
 
Testing Soap/Rest Web Services with JMeter
Testing Soap/Rest Web Services with JMeterTesting Soap/Rest Web Services with JMeter
Testing Soap/Rest Web Services with JMeter
 
Load testing jmeter
Load testing jmeterLoad testing jmeter
Load testing jmeter
 
Performance testing with 100,000 concurrent users in AWS
Performance testing with 100,000 concurrent users in AWSPerformance testing with 100,000 concurrent users in AWS
Performance testing with 100,000 concurrent users in AWS
 
Introduction to blazemeter and jmeter
Introduction to blazemeter and jmeterIntroduction to blazemeter and jmeter
Introduction to blazemeter and jmeter
 
Load Testing and JMeter Presentation
Load Testing and JMeter PresentationLoad Testing and JMeter Presentation
Load Testing and JMeter Presentation
 
How to Analyze Reports in Jmeter
How to Analyze Reports in JmeterHow to Analyze Reports in Jmeter
How to Analyze Reports in Jmeter
 

Similar to J meter introduction

Performance testing with Jmeter
Performance testing with JmeterPerformance testing with Jmeter
Performance testing with JmeterPrashanth Kumar
 
Test talk academy apachejmeter-120521121306-phpapp02
Test talk academy apachejmeter-120521121306-phpapp02Test talk academy apachejmeter-120521121306-phpapp02
Test talk academy apachejmeter-120521121306-phpapp02veeru madduri
 
Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Nitish Bhardwaj
 
Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02Shivakumara .
 
"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd Session"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd SessionTharinda Liyanage
 
Jmeter_Presentaion_Parag
Jmeter_Presentaion_ParagJmeter_Presentaion_Parag
Jmeter_Presentaion_ParagPARAG KHEDIKAR
 
Best Jmeter Interview Questions- Prepared by Working Professionals
Best Jmeter Interview Questions- Prepared by Working ProfessionalsBest Jmeter Interview Questions- Prepared by Working Professionals
Best Jmeter Interview Questions- Prepared by Working ProfessionalsTesting World
 
Server Performance by Tonny
Server Performance by TonnyServer Performance by Tonny
Server Performance by TonnyAgate Studio
 
Automation - Apache JMeter
Automation - Apache JMeterAutomation - Apache JMeter
Automation - Apache JMeterWira Santos
 
Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeterGalih Lasahido
 
Apache JMeter - A brief introduction
Apache JMeter - A brief introductionApache JMeter - A brief introduction
Apache JMeter - A brief introductionsilenceIT Inc.
 
Perfromane Test Tool jmeter
Perfromane Test Tool jmeterPerfromane Test Tool jmeter
Perfromane Test Tool jmeterNaga Mallala
 
Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meterPurna Chandar
 
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 BannonDavid O'Dowd
 

Similar to J meter introduction (20)

J meter
J meterJ meter
J meter
 
Performance testing with Jmeter
Performance testing with JmeterPerformance testing with Jmeter
Performance testing with Jmeter
 
JMeter
JMeterJMeter
JMeter
 
JMeter Intro
JMeter IntroJMeter Intro
JMeter Intro
 
Test talk academy apachejmeter-120521121306-phpapp02
Test talk academy apachejmeter-120521121306-phpapp02Test talk academy apachejmeter-120521121306-phpapp02
Test talk academy apachejmeter-120521121306-phpapp02
 
Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02
 
Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02
 
"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd Session"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd Session
 
Diesel load testing tool
Diesel load testing toolDiesel load testing tool
Diesel load testing tool
 
JMeter.ppt
JMeter.pptJMeter.ppt
JMeter.ppt
 
Jmeter_Presentaion_Parag
Jmeter_Presentaion_ParagJmeter_Presentaion_Parag
Jmeter_Presentaion_Parag
 
Best Jmeter Interview Questions- Prepared by Working Professionals
Best Jmeter Interview Questions- Prepared by Working ProfessionalsBest Jmeter Interview Questions- Prepared by Working Professionals
Best Jmeter Interview Questions- Prepared by Working Professionals
 
Server Performance by Tonny
Server Performance by TonnyServer Performance by Tonny
Server Performance by Tonny
 
Automation - Apache JMeter
Automation - Apache JMeterAutomation - Apache JMeter
Automation - Apache JMeter
 
Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeter
 
Apache JMeter - A brief introduction
Apache JMeter - A brief introductionApache JMeter - A brief introduction
Apache JMeter - A brief introduction
 
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
 
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
 
Jmeter Walkthrough
Jmeter WalkthroughJmeter Walkthrough
Jmeter Walkthrough
 

Recently uploaded

Understanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM ArchitectureUnderstanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM Architecturerahul_net
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsChristian Birchler
 
SAM Training Session - How to use EXCEL ?
SAM Training Session - How to use EXCEL ?SAM Training Session - How to use EXCEL ?
SAM Training Session - How to use EXCEL ?Alexandre Beguel
 
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...Bert Jan Schrijver
 
Effectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorEffectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorTier1 app
 
Patterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencePatterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencessuser9e7c64
 
Ronisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited CatalogueRonisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited Catalogueitservices996
 
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdfAndrey Devyatkin
 
2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shardsChristopher Curtin
 
Best Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITBest Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITmanoharjgpsolutions
 
Osi security architecture in network.pptx
Osi security architecture in network.pptxOsi security architecture in network.pptx
Osi security architecture in network.pptxVinzoCenzo
 
Precise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalPrecise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalLionel Briand
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfDrew Moseley
 
Post Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on IdentityPost Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on Identityteam-WIBU
 
Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Rob Geurden
 
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full RecordingOpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full RecordingShane Coughlan
 
Strategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero resultsStrategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero resultsJean Silva
 
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfEnhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfRTS corp
 
Introduction to Firebase Workshop Slides
Introduction to Firebase Workshop SlidesIntroduction to Firebase Workshop Slides
Introduction to Firebase Workshop Slidesvaideheekore1
 
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics
 

Recently uploaded (20)

Understanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM ArchitectureUnderstanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM Architecture
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
 
SAM Training Session - How to use EXCEL ?
SAM Training Session - How to use EXCEL ?SAM Training Session - How to use EXCEL ?
SAM Training Session - How to use EXCEL ?
 
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
 
Effectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorEffectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryError
 
Patterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencePatterns for automating API delivery. API conference
Patterns for automating API delivery. API conference
 
Ronisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited CatalogueRonisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited Catalogue
 
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
 
2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards
 
Best Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITBest Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh IT
 
Osi security architecture in network.pptx
Osi security architecture in network.pptxOsi security architecture in network.pptx
Osi security architecture in network.pptx
 
Precise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalPrecise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive Goal
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdf
 
Post Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on IdentityPost Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on Identity
 
Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...
 
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full RecordingOpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
 
Strategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero resultsStrategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero results
 
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfEnhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
 
Introduction to Firebase Workshop Slides
Introduction to Firebase Workshop SlidesIntroduction to Firebase Workshop Slides
Introduction to Firebase Workshop Slides
 
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
 

J meter introduction

  • 2. J Meter introduction: • It is a open source software from Java to load test functional behavior and measure performance. Testing a web application against heavy load, multiple and concurrent user traffic. • For example: one day, your boss asks you to do performance testing of www.google.com for 100 users. What would you do? • Answer is J-meter • It will stimulate multiple user at a time as per the request • JMeter originally is used for testing Web Application or FTP application. Nowadays, it is used for functional test, database server test etc.
  • 3. Why JMeter ? 1. JMeter is totally free, allows developer use the source code for the development 2. JMeter is 100% pure Java desktop application. So it can run on multiple platforms 3. JMeter supports many testing strategies such as Load Testing, Distributed Testing, and Functional Testing.
  • 6. Thread Group • Thread Groups is a collection of Threads. Each thread represents one user using the application under test. Basically each Thread simulates one real user request to the server. • The controls for a thread group allow you to Set the number of threads for each group. • For example, if you set the number of threads as 100; JMeter will create and simulate 100 user requests to the server under test
  • 8. Samplers • As we know already that JMeter supports testing HTTP, FTP , JDBC and many other protocols. • We already know that Thread Groups simulate user request to the server • But how does a Thread Group know which type of requests (HTTP, FTP etc.) it needs to make ? • The answer is Samplers • The user request could be FTP Request, HTTP Request, JDBC Request…Etc.
  • 9. FTP request: • You can use FTP request sampler to perform test an FTP server • This controller lets you send an FTP “download file” or “upload file” request to an FTP server. HTTP request: • This sampler lets you send an HTTP/HTTPS request to a web server. • JMeter send a HTTP request to Google website and retrieve HTML files or image from this website. JDBC request: • It sends a JDBC Request (an SQL query) to a database.
  • 10. Logic Controllers • Logic Controllers let you define the order of processing request in a Thread. For example, you can use Random Controllers to send HTTP requests to the server randomly. • Logic Controllers determine the order in which user request are executed. • commonly used Logic controllers are
  • 11. Recording Controller JMeter can record your testing steps; recording controller is a place holder to store these recording steps. Simple Controller Simple Controller is just a container for user request. Loop Controller makes the user request run specified number of times
  • 12. Listeners • A listener is a component that shows the results of the samples. • The results can be shown in a tree, tables, graphs or simply written to a log file. Configuration Elements • set up defaults and variables for later use by samplers.
  • 13. • Suppose you want to test a website for 100 users signing-in with different credentials. • You do not need to record the script 100 times! You can parameterization the script to enter different login credentials. CSV Data Set Configuration HTTP Cookie Manager • HTTP Cookie Manager also has the same feature like a web browser. • If you have an HTTP Request and the response contains a cookie, the Cookie Manager automatically stores that cookie and will use it for all future requests to that particular web site. HTTP request default • This element lets you set default values that your HTTP Request controllers use. Login Configuration Element • The Login Configuration Element lets you add or override username and password settings in samplers.
  • 14. Assertions • Assertion help verify that your server under test returns the expected results. • Commonly used Assertion in JMeter: 1.Response Assertion 2.Duration Assertion 3.Size Assertion 4.XML Assertion 5.HTML Assertion Response Assertion • The response assertion lets you add pattern strings to be compared against various fields of the server response. Duration Assertion • The Duration Assertion tests that 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.
  • 15. Size Assertion • The Size Assertion tests that each server response contains the expected number of byte in it. You can specify that the size be equal to, greater than, less than, or not equal to a given number of bytes. Timers • JMeter sends the request without pausing between each request. In that case, JMeter could overwhelm your test server by making too many requests in a short amount of times. • To overcome this we are using timers • common types of timer in JMeter Constant Timer: • Constant timer delays each user request for the same amount of time Gaussian Random Timer: • Gaussian random timer delays each user request for a random amount of time
  • 16. Total Time delay • Other Timer used in J-meter is Ben shell timer, BSF Timer, JSR223, Uniform random timer Processor • Processor is used to modify the Samplers in their scope.
  • 17. There are 2 Types of processors: 1.Pre-processor 2.Post-processor Pre-processor • Pre-processor executes some action before making Sampler Request. • A Pre-Processor is most often used to modify the settings of a Sample Request just before it runs, or to update variables that aren't extracted from response text.
  • 18. Post-processor • Post-processor executes some action after making a Sampler Request. • A Post-Processor is most often used to process the response data, often to extract values from it.
  • 19. J meter : Performance Testing • Performance testing is crucial to determine that the web application under test will satisfy high load requirements. It can be used to analyze overall server performance under heavy load. • J meter performance testing includes both Load test and Stress Test • Load Testing Help us to study the behavior of the application under various loads • The main parameter to focus is response time. • Stress Testing Help us to observe the stability of the application. • The main parameter to focus is throughput.
  • 20. Sample Performance Test Plan in J meter • performance analysis of Google.com for 10 users • Before testing the performance of target web application, we should determine- Normal Load: Average number of users visit your website Heavy Load: The maximum number of users visit your website What is your target in this test? • Roadmap of this practical example
  • 21. Step 1) Add Thread Group Right click on the Test Plan and add a new thread group Add –> Threads (Users) –> Thread Group In Thread Group control panel, enter Thread Properties A. Number of threads B. Ramp-up periods C. Loop count Step 2) Adding J Meter elements This element can be added by right-clicking on the Thread Group and selecting Add –> Configuration Element –> HTTP Request Defaults. Enter the website you want to test
  • 22. HTTP Request Right-click on Thread Group and select Add –> Sampler –> HTTP Request J Meter will create the URL request to Google server Step 3) Adding Graph result J Meter can show the test result in Graph format. Add –> Listener –> Graph Results Step 4) Run Test and get the test result • Press Run button (Ctrl + R) on Toolbar to start the testing process. • You will see the test result display on Graph at the real time.
  • 23. Test Result will look like