SlideShare a Scribd company logo
1 of 30
JMETER
The load testing tool
By : Pritesh Patel
WHAT IS LOAD TESTING?
 Load testing is the process of putting demand on a
system or device and measuring its response.
 Types of tests
 Performance Testing - is usually defined as the
process of exercising the system under test by feeding it
the largest tasks it can operate with
 Stress Testing - to break the
system under test by
overwhelming its resources
or by taking resources away
from it
WHY LOAD TESTING?
 Find Performance issue with your website
 Discover how many users your website support in
order to prevent disaster.
 Finding task which required performance
improvement.
HOW TO AVOID LOAD TESTING
 My client not ready to pay for testing?
 My manager has assign lots of work with very tight
deadline.
 I know there will be 2 to 3 users will visit this
application and server can handle that much load.
LOAD TESTING TOOLS
 Flood, open source from and for Apache
 JMeter, an open source tool
 LoadStorm, free and commercial hosted service (25 virtual users are free), offering different
features for load, stress, regression, and endurance testing of web apps
 NeoLoad, commercial, for Windows, Linux, Solaris
 OpenLoad, commercial load testing tool and hosted service
 OpenSTA, an open source tool
 PureLoad, commercial, multiplatform load testing tool
 PushToTest TestMaker, an open source testing framework (load testing and more)
 QEngine, free and commercial, from AdventNet (free edition supports 5 virtual users)
 Reality LOAD XF, commercial, in the Gomez line of remote services
 riatest, commercial, multiplatform Flex UI testing Silk family of tools, commercial
 SQLQueryStress Performance Testing Tool, free, for testing SQL Server StressIT,
commercial and free
 The Grinder, an open source tool
 Microsoft Visual Studio Team System 2008 (and 2005), commercial, for Windows, which
includes Load Test Analyzer and Load Test Monitor tools.
 WAPT, Web APplication Testing tool, a commercial product, for Windows
 WatchMouse, commercial hosted load testing service
 WebKing, commercial, multiplatform
 WebServer Stress Tool, commercial and free, from Paessler
WHY JMETER?
 Can load and performance test many different server
types:
 Web - HTTP, HTTPS
 SOAP
 Database via JDBC
 LDAP
 JMS
 Mail - POP3(S) and IMAP(S)
 Full multithreading framework allows concurrent
sampling by many threads and simultaneous sampling
of different functions by seperate thread groups.
 Careful GUI design allows faster operation and more
precise timings.
 Caching and offline analysis/replaying of test results.
CONTINUE…
 Highly Extensible:
 Pluggable Samplers allow unlimited testing capabilities.
 Several load statistics may be chosen with pluggable
timers .
 Data analysis and visualization plugins allow great
extendibility as well as personalization.
 Functions can be used to provide dynamic input to a
test or provide data manipulation.
 Scriptable Samplers (BeanShell is fully supported; and
there is a sampler which supports BSF-compatible
languages)
INSTALLING JMETER (ON WINOW)
 Install Java (2.2. or higher)
 Download JMeter
http://jakarta.apache.org/site/downloads/index.html
 Add path of java installation in environment path
variables.
RUNNING JMETER IN WINDOWS
 Open command prompt (user administrative mode
to avoid unnecessary hassle).
 Traverse to [jmeter installation path]bin
 Run Jmeter.bat
If you are running test behind firewall try following
argument to pass with command prompt.
 -H [proxy server hostname or ip address]
-P [proxy server port]
-N [nonproxy hosts] (e.g. *.apache.org|localhost)
-u [username for proxy authentication - if required]
-a [password for proxy authentication - if required]
ELEMENTS OF TEST PLANS
 Thread Group
 Setup number of thread
 Set up ramp up period
 No. of times test exectues
 Controllers
 Sampler (Send Request to Server)
 Logical Controller (Customize logic to send request)
 Listener
 Graph Result
 View Results Tree and many more.
 Timers
 Delay next request for certain amount of time
CONTINUE….
 Assertions
 Allow you to assert fact about responses received from
HTTP request
 Configuration Elements
 Allow you configure settings
 Preprocessor
 Execute prior to sampler request
 PostProcessor
 Execute some action after sampler request
CREATING YOUR FIRST WEB TEST PLAN
ADDING USERS
 5 users send 3 requests on cfminds.com and
