SlideShare a Scribd company logo
1 of 33
Download to read offline
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Learning JMeter in 60
Minutes
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Alon Girmonsky
About Me
•  Hands-On Developer for the Past 20 Years
•  Expertise
– Large-Scale Web and Mobile Applications
– IP & Internet
•  Founder & CEO of BlazeMeter
– A Load Testing Platform as a Service
– 100% Compatible with Apache JMeter
USERS
50,000
TESTS
500,000
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Comprehensive scripting at your fingertips
Any Script, Any Scenario
•  HTTP / HTTPS
•  Login / Signup
•  Form POSTing / Credit card transactions
•  Web services
•  Parameters extraction
•  Mobile
•  MSSQL,Oracle SQL,MySQL
•  Multiple user profiles
»  Any script
»  Any scenario
»  Any protocol
100% Apache JMeter Compatible
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Download the Latest Release of JMeter
How to Install JMeter?
•  http://jmeter.apache.org/
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
The Thread Group
•  What is this? -A group of virtual users where each distinct user will
follow a certain business process
The Thread Group Properties:
Property Description
No of
Threads
The maximum number of threads that will run concurrently at
the end of the ramp up period
Ramp up The period is will take the load to ramp up from “idle” to
maximum load
Iterations The number of iteration each thread will execute
Duration The duration of the test from start to end
The Thread The sequence of events that comprise the simulated business
process
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
The Thread Group
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
The Sampler
•  What is this? -The actual request object with its properties
Supported Protocols:
•  HTTP
•  FTP
•  LDAP
•  MSSQL,MySQL,Oracle SQL
•  Mongo DB
•  SOAP/XML-RPC
•  Generic
•  SMTP
•  oAuth
•  Rest
•  TCP
•  UDP
•  Many many more
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
The Sampler
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
The Listener
•  What is this? -A fancy name for a report
•  Type of Listeners
–  Aggregated
–  Detailed
•  Use for debugging only
•  Consume a lot of memory
•  Use when you want to build custom reports (e.g.for errors only)
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
The Timer
•  What is this? -A fancy name for delay or think time
Type of Timers:
•  Constant
•  Constant Throughput
dd
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Timers belong to a scope- We need to understand this
The Timer
•  Timers (as other controllers/elements) work in scope
•  Once put in scope,applies to every element in the scope
•  If scope is of one element,applies only to that element
Upper Scope Child Scope
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Record Using a Proxy
•  A good way to start a script
•  Don’t forget to clean and parametrize
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Record Using a Chrome Extension
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Creating a Script Using a List of URLs
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Necessary for Every Test
Test Defaults
Header
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Getting your hands dirty with Apache JMeter
Practice: Writing Your First Script
Goal
•  Create a test simulating a gradual ramp up of up to 10 users against these two
pages:
–  http:// ..
–  http:// ..
How to go about it:
•  Use a proxy to record
•  Clean and label
•  Add the defaults
•  Add listeners and delays
•  Run
•  Analyze the results
175 Varick Street NY, NY 10013|1.855.445.2285|info@blazemeter.com
Advanced Scripting
Concepts
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Single Iteration
Single Iteration Vs Continuous
Load
KPI: Number of Unique Users
•  Simulate a ramp up of unique
users
•  Low concurrency level
For Example:
•  I want only 25K users visiting my
website over 1 hour
Continuous
KPI: Load Level
•  Keep the load steady
•  High concurrency level
For Example:
•  I want a constant and steady load
of 25K users visiting my website
over 1 hour (I’ll probably end up
with 200K users in that hour)
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Assertions
•  Define Proprietary Errors
•  Communicate Events
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
The best way to individualize each thread
Using CSV Files
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
External Properties
•  Pass external properties to the script
•  Customize same script to support various scenarios
Methods
•  Command line arguments (-J)
•  Properties file: user.properties
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Extract from a page and use for the next page
Parameter Extraction
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Variables
Variables and Properties
•  Usage: ${var}
•  Scope: unique per thread
Properties
•  Usage: ${__P(prop)}
•  Scope: Test
•  Pass external properties to the
script
•  Customize same script to support
various scenarios
Methods
•  Command line arguments (-J)
•  Properties file: user.properties
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
The Debug Sampler
Debugging
•  The developer’s best friend
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Getting your hands dirty with Apache JMeter
Practice: Writing Your Second Script
Goal
•  Create a test simulating a gradual ramp up of up to 10 users logging in to:
–  http:// ..
How to go about it:
•  Use a proxy to record
•  Use RexEx to parameterize
•  Clean,label,add defaults, listeners and delays
•  Add a CSV file with user names and passwords
•  Use assertions to validate responses
•  Run
•  Analyze the results
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Performance
1-on-1
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
The Load Sensitivity Point
What to look for?
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Load Performance Types
Perfect
Time
Sensitive
Bad
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Load Performance Types
Perfect
The Perfect Load
Time
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Load Performance Types
Sensitive
Sensitive to Load
Time
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Load Performance Types
Bad
Bad Performance
Time
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Load Performance Types
Perfect
Here They Are Again
Time
Sensitive
Bad
@alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com
Thank you for your time!
Jolt Awards 2013:
The Best Testing Tools
Thank you for attending.
We’ll send out an email with the recording and
the deck.
Q & A
For more information about Performance Testing and JMeter:
http://BlazeMeter.com/blog/
support@blazemeter.com
@BlazeMeter

