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

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
 
Automation - Apache JMeter
Automation - Apache JMeterAutomation - Apache JMeter
Automation - Apache JMeterWira Santos
 
Presentation on Apache Jmeter
Presentation on Apache JmeterPresentation on Apache Jmeter
Presentation on Apache JmeterSabitri Gaire
 
Jmeter Performance Testing
Jmeter Performance TestingJmeter Performance Testing
Jmeter Performance TestingAtul Pant
 
Performance testing jmeter
Performance testing jmeterPerformance testing jmeter
Performance testing jmeterBhojan Rajan
 
Apache JMeter - A brief introduction
Apache JMeter - A brief introductionApache JMeter - A brief introduction
Apache JMeter - A brief introductionsilenceIT Inc.
 
TestNG Session presented in Xebia XKE
TestNG Session presented in Xebia XKETestNG Session presented in Xebia XKE
TestNG Session presented in Xebia XKEAbhishek Yadav
 
TestNG Annotations in Selenium | Edureka
TestNG Annotations in Selenium | EdurekaTestNG Annotations in Selenium | Edureka
TestNG Annotations in Selenium | EdurekaEdureka!
 
How to Analyze Reports in Jmeter
How to Analyze Reports in JmeterHow to Analyze Reports in Jmeter
How to Analyze Reports in JmeterViviana Lesmes
 
Performance testing and reporting with JMeter
Performance testing and reporting with JMeterPerformance testing and reporting with JMeter
Performance testing and reporting with JMeterjvSlideshare
 
Perofrmance testing and apache jmeter
Perofrmance testing and apache jmeterPerofrmance testing and apache jmeter
Perofrmance testing and apache jmeterlethibichhoa
 
Mesurer les performances avec JMeter
Mesurer les performances avec JMeterMesurer les performances avec JMeter
Mesurer les performances avec JMeterClaude Falguiere
 
Performance testing with Jmeter
Performance testing with JmeterPerformance testing with Jmeter
Performance testing with JmeterPrashanth Kumar
 
Performance testing with JMeter
Performance testing with JMeterPerformance testing with JMeter
Performance testing with JMeterMikael Kundert
 
Performance testing with jmeter
Performance testing with jmeter Performance testing with jmeter
Performance testing with jmeter Knoldus Inc.
 

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
 
Load testing jmeter
Load testing jmeterLoad testing jmeter
Load testing jmeter
 
Automation - Apache JMeter
Automation - Apache JMeterAutomation - Apache JMeter
Automation - Apache JMeter
 
Presentation on Apache Jmeter
Presentation on Apache JmeterPresentation on Apache Jmeter
Presentation on Apache Jmeter
 
TestNG Framework
TestNG Framework TestNG Framework
TestNG Framework
 
Jmeter Performance Testing
Jmeter Performance TestingJmeter Performance Testing
Jmeter Performance Testing
 
Apache jMeter
Apache jMeterApache jMeter
Apache jMeter
 
Performance testing jmeter
Performance testing jmeterPerformance testing jmeter
Performance testing jmeter
 
J Meter Intro
J Meter IntroJ Meter Intro
J Meter Intro
 
Apache JMeter - A brief introduction
Apache JMeter - A brief introductionApache JMeter - A brief introduction
Apache JMeter - A brief introduction
 
TestNG Session presented in Xebia XKE
TestNG Session presented in Xebia XKETestNG Session presented in Xebia XKE
TestNG Session presented in Xebia XKE
 
TestNG Annotations in Selenium | Edureka
TestNG Annotations in Selenium | EdurekaTestNG Annotations in Selenium | Edureka
TestNG Annotations in Selenium | Edureka
 
How to Analyze Reports in Jmeter
How to Analyze Reports in JmeterHow to Analyze Reports in Jmeter
How to Analyze Reports in Jmeter
 
Performance testing and reporting with JMeter
Performance testing and reporting with JMeterPerformance testing and reporting with JMeter
Performance testing and reporting with JMeter
 
Perofrmance testing and apache jmeter
Perofrmance testing and apache jmeterPerofrmance testing and apache jmeter
Perofrmance testing and apache jmeter
 
Mesurer les performances avec JMeter
Mesurer les performances avec JMeterMesurer les performances avec JMeter
Mesurer les performances avec JMeter
 
Performance testing with Jmeter
Performance testing with JmeterPerformance testing with Jmeter
Performance testing with Jmeter
 
Performance testing with JMeter
Performance testing with JMeterPerformance testing with JMeter
Performance testing with JMeter
 
Java Unit Testing
Java Unit TestingJava Unit Testing
Java Unit Testing
 
Performance testing with jmeter
Performance testing with jmeter Performance testing with jmeter
Performance testing with jmeter
 

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 .
 
Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meterPurna Chandar
 
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
 
Performance testing using jmeter
Performance testing using jmeterPerformance testing using jmeter
Performance testing using jmeterRachappa Bandi
 
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
 

Similar to JMeter & ColdFusion (20)

Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02
 
Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meter
 
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
 
JMeter Intro
JMeter IntroJMeter Intro
JMeter Intro
 
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
 
Performance testing using jmeter
Performance testing using jmeterPerformance testing using jmeter
Performance testing using jmeter
 
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
 

Recently uploaded

Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 

Recently uploaded (20)

Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 

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