repeat it twice. (5 users x 3 requests x 2 repeat =
30 requests)
 Right click on test note >> Add >> Thread (users)
>> Thread Group
ADD DEFAULT HTTP REQUEST
 You can add default http request setting from ADD
>> Config Element >> HTTP request default.
 This will let you define default http parameter for
every request.
ADDING HTTP REQEST ELEMENT
 You can add it from ADD> Sampler >> HTTP
Request
ADDING LISTNER TO VIEW RESULT
 Listner responsible for storing all of the results of
our HTTP request and presenting in Visualize
mode.
DEMO
GRAPH COMPARISON (5 USERS VS 50
USERS)
5 Users
50 Users
5 Users
50 Users
HTTP COOKIE MANAGER
 You can add cookie manager by right clicking on
test plan Add >> Config Element >> HTTP Cookie
Manager.
 Usage:
 Store and sends cookies just like browser
 Maintain separate cookie for each thread but share in all
requests.
LOGIN IN TO SECURE PAGES
 Find out action page of login form.
 Create HTTP Request Sampler and pass
username, password and other required data.
 Most important : Add HTTP Cookie manager if
session stores in cookie or depends on cookie.
DEMO
LOGIN WITH DIFFERENT USER IN EACH
THREAD
 Create CSV file with list of username and password
 Store in same folder where your test stores
 Add CSV Data set into your test tree from config
elements
 Add ${USER},${PASS} in request sampler as
parameter.
CONTROLLING REQUEST LOGIC
 Logic Controllers can be used to control flow.
DEMO
RECORDING YOUR TEST PLAN
 JMeter Proxy can use to record all request send to
server.
 Create test plan with default http testing
 Add HTTP Proxy Server in Workbench node.
 Define port# of proxy server
 Define URL Pattern to include/exclude
 .* - all
 .*/.cfm – CFM pages
 .*/.gif – GIF file etc.
 Start Proxy server.
 Setup Proxy server on your browser.
DEMO
JMETER DISTRIBUTED TESTING
 JMeter client machine may not able to simulate
enough users to stress server.
 Control multiple machine to run JMeter without
copying test samples to different machine.
 Configuration:
 Copy same version of JMeter to different computer.
 Add remote node IP in JMeter.proeprties file.
 Run JMeter on remote machine using
/JMETER_HOME/bin/jmeter-server (in command
prompt)
 Start JMeter GUI in host machine.
 Select any test plan.
 Go to Run >> Remote Start >> Remote IP Address.
DEMO
YEAH… IT’S OVER NOW..

More Related Content

What's hot

Basic of jMeter
Basic of jMeter Basic of jMeter
Basic of jMeter Shub
 
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 and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meterPurna Chandar
 
Jmeter Performance Testing
Jmeter Performance TestingJmeter Performance Testing
Jmeter Performance TestingAtul Pant
 
Performance testing with JMeter
Performance testing with JMeterPerformance testing with JMeter
Performance testing with JMeterMikael Kundert
 
Performance testing using jmeter
Performance testing using jmeterPerformance testing using jmeter
Performance testing using jmeterRachappa Bandi
 
JMeter - Performance testing your webapp
JMeter - Performance testing your webappJMeter - Performance testing your webapp
JMeter - Performance testing your webappAmit Solanki
 
Apache JMeter - A brief introduction
Apache JMeter - A brief introductionApache JMeter - A brief introduction
Apache JMeter - A brief introductionsilenceIT Inc.
 
Perofrmance testing and apache jmeter
Perofrmance testing and apache jmeterPerofrmance testing and apache jmeter
Perofrmance testing and apache jmeterlethibichhoa
 
Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeterGalih Lasahido
 
Performance testing with jmeter
Performance testing with jmeter Performance testing with jmeter
Performance testing with jmeter Knoldus Inc.
 
Performance Testing Using JMeter | Edureka
Performance Testing Using JMeter | EdurekaPerformance Testing Using JMeter | Edureka
Performance Testing Using JMeter | EdurekaEdureka!
 

What's hot (20)

Basic of jMeter
Basic of jMeter Basic of jMeter
Basic of jMeter
 
J Meter Intro
J Meter IntroJ Meter Intro
J Meter Intro
 