More Related Content

What's hot

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 vs loadrunner vs neoload
Jmeter vs loadrunner vs neoloadJmeter vs loadrunner vs neoload
Jmeter vs loadrunner vs neoloadpratik mohite
 
JMeter & ColdFusion
JMeter & ColdFusion JMeter & ColdFusion
JMeter & ColdFusion isummation
 
Basic of jMeter
Basic of jMeter Basic of jMeter
Basic of jMeter Shub
 
Introduction to jmeter
Introduction to jmeterIntroduction to jmeter
Introduction to jmetertest test
 
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
 
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
 
Performance Testing - Apache Benchmark, JMeter
Performance Testing  - Apache Benchmark, JMeterPerformance Testing  - Apache Benchmark, JMeter
Performance Testing - Apache Benchmark, JMeterAntoni Orfin
 
How to Analyze Reports in Jmeter
How to Analyze Reports in JmeterHow to Analyze Reports in Jmeter
How to Analyze Reports in JmeterViviana Lesmes
 
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
 
Load Testing and JMeter Presentation
Load Testing and JMeter PresentationLoad Testing and JMeter Presentation
Load Testing and JMeter PresentationNeill Lima
 
Introduction to blazemeter and jmeter
Introduction to blazemeter and jmeterIntroduction to blazemeter and jmeter
Introduction to blazemeter and jmeterb4usolution .
 
Large Scale Load Testing Amazon.com’s Traffic on AWS (CPN102) | AWS re:Invent...
Large Scale Load Testing Amazon.com’s Traffic on AWS (CPN102) | AWS re:Invent...Large Scale Load Testing Amazon.com’s Traffic on AWS (CPN102) | AWS re:Invent...
Large Scale Load Testing Amazon.com’s Traffic on AWS (CPN102) | AWS re:Invent...Amazon Web Services
 

What's hot (20)

Performance testing with Apache JMeter
Performance testing with Apache JMeterPerformance testing with Apache JMeter
Performance testing with Apache JMeter
 
JMETER-SKILLWISE
JMETER-SKILLWISEJMETER-SKILLWISE
JMETER-SKILLWISE
 
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 vs loadrunner vs neoload
Jmeter vs loadrunner vs neoloadJmeter vs loadrunner vs neoload
Jmeter vs loadrunner vs neoload
 
JMeter & ColdFusion
JMeter & ColdFusion JMeter & ColdFusion
JMeter & ColdFusion
 
J Meter Intro
J Meter IntroJ Meter Intro
J Meter Intro
 
Basic of jMeter
Basic of jMeter Basic of jMeter
Basic of jMeter
 
Introduction to jmeter
Introduction to jmeterIntroduction to jmeter
Introduction to jmeter
 
JMeter_ Cubet Seminar ppt
JMeter_ Cubet Seminar pptJMeter_ Cubet Seminar ppt
JMeter_ Cubet Seminar ppt
 
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
 
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
 
Load testing jmeter
Load testing jmeterLoad testing jmeter
Load testing jmeter
 
Performance Testing - Apache Benchmark, JMeter
Performance Testing  - Apache Benchmark, JMeterPerformance Testing  - Apache Benchmark, JMeter
Performance Testing - Apache Benchmark, JMeter
 
Apache jMeter
Apache jMeterApache jMeter
Apache jMeter
 
How to Analyze Reports in Jmeter
How to Analyze Reports in JmeterHow to Analyze Reports in Jmeter
How to Analyze Reports in 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 and JMeter Presentation
Load Testing and JMeter PresentationLoad Testing and JMeter Presentation
Load Testing and JMeter Presentation
 
Introduction to blazemeter and jmeter
Introduction to blazemeter and jmeterIntroduction to blazemeter and jmeter
Introduction to blazemeter and jmeter
 
Large Scale Load Testing Amazon.com’s Traffic on AWS (CPN102) | AWS re:Invent...
Large Scale Load Testing Amazon.com’s Traffic on AWS (CPN102) | AWS re:Invent...Large Scale Load Testing Amazon.com’s Traffic on AWS (CPN102) | AWS re:Invent...
Large Scale Load Testing Amazon.com’s Traffic on AWS (CPN102) | AWS re:Invent...
 

Similar to Learning j meter in 60 minutes

How to Run a 1,000,000 VU Load Test using Apache JMeter and BlazeMeter
How to Run a 1,000,000 VU Load Test using Apache JMeter and BlazeMeterHow to Run a 1,000,000 VU Load Test using Apache JMeter and BlazeMeter
How to Run a 1,000,000 VU Load Test using Apache JMeter and BlazeMeterAlon Girmonsky
 
[QCon.ai 2019] People You May Know: Fast Recommendations Over Massive Data
[QCon.ai 2019] People You May Know: Fast Recommendations Over Massive Data[QCon.ai 2019] People You May Know: Fast Recommendations Over Massive Data
[QCon.ai 2019] People You May Know: Fast Recommendations Over Massive DataSumit Rangwala
 
Performance Testing using Real Browsers with JMeter & Webdriver
Performance Testing using Real Browsers with JMeter & WebdriverPerformance Testing using Real Browsers with JMeter & Webdriver
Performance Testing using Real Browsers with JMeter & WebdriverBlazeMeter
 
Postman Galaxy Tour: San Francisco - Workshop Presentation
Postman Galaxy Tour: San Francisco -  Workshop PresentationPostman Galaxy Tour: San Francisco -  Workshop Presentation
Postman Galaxy Tour: San Francisco - Workshop PresentationPostman
 
Architecting &Building Scalable Secure Web API
Architecting &Building Scalable Secure Web APIArchitecting &Building Scalable Secure Web API
Architecting &Building Scalable Secure Web APISHAKIL AKHTAR
 
Web application security & Testing
Web application security  & TestingWeb application security  & Testing
Web application security & TestingDeepu S Nath
 
Building & Testing Scalable Rails Applications
Building & Testing Scalable Rails ApplicationsBuilding & Testing Scalable Rails Applications
Building & Testing Scalable Rails Applicationsevilmike
 
My Little Webap - DevOpsSec is Magic
My Little Webap - DevOpsSec is MagicMy Little Webap - DevOpsSec is Magic
My Little Webap - DevOpsSec is MagicApollo Clark
 
Getting Started on Google Cloud Platform
Getting Started on Google Cloud PlatformGetting Started on Google Cloud Platform
Getting Started on Google Cloud PlatformAaron Taylor
 
Expect the unexpected: Prepare for failures in microservices
Expect the unexpected: Prepare for failures in microservicesExpect the unexpected: Prepare for failures in microservices
Expect the unexpected: Prepare for failures in microservicesBhakti Mehta
 
Web Development using Ruby on Rails
Web Development using Ruby on RailsWeb Development using Ruby on Rails
Web Development using Ruby on RailsAvi Kedar
 