Load testing with J meter
Load testing with J meterLoad testing with J meter
Load testing with J meter
 
Apache jMeter
Apache jMeterApache jMeter
Apache 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
 
JMeter Intro
JMeter IntroJMeter Intro
JMeter Intro
 
Jmeter
JmeterJmeter
Jmeter
 
Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meter
 
Jmeter Performance Testing
Jmeter Performance TestingJmeter Performance Testing
Jmeter Performance Testing
 
Performance testing with JMeter
Performance testing with JMeterPerformance testing with JMeter
Performance testing with JMeter
 
Performance testing using jmeter
Performance testing using jmeterPerformance testing using jmeter
Performance testing using jmeter
 
Jmeter From Scratch
Jmeter From ScratchJmeter From Scratch
Jmeter From Scratch
 
JMeter
JMeterJMeter
JMeter
 
JMeter - Performance testing your webapp
JMeter - Performance testing your webappJMeter - Performance testing your webapp
JMeter - Performance testing your webapp
 
Apache JMeter - A brief introduction
Apache JMeter - A brief introductionApache JMeter - A brief introduction
Apache JMeter - A brief introduction
 
VTV Mobile Performace Test
VTV Mobile Performace TestVTV Mobile Performace Test
VTV Mobile Performace Test
 
Perofrmance testing and apache jmeter
Perofrmance testing and apache jmeterPerofrmance testing and apache jmeter
Perofrmance testing and apache jmeter
 
Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeter
 
Performance testing with jmeter
Performance testing with jmeter Performance testing with jmeter
Performance testing with jmeter
 
Performance Testing Using JMeter | Edureka
Performance Testing Using JMeter | EdurekaPerformance Testing Using JMeter | Edureka
Performance Testing Using JMeter | Edureka
 

Viewers also liked

A Beginner's Guide to Application Load Testing
A Beginner's Guide to Application Load TestingA Beginner's Guide to Application Load Testing
A Beginner's Guide to Application Load TestingBirgit Pauli-Haack
 
Formulación inorgánica
Formulación inorgánicaFormulación inorgánica
Formulación inorgánicabesteiroalonso
 
Information Management Practice Overview Pp Presentation
Information Management Practice Overview Pp PresentationInformation Management Practice Overview Pp Presentation
Information Management Practice Overview Pp Presentationrkpradhan
 
Cold fusion best practice
Cold fusion best practiceCold fusion best practice
Cold fusion best practiceisummation
 
Mult –step equations
Mult –step equationsMult –step equations
Mult –step equationsuniv harvard
 
Preliminary slide show
Preliminary slide showPreliminary slide show
Preliminary slide showstoliros
 
Anastasi Lecture 2008
Anastasi Lecture 2008Anastasi Lecture 2008
Anastasi Lecture 2008behnke3791
 
Family tree
Family tree Family tree
Family tree 35150
 
Study skillsppt
Study skillspptStudy skillsppt
Study skillspptrnesbit
 
Genre Exploration
Genre Exploration Genre Exploration
Genre Exploration stoliros
 
Secrets & Lies
Secrets & LiesSecrets & Lies
Secrets & LiesSam Baksh
 
A Top NS Men in Singapore Polytechnic
A Top NS Men in Singapore PolytechnicA Top NS Men in Singapore Polytechnic
A Top NS Men in Singapore PolytechnicSerene Leong
 
Lectionline ii domenica di avvento 7 dicembre
Lectionline ii domenica di avvento 7 dicembreLectionline ii domenica di avvento 7 dicembre
Lectionline ii domenica di avvento 7 dicembreMaike Loes
 
Perlbeginnes 4 keynote
Perlbeginnes 4 keynotePerlbeginnes 4 keynote
Perlbeginnes 4 keynoteazuma satoshi
 

Viewers also liked (20)

A Beginner's Guide to Application Load Testing
A Beginner's Guide to Application Load TestingA Beginner's Guide to Application Load Testing
A Beginner's Guide to Application Load Testing
 
Formulación inorgánica
Formulación inorgánicaFormulación inorgánica
Formulación inorgánica
 
Information Management Practice Overview Pp Presentation
Information Management Practice Overview Pp PresentationInformation Management Practice Overview Pp Presentation
Information Management Practice Overview Pp Presentation
 