API-Testing-SOAPUI-1.pptx
API-Testing-SOAPUI-1.pptxAPI-Testing-SOAPUI-1.pptx
API-Testing-SOAPUI-1.pptxamarnathdeo
 
Apache Kafka® at Dropbox
Apache Kafka® at DropboxApache Kafka® at Dropbox
Apache Kafka® at Dropboxconfluent
 
Exploring Contact Lens and Amazon Connect
Exploring Contact Lens and Amazon ConnectExploring Contact Lens and Amazon Connect
Exploring Contact Lens and Amazon ConnectCloudHesive
 
ReStream: Accelerating Backtesting and Stream Replay with Serial-Equivalent P...
ReStream: Accelerating Backtesting and Stream Replay with Serial-Equivalent P...ReStream: Accelerating Backtesting and Stream Replay with Serial-Equivalent P...
ReStream: Accelerating Backtesting and Stream Replay with Serial-Equivalent P...Johann Schleier-Smith
 
AWS Lambda support for AWS X-Ray
AWS Lambda support for AWS X-RayAWS Lambda support for AWS X-Ray
AWS Lambda support for AWS X-RayEitan Sela
 
SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1sqlserver.co.il
 
The server side story: Parallel and Asynchronous programming in .NET - ITPro...
The server side story:  Parallel and Asynchronous programming in .NET - ITPro...The server side story:  Parallel and Asynchronous programming in .NET - ITPro...
The server side story: Parallel and Asynchronous programming in .NET - ITPro...Panagiotis Kanavos
 
DevOps, CLI, APIs, Oh My! Security Gone Agile
DevOps, CLI, APIs, Oh My!  Security Gone AgileDevOps, CLI, APIs, Oh My!  Security Gone Agile
DevOps, CLI, APIs, Oh My! Security Gone AgileMatt Tesauro
 
Software as a Service workshop / Unlocked: the Hybrid Cloud 12th May 2014
Software as a Service workshop / Unlocked: the Hybrid Cloud 12th May 2014Software as a Service workshop / Unlocked: the Hybrid Cloud 12th May 2014
Software as a Service workshop / Unlocked: the Hybrid Cloud 12th May 2014Rackspace Academy
 

Similar to Learning j meter in 60 minutes (20)

How to Run a 1,000,000 VU Load Test using Apache JMeter and BlazeMeter
How to Run a 1,000,000 VU Load Test using Apache JMeter and BlazeMeterHow to Run a 1,000,000 VU Load Test using Apache JMeter and BlazeMeter
How to Run a 1,000,000 VU Load Test using Apache JMeter and BlazeMeter
 
[QCon.ai 2019] People You May Know: Fast Recommendations Over Massive Data
[QCon.ai 2019] People You May Know: Fast Recommendations Over Massive Data[QCon.ai 2019] People You May Know: Fast Recommendations Over Massive Data
[QCon.ai 2019] People You May Know: Fast Recommendations Over Massive Data
 
Performance Testing using Real Browsers with JMeter & Webdriver
Performance Testing using Real Browsers with JMeter & WebdriverPerformance Testing using Real Browsers with JMeter & Webdriver
Performance Testing using Real Browsers with JMeter & Webdriver
 
Postman Galaxy Tour: San Francisco - Workshop Presentation
Postman Galaxy Tour: San Francisco -  Workshop PresentationPostman Galaxy Tour: San Francisco -  Workshop Presentation
Postman Galaxy Tour: San Francisco - Workshop Presentation
 
Architecting &Building Scalable Secure Web API
Architecting &Building Scalable Secure Web APIArchitecting &Building Scalable Secure Web API
Architecting &Building Scalable Secure Web API
 
Web application security & Testing
Web application security  & TestingWeb application security  & Testing
Web application security & Testing
 
Building & Testing Scalable Rails Applications
Building & Testing Scalable Rails ApplicationsBuilding & Testing Scalable Rails Applications
Building & Testing Scalable Rails Applications
 
My Little Webap - DevOpsSec is Magic
My Little Webap - DevOpsSec is MagicMy Little Webap - DevOpsSec is Magic
My Little Webap - DevOpsSec is Magic
 
Getting Started on Google Cloud Platform
Getting Started on Google Cloud PlatformGetting Started on Google Cloud Platform
Getting Started on Google Cloud Platform
 
Expect the unexpected: Prepare for failures in microservices
Expect the unexpected: Prepare for failures in microservicesExpect the unexpected: Prepare for failures in microservices
Expect the unexpected: Prepare for failures in microservices
 
Web Development using Ruby on Rails
Web Development using Ruby on RailsWeb Development using Ruby on Rails
Web Development using Ruby on Rails
 
API-Testing-SOAPUI-1.pptx
API-Testing-SOAPUI-1.pptxAPI-Testing-SOAPUI-1.pptx
API-Testing-SOAPUI-1.pptx
 
Apache Kafka® at Dropbox
Apache Kafka® at DropboxApache Kafka® at Dropbox
Apache Kafka® at Dropbox
 
Exploring Contact Lens and Amazon Connect
Exploring Contact Lens and Amazon ConnectExploring Contact Lens and Amazon Connect
Exploring Contact Lens and Amazon Connect
 
ReStream: Accelerating Backtesting and Stream Replay with Serial-Equivalent P...
ReStream: Accelerating Backtesting and Stream Replay with Serial-Equivalent P...ReStream: Accelerating Backtesting and Stream Replay with Serial-Equivalent P...
ReStream: Accelerating Backtesting and Stream Replay with Serial-Equivalent P...
 
AWS Lambda support for AWS X-Ray
AWS Lambda support for AWS X-RayAWS Lambda support for AWS X-Ray
AWS Lambda support for AWS X-Ray
 
SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1
 
The server side story: Parallel and Asynchronous programming in .NET - ITPro...
The server side story:  Parallel and Asynchronous programming in .NET - ITPro...The server side story:  Parallel and Asynchronous programming in .NET - ITPro...
The server side story: Parallel and Asynchronous programming in .NET - ITPro...
 
DevOps, CLI, APIs, Oh My! Security Gone Agile
DevOps, CLI, APIs, Oh My!  Security Gone AgileDevOps, CLI, APIs, Oh My!  Security Gone Agile
DevOps, CLI, APIs, Oh My! Security Gone Agile
 
Software as a Service workshop / Unlocked: the Hybrid Cloud 12th May 2014
Software as a Service workshop / Unlocked: the Hybrid Cloud 12th May 2014Software as a Service workshop / Unlocked: the Hybrid Cloud 12th May 2014
Software as a Service workshop / Unlocked: the Hybrid Cloud 12th May 2014
 

Recently uploaded

why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 

Recently uploaded (20)

why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 