Cold fusion best practice
Cold fusion best practiceCold fusion best practice
Cold fusion best practice
 
Mailegua
MaileguaMailegua
Mailegua
 
Mult –step equations
Mult –step equationsMult –step equations
Mult –step equations
 
Preliminary slide show
Preliminary slide showPreliminary slide show
Preliminary slide show
 
Anastasi Lecture 2008
Anastasi Lecture 2008Anastasi Lecture 2008
Anastasi Lecture 2008
 
Vasse rj sep 13v2
Vasse rj sep 13v2Vasse rj sep 13v2
Vasse rj sep 13v2
 
Presentation1
Presentation1Presentation1
Presentation1
 
Family tree
Family tree Family tree
Family tree
 
Leonardo da vinci
Leonardo da vinciLeonardo da vinci
Leonardo da vinci
 
Study skillsppt
Study skillspptStudy skillsppt
Study skillsppt
 
Genre Exploration
Genre Exploration Genre Exploration
Genre Exploration
 
Secrets & Lies
Secrets & LiesSecrets & Lies
Secrets & Lies
 
A Top NS Men in Singapore Polytechnic
A Top NS Men in Singapore PolytechnicA Top NS Men in Singapore Polytechnic
A Top NS Men in Singapore Polytechnic
 
Pencil Parable
Pencil  ParablePencil  Parable
Pencil Parable
 
Lectionline ii domenica di avvento 7 dicembre
Lectionline ii domenica di avvento 7 dicembreLectionline ii domenica di avvento 7 dicembre
Lectionline ii domenica di avvento 7 dicembre
 
Tema 10
Tema 10Tema 10
Tema 10
 
Perlbeginnes 4 keynote
Perlbeginnes 4 keynotePerlbeginnes 4 keynote
Perlbeginnes 4 keynote
 

Similar to JMeter & ColdFusion

Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02Shivakumara .
 
performancetestingjmeter-121109061704-phpapp02
performancetestingjmeter-121109061704-phpapp02performancetestingjmeter-121109061704-phpapp02
performancetestingjmeter-121109061704-phpapp02Gopi Raghavendra
 
performancetestingjmeter-121109061704-phpapp02 (1)
performancetestingjmeter-121109061704-phpapp02 (1)performancetestingjmeter-121109061704-phpapp02 (1)
performancetestingjmeter-121109061704-phpapp02 (1)QA Programmer
 
Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Nitish Bhardwaj
 
Server Performance by Tonny
Server Performance by TonnyServer Performance by Tonny
Server Performance by TonnyAgate Studio
 
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
 
"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
 
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
 
Justmeans power point
Justmeans power pointJustmeans power point
Justmeans power pointjustmeanscsr
 
Performance eng prakash.sahu
Performance eng prakash.sahuPerformance eng prakash.sahu
Performance eng prakash.sahuDr. Prakash Sahu
 
How to make a Load Testing with Visual Studio 2012
How to make a Load Testing with Visual Studio 2012How to make a Load Testing with Visual Studio 2012
How to make a Load Testing with Visual Studio 2012Chen-Tien Tsai
 
Performance Test Slideshow Recent
Performance Test Slideshow RecentPerformance Test Slideshow Recent
Performance Test Slideshow RecentFuture Simmons
 
Performance Test Slideshow R E C E N T
Performance Test Slideshow R E C E N TPerformance Test Slideshow R E C E N T
Performance Test Slideshow R E C E N TFuture Simmons
 

Similar to JMeter & ColdFusion (20)

Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02
 
performancetestingjmeter-121109061704-phpapp02
performancetestingjmeter-121109061704-phpapp02performancetestingjmeter-121109061704-phpapp02
performancetestingjmeter-121109061704-phpapp02
 
performancetestingjmeter-121109061704-phpapp02 (1)
performancetestingjmeter-121109061704-phpapp02 (1)performancetestingjmeter-121109061704-phpapp02 (1)
performancetestingjmeter-121109061704-phpapp02 (1)
 
Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02
 
JMETER-SKILLWISE
JMETER-SKILLWISEJMETER-SKILLWISE
JMETER-SKILLWISE
 
Server Performance by Tonny
Server Performance by TonnyServer Performance by Tonny
Server Performance by Tonny
 
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
 
TGT#19 - 3 seconds or less - Piotr Liss
TGT#19 - 3 seconds or less - Piotr LissTGT#19 - 3 seconds or less - Piotr Liss
TGT#19 - 3 seconds or less - Piotr Liss
 
"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd Session"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd Session
 
JMeter_ Cubet Seminar ppt
JMeter_ Cubet Seminar pptJMeter_ Cubet Seminar ppt
JMeter_ Cubet Seminar ppt
 
QSpiders - Presentation JMeter
QSpiders - Presentation JMeterQSpiders - Presentation JMeter
QSpiders - Presentation JMeter
 
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
 
Justmeans power point
Justmeans power pointJustmeans power point
Justmeans power point
 
QSpiders - Installation and Brief Dose of Load Runner
QSpiders - Installation and Brief Dose of Load RunnerQSpiders - Installation and Brief Dose of Load Runner
QSpiders - Installation and Brief Dose of Load Runner
 
Performance eng prakash.sahu
Performance eng prakash.sahuPerformance eng prakash.sahu
Performance eng prakash.sahu
 
How to make a Load Testing with Visual Studio 2012
How to make a Load Testing with Visual Studio 2012How to make a Load Testing with Visual Studio 2012
How to make a Load Testing with Visual Studio 2012
 
QSpiders - Introduction to JMeter
QSpiders - Introduction to JMeterQSpiders - Introduction to JMeter
QSpiders - Introduction to JMeter
 
Performance Test Slideshow Recent
Performance Test Slideshow RecentPerformance Test Slideshow Recent
Performance Test Slideshow Recent
 
Performance Test Slideshow R E C E N T
Performance Test Slideshow R E C E N TPerformance Test Slideshow R E C E N T
Performance Test Slideshow R E C E N T
 
Load Runner
Load RunnerLoad Runner
Load Runner
 

Recently uploaded

Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 

Recently uploaded (20)

Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 