Learning j meter in 60 minutes

  • 1. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Learning JMeter in 60 Minutes
  • 2. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Alon Girmonsky About Me •  Hands-On Developer for the Past 20 Years •  Expertise – Large-Scale Web and Mobile Applications – IP & Internet •  Founder & CEO of BlazeMeter – A Load Testing Platform as a Service – 100% Compatible with Apache JMeter USERS 50,000 TESTS 500,000
  • 3. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Comprehensive scripting at your fingertips Any Script, Any Scenario •  HTTP / HTTPS •  Login / Signup •  Form POSTing / Credit card transactions •  Web services •  Parameters extraction •  Mobile •  MSSQL,Oracle SQL,MySQL •  Multiple user profiles »  Any script »  Any scenario »  Any protocol 100% Apache JMeter Compatible
  • 4. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Download the Latest Release of JMeter How to Install JMeter? •  http://jmeter.apache.org/
  • 5. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com The Thread Group •  What is this? -A group of virtual users where each distinct user will follow a certain business process The Thread Group Properties: Property Description No of Threads The maximum number of threads that will run concurrently at the end of the ramp up period Ramp up The period is will take the load to ramp up from “idle” to maximum load Iterations The number of iteration each thread will execute Duration The duration of the test from start to end The Thread The sequence of events that comprise the simulated business process
  • 6. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com The Thread Group
  • 7. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com The Sampler •  What is this? -The actual request object with its properties Supported Protocols: •  HTTP •  FTP •  LDAP •  MSSQL,MySQL,Oracle SQL •  Mongo DB •  SOAP/XML-RPC •  Generic •  SMTP •  oAuth •  Rest •  TCP •  UDP •  Many many more
  • 8. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com The Sampler
  • 9. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com The Listener •  What is this? -A fancy name for a report •  Type of Listeners –  Aggregated –  Detailed •  Use for debugging only •  Consume a lot of memory •  Use when you want to build custom reports (e.g.for errors only)
  • 10. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com The Timer •  What is this? -A fancy name for delay or think time Type of Timers: •  Constant •  Constant Throughput dd
  • 11. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Timers belong to a scope- We need to understand this The Timer •  Timers (as other controllers/elements) work in scope •  Once put in scope,applies to every element in the scope •  If scope is of one element,applies only to that element Upper Scope Child Scope
  • 12. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Record Using a Proxy •  A good way to start a script •  Don’t forget to clean and parametrize
  • 13. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Record Using a Chrome Extension
  • 14. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Creating a Script Using a List of URLs
  • 15. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Necessary for Every Test Test Defaults Header
  • 16. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Getting your hands dirty with Apache JMeter Practice: Writing Your First Script Goal •  Create a test simulating a gradual ramp up of up to 10 users against these two pages: –  http:// .. –  http:// .. How to go about it: •  Use a proxy to record •  Clean and label •  Add the defaults •  Add listeners and delays •  Run •  Analyze the results
  • 17. 175 Varick Street NY, NY 10013|1.855.445.2285|info@blazemeter.com Advanced Scripting Concepts
  • 18. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Single Iteration Single Iteration Vs Continuous Load KPI: Number of Unique Users •  Simulate a ramp up of unique users •  Low concurrency level For Example: •  I want only 25K users visiting my website over 1 hour Continuous KPI: Load Level •  Keep the load steady •  High concurrency level For Example: •  I want a constant and steady load of 25K users visiting my website over 1 hour (I’ll probably end up with 200K users in that hour)
  • 19. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Assertions •  Define Proprietary Errors •  Communicate Events
  • 20. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com The best way to individualize each thread Using CSV Files
  • 21. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com External Properties •  Pass external properties to the script •  Customize same script to support various scenarios Methods •  Command line arguments (-J) •  Properties file: user.properties
  • 22. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Extract from a page and use for the next page Parameter Extraction
  • 23. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Variables Variables and Properties •  Usage: ${var} •  Scope: unique per thread Properties •  Usage: ${__P(prop)} •  Scope: Test •  Pass external properties to the script •  Customize same script to support various scenarios Methods •  Command line arguments (-J) •  Properties file: user.properties
  • 24. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com The Debug Sampler Debugging •  The developer’s best friend
  • 25. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Getting your hands dirty with Apache JMeter Practice: Writing Your Second Script Goal •  Create a test simulating a gradual ramp up of up to 10 users logging in to: –  http:// .. How to go about it: •  Use a proxy to record •  Use RexEx to parameterize •  Clean,label,add defaults, listeners and delays •  Add a CSV file with user names and passwords •  Use assertions to validate responses •  Run •  Analyze the results
  • 26. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Performance 1-on-1
  • 27. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com The Load Sensitivity Point What to look for?
  • 28. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Load Performance Types Perfect Time Sensitive Bad
  • 29. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Load Performance Types Perfect The Perfect Load Time
  • 30. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Load Performance Types Sensitive Sensitive to Load Time
  • 31. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Load Performance Types Bad Bad Performance Time
  • 32. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Load Performance Types Perfect Here They Are Again Time Sensitive Bad
  • 33. @alongir785 Castro Street, Mountain View, CA 94041|1.855.445.2285|info@blazemeter.com Thank you for your time! Jolt Awards 2013: The Best Testing Tools Thank you for attending. We’ll send out an email with the recording and the deck. Q & A For more information about Performance Testing and JMeter: http://BlazeMeter.com/blog/ support@blazemeter.com @BlazeMeter