JMeter & ColdFusion

  • 1. JMETER The load testing tool By : Pritesh Patel
  • 2. WHAT IS LOAD TESTING?  Load testing is the process of putting demand on a system or device and measuring its response.  Types of tests  Performance Testing - is usually defined as the process of exercising the system under test by feeding it the largest tasks it can operate with  Stress Testing - to break the system under test by overwhelming its resources or by taking resources away from it
  • 3. WHY LOAD TESTING?  Find Performance issue with your website  Discover how many users your website support in order to prevent disaster.  Finding task which required performance improvement.
  • 4. HOW TO AVOID LOAD TESTING  My client not ready to pay for testing?  My manager has assign lots of work with very tight deadline.  I know there will be 2 to 3 users will visit this application and server can handle that much load.
  • 5. LOAD TESTING TOOLS  Flood, open source from and for Apache  JMeter, an open source tool  LoadStorm, free and commercial hosted service (25 virtual users are free), offering different features for load, stress, regression, and endurance testing of web apps  NeoLoad, commercial, for Windows, Linux, Solaris  OpenLoad, commercial load testing tool and hosted service  OpenSTA, an open source tool  PureLoad, commercial, multiplatform load testing tool  PushToTest TestMaker, an open source testing framework (load testing and more)  QEngine, free and commercial, from AdventNet (free edition supports 5 virtual users)  Reality LOAD XF, commercial, in the Gomez line of remote services  riatest, commercial, multiplatform Flex UI testing Silk family of tools, commercial  SQLQueryStress Performance Testing Tool, free, for testing SQL Server StressIT, commercial and free  The Grinder, an open source tool  Microsoft Visual Studio Team System 2008 (and 2005), commercial, for Windows, which includes Load Test Analyzer and Load Test Monitor tools.  WAPT, Web APplication Testing tool, a commercial product, for Windows  WatchMouse, commercial hosted load testing service  WebKing, commercial, multiplatform  WebServer Stress Tool, commercial and free, from Paessler
  • 6. WHY JMETER?  Can load and performance test many different server types:  Web - HTTP, HTTPS  SOAP  Database via JDBC  LDAP  JMS  Mail - POP3(S) and IMAP(S)  Full multithreading framework allows concurrent sampling by many threads and simultaneous sampling of different functions by seperate thread groups.  Careful GUI design allows faster operation and more precise timings.  Caching and offline analysis/replaying of test results.
  • 7. CONTINUE…  Highly Extensible:  Pluggable Samplers allow unlimited testing capabilities.  Several load statistics may be chosen with pluggable timers .  Data analysis and visualization plugins allow great extendibility as well as personalization.  Functions can be used to provide dynamic input to a test or provide data manipulation.  Scriptable Samplers (BeanShell is fully supported; and there is a sampler which supports BSF-compatible languages)
  • 8. INSTALLING JMETER (ON WINOW)  Install Java (2.2. or higher)  Download JMeter http://jakarta.apache.org/site/downloads/index.html  Add path of java installation in environment path variables.
  • 9. RUNNING JMETER IN WINDOWS  Open command prompt (user administrative mode to avoid unnecessary hassle).  Traverse to [jmeter installation path]bin  Run Jmeter.bat If you are running test behind firewall try following argument to pass with command prompt.  -H [proxy server hostname or ip address] -P [proxy server port] -N [nonproxy hosts] (e.g. *.apache.org|localhost) -u [username for proxy authentication - if required] -a [password for proxy authentication - if required]
  • 10. ELEMENTS OF TEST PLANS  Thread Group  Setup number of thread  Set up ramp up period  No. of times test exectues  Controllers  Sampler (Send Request to Server)  Logical Controller (Customize logic to send request)  Listener  Graph Result  View Results Tree and many more.  Timers  Delay next request for certain amount of time
  • 11. CONTINUE….  Assertions  Allow you to assert fact about responses received from HTTP request  Configuration Elements  Allow you configure settings  Preprocessor  Execute prior to sampler request  PostProcessor  Execute some action after sampler request
  • 12. CREATING YOUR FIRST WEB TEST PLAN
  • 13. ADDING USERS  5 users send 3 requests on cfminds.com and repeat it twice. (5 users x 3 requests x 2 repeat = 30 requests)  Right click on test note >> Add >> Thread (users) >> Thread Group
  • 14. ADD DEFAULT HTTP REQUEST  You can add default http request setting from ADD >> Config Element >> HTTP request default.  This will let you define default http parameter for every request.
  • 15. ADDING HTTP REQEST ELEMENT  You can add it from ADD> Sampler >> HTTP Request
  • 16. ADDING LISTNER TO VIEW RESULT  Listner responsible for storing all of the results of our HTTP request and presenting in Visualize mode.
  • 17. DEMO
  • 18. GRAPH COMPARISON (5 USERS VS 50 USERS) 5 Users 50 Users
  • 20. HTTP COOKIE MANAGER  You can add cookie manager by right clicking on test plan Add >> Config Element >> HTTP Cookie Manager.  Usage:  Store and sends cookies just like browser  Maintain separate cookie for each thread but share in all requests.
  • 21. LOGIN IN TO SECURE PAGES  Find out action page of login form.  Create HTTP Request Sampler and pass username, password and other required data.  Most important : Add HTTP Cookie manager if session stores in cookie or depends on cookie.
  • 22. DEMO
  • 23. LOGIN WITH DIFFERENT USER IN EACH THREAD  Create CSV file with list of username and password  Store in same folder where your test stores  Add CSV Data set into your test tree from config elements  Add ${USER},${PASS} in request sampler as parameter.
  • 24. CONTROLLING REQUEST LOGIC  Logic Controllers can be used to control flow.
  • 25. DEMO
  • 26. RECORDING YOUR TEST PLAN  JMeter Proxy can use to record all request send to server.  Create test plan with default http testing  Add HTTP Proxy Server in Workbench node.  Define port# of proxy server  Define URL Pattern to include/exclude  .* - all  .*/.cfm – CFM pages  .*/.gif – GIF file etc.  Start Proxy server.  Setup Proxy server on your browser.
  • 27. DEMO
  • 28. JMETER DISTRIBUTED TESTING  JMeter client machine may not able to simulate enough users to stress server.  Control multiple machine to run JMeter without copying test samples to different machine.  Configuration:  Copy same version of JMeter to different computer.  Add remote node IP in JMeter.proeprties file.  Run JMeter on remote machine using /JMETER_HOME/bin/jmeter-server (in command prompt)  Start JMeter GUI in host machine.  Select any test plan.  Go to Run >> Remote Start >> Remote IP Address.
  • 29. DEMO