SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Performance Testing Using
Presented by QA Team
Friday, March 11, 2016
Focus of Performance Testing
11 March 2016
 Performance testing measures the quality attributes of the system, such
as scalability, reliability and resource usage.
The focus of Performance testing:
 Speed/Response Time - Determines whether the application responds
quickly.
 Scalability - Determines maximum user load the software application
can handle.
 Stability - Determines if the application is stable under varying loads
Why Performance Testing is Needed?
Most Common
Performance
Problem
Long Load
Time
Poor Response
Time
Poor
Scalability
Bottlenecking
11 March 2016
Performance testing uncovers what needs to be improved before the
product goes to market. Without performance testing, software is likely to
suffer from issues such as:
‱ Running slow while several users use it simultaneously,
‱ Inconsistencies across different operating systems and poor usability.
‱ Bottlenecks are obstructions in system which degrade overall system
performance. Some common performance bottlenecks are
 CPU utilization
 Memory utilization
 Network utilization
Types of Performance Testing
11 March 2016
Load testing - Applying desired number of load and checking the stability &
response time of the application.
Stress testing - Applying more then desired number of load and checking the
stability & response time of the application.
Soak/Endurance testing - To make sure the software can handle the expected load
over a long period of time.
Spike testing - by increasing the number of users suddenly by a very large amount
and measuring the performance of the system.
Volume testing - Transferring Huge volume of date & monitor the stability &
response time of the application.
About JMeter
11 March 2016
 It is an open source tool.
 It can load & perform test many different server types:
‱ Web – HTTP,HTTPS
‱ SOAP
‱ Database – JDBC
‱ LDAP
‱ JMS
‱ Mail – POP3(s) and IMAP(s)
 It allows concurrent sampling by many thread groups
 Test results can be captured in various format like summary
report, graph, results in tree & table, etc.
JMeter Work Flow
11 March 2016
11 March 2016
Concepts in JMeter
 How to prepare Test script in Jmeter
 How to put load & analyze performance metrics
 Importance of HTTP Cookie Manager
 Assertions
 Controllers
 Timers
 Correlation
 Data Drive Testing in Jmeter
 HTML link Parser usage in jmeter scripting
Elements in Test Plan
11 March 2016
A Test Plan describe a series of steps jmeter will execute when run. A
complete test plan will consist of one or more Thread group, logic
controller, listener, timers, assertions and config elements.
Thread Group
- Setup number of threads
- Setup ramp up period
- No. of times test execute
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 certain amount of time
Elements in Test Plan
11 March 2016
Assertions
- Allow you to assert fact about response received
from HTTP request
Configuration Elements
- Allow you configure settings
Pre Processor
- Execute prior to sampler request
Post Processer
- Execute some action after sample request
Recording The Jmeter Script
11 March 2016
 The HTTP(S) Test Script Recorder expects to find a Thread Group
element with a Recording Controller under it where it will record
HTTP Requests to.
 It is conveniently packages all your samples under one
controller, which can be given a name that describes the test
case.
 Included Pattern – We can include files share, such as .jsp, .asp,
.php, .html or the like. These you should "include" by entering
".*.jsp“ as an "Include Pattern".
 Exclude Pattern – We can exclude images by entering ".*.gif"
HTTP Cookie Manager Importance
11 March 2016
 The Cookie Manager element has two functions:
1. Tt stores and sends cookies just like a web browser. If you have an
HTTP Request and the response contains a cookie, the Cookie
Manager automatically stores that cookie and will use it for all future
requests to that particular web site.
2. You can manually add a cookie to the Cookie Manager. However, if
you do this, the cookie will be shared by all JMeter
How to put load & analyze performance
metrics
11 March 2016
Thread Group(user)
The thread group element controls the number of threads JMeter will
use to execute your test. The controls for a thread group allow you to:
 Set the number of threads
 Set the ramp-up period
 Set the number of times to execute the test
Listeners
A listener is a component that shows the results of the samples. The
results can be shown in a tree, tables, graphs or simply written to a log file.
Assertions
10 March 2016
 Using an assertion, you can essentially "test" that your application is
returning the results you expect it to.
 You can add an assertion to any Sampler.
 You can add an assertion to a HTTP Request that checks for the text,
"</HTML>". If JMeter cannot find the text, then it will mark this as a
failed request.
 Types of Assertions
‱ Response Assertion
‱ Size Assertion
‱ HTML Assertion
‱ Duration Assertion
 Listener – Assertion Results
Controllers
11 March 2016
JMeter has two types of Controllers:
1. Samplers
 Samplers tell JMeter to send requests to a server.
 Add an HTTP Request Sampler if you want JMeter to send an
HTTP request.
2. Logical Controllers
 Logical Controllers let you customize the logic that JMeter uses
to decide when to send requests.
 You can add an Interleave Logic Controller to alternate between
two HTTP Request Samplers
Listener – Jp@gc- Transaction Per Second
Timers
11 March 2016
 The timer will cause JMeter to delay a certain amount of
time before each sampler
 JMeter takes the sum of the timers and pauses for that amount of
time before executing the samplers to which the timers apply.
 Timers can be added as children of samplers or controllers in order
to restrict the samplers to which they are applied.
Listener – Results in Table
Correlation
11 March 2016
 Correlation is used to obtain data which unique for each run of your
test script(ex: session ids). While recording, these dynamic value are
hard-coded in your script causing the script to fail during playback.
 Correlation is a technique where dynamic value are not hard-coded
in your script but are extracted at run-time to avoid failure
 Correlation will be done using the Regular Expression Extractor in
Jmeter.
Sample of Regular Expression and Usage:
SessionID=(.+?)& to correlate the url/dynamic id between two
parameter. Here ‘SessionID=‘ and ‘&’ Need to be use if
HTML link Parser
11 March 2016
 This modifier parses HTML response from the server and extracts
links and forms. A URL test sample that passes through this
modifier will be examined to see if it "matches" any of the links or
forms extracted from the immediately previous response
Data Drive Testing in JMeter
11 March 2016
CSV Data Set Configuration is used to read lines from a file, and split them
into variables.
Conclusion
11 March 2016
JMeter can be a very valuable tool for determining how your web application server setup should be improved, to
reduce bottlenecks and increase performance.
Following these guidelines will assist in creating a real and continuous load −
 Use multiple instances of JMeter in case, the number of threads are more.
 Check the Scoping Rules and design accordingly.
 Use naming conventions always for all elements.
 Check the default browser Connectivity settings, before executing scripts.
 Add Listeners appropriately.
11 March 2016
You Have Questions ? We Have Answers !!!

Weitere Àhnliche Inhalte

Was ist angesagt?

Performance testing with jmeter
Performance testing with jmeter Performance testing with jmeter
Performance testing with jmeter Knoldus Inc.
 
Performance Testing With Jmeter
Performance Testing With JmeterPerformance Testing With Jmeter
Performance Testing With JmeterAdam Goucher
 
Performance testing with JMeter
Performance testing with JMeterPerformance testing with JMeter
Performance testing with JMeterMikael Kundert
 
Apache JMeter - A brief introduction
Apache JMeter - A brief introductionApache JMeter - A brief introduction
Apache JMeter - A brief introductionsilenceIT Inc.
 
Automation - Apache JMeter
Automation - Apache JMeterAutomation - Apache JMeter
Automation - Apache JMeterWira Santos
 
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
 
JMeter & ColdFusion
JMeter & ColdFusion JMeter & ColdFusion
JMeter & ColdFusion isummation
 
Perofrmance testing and apache jmeter
Perofrmance testing and apache jmeterPerofrmance testing and apache jmeter
Perofrmance testing and apache jmeterlethibichhoa
 
Jmeter Performance Testing
Jmeter Performance TestingJmeter Performance Testing
Jmeter Performance TestingAtul Pant
 
Performance testing and reporting with JMeter
Performance testing and reporting with JMeterPerformance testing and reporting with JMeter
Performance testing and reporting with JMeterjvSlideshare
 
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
 
How we can measure server performance using jmeter?
How we can measure server performance using jmeter?How we can measure server performance using jmeter?
How we can measure server performance using jmeter?BugRaptors
 
Performance Testing Using JMeter | Edureka
Performance Testing Using JMeter | EdurekaPerformance Testing Using JMeter | Edureka
Performance Testing Using JMeter | EdurekaEdureka!
 

Was ist angesagt? (20)

Load testing with J meter
Load testing with J meterLoad testing with J meter
Load testing with J meter
 
Performance testing with jmeter
Performance testing with jmeter Performance testing with jmeter
Performance testing with jmeter
 
Performance Testing With Jmeter
Performance Testing With JmeterPerformance Testing With Jmeter
Performance Testing With Jmeter
 
JMeter
JMeterJMeter
JMeter
 
Apache jMeter
Apache jMeterApache jMeter
Apache jMeter
 
Performance testing with JMeter
Performance testing with JMeterPerformance testing with JMeter
Performance testing with JMeter
 
Apache JMeter - A brief introduction
Apache JMeter - A brief introductionApache JMeter - A brief introduction
Apache JMeter - A brief introduction
 
Automation - Apache JMeter
Automation - Apache JMeterAutomation - Apache JMeter
Automation - Apache JMeter
 
Performance testing using jmeter
Performance testing using jmeterPerformance testing using jmeter
Performance testing using jmeter
 
JMeter
JMeterJMeter
JMeter
 
JMeter - Performance testing your webapp
JMeter - Performance testing your webappJMeter - Performance testing your webapp
JMeter - Performance testing your webapp
 
JMeter & ColdFusion
JMeter & ColdFusion JMeter & ColdFusion
JMeter & ColdFusion
 
JMeter Intro
JMeter IntroJMeter Intro
JMeter Intro
 
Jmeter
JmeterJmeter
Jmeter
 
Perofrmance testing and apache jmeter
Perofrmance testing and apache jmeterPerofrmance testing and apache jmeter
Perofrmance testing and apache jmeter
 
Jmeter Performance Testing
Jmeter Performance TestingJmeter Performance Testing
Jmeter Performance Testing
 
Performance testing and reporting with JMeter
Performance testing and reporting with JMeterPerformance testing and reporting with JMeter
Performance testing and reporting with JMeter
 
Load Test Drupal Site Using JMeter and Amazon AWS
Load Test Drupal Site Using JMeter and Amazon AWSLoad Test Drupal Site Using JMeter and Amazon AWS
Load Test Drupal Site Using JMeter and Amazon AWS
 
How we can measure server performance using jmeter?
How we can measure server performance using jmeter?How we can measure server performance using jmeter?
How we can measure server performance using jmeter?
 
Performance Testing Using JMeter | Edureka
Performance Testing Using JMeter | EdurekaPerformance Testing Using JMeter | Edureka
Performance Testing Using JMeter | Edureka
 

Andere mochten auch

Performance Testing - Apache Benchmark, JMeter
Performance Testing  - Apache Benchmark, JMeterPerformance Testing  - Apache Benchmark, JMeter
Performance Testing - Apache Benchmark, JMeterAntoni Orfin
 
Load Testing & Apache JMeter
Load Testing & Apache JMeterLoad Testing & Apache JMeter
Load Testing & Apache JMeterWO Community
 
Testlink Test Management with Teamforge
Testlink Test Management with TeamforgeTestlink Test Management with Teamforge
Testlink Test Management with TeamforgeCollabNet
 
Introduction to testlink
Introduction to testlinkIntroduction to testlink
Introduction to testlinkSumara Khan
 
TestLink
TestLinkTestLink
TestLinkISsoft
 
Load Testing and JMeter Presentation
Load Testing and JMeter PresentationLoad Testing and JMeter Presentation
Load Testing and JMeter PresentationNeill Lima
 
Apache JMeter from the Ground Up
Apache JMeter from the Ground UpApache JMeter from the Ground Up
Apache JMeter from the Ground UpCA Technologies
 
Introduction to performance testing
Introduction to performance testingIntroduction to performance testing
Introduction to performance testingRichard Bishop
 
Performance Testing for Mobile Apps & Sites using Apache JMeter
Performance Testing for Mobile Apps & Sites using Apache JMeterPerformance Testing for Mobile Apps & Sites using Apache JMeter
Performance Testing for Mobile Apps & Sites using Apache JMeterAlon Girmonsky
 
TestLink introduction
TestLink introductionTestLink introduction
TestLink introductionDavid Ionut
 
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
 
Get Started with JMeter in 60 Minutes
Get Started with JMeter in 60 MinutesGet Started with JMeter in 60 Minutes
Get Started with JMeter in 60 MinutesCA Technologies
 
Performance Testing
Performance TestingPerformance Testing
Performance Testingsharmaparish
 
Continuous Performance Testing with Taurus and Jmeter
Continuous Performance Testing with Taurus and JmeterContinuous Performance Testing with Taurus and Jmeter
Continuous Performance Testing with Taurus and JmeterAgile Testing Alliance
 
Introduction to performance testing
Introduction to performance testingIntroduction to performance testing
Introduction to performance testingTharinda Liyanage
 
Performance and load testing
Performance and load testingPerformance and load testing
Performance and load testingsonukalpana
 

Andere mochten auch (20)

Performance Testing - Apache Benchmark, JMeter
Performance Testing  - Apache Benchmark, JMeterPerformance Testing  - Apache Benchmark, JMeter
Performance Testing - Apache Benchmark, JMeter
 
GestiĂłn de Incidencias con Mantis BT
GestiĂłn de Incidencias con Mantis BTGestiĂłn de Incidencias con Mantis BT
GestiĂłn de Incidencias con Mantis BT
 
Load Testing & Apache JMeter
Load Testing & Apache JMeterLoad Testing & Apache JMeter
Load Testing & Apache JMeter
 
Testlink Test Management with Teamforge
Testlink Test Management with TeamforgeTestlink Test Management with Teamforge
Testlink Test Management with Teamforge
 
Jmeter
JmeterJmeter
Jmeter
 
Introduction to testlink
Introduction to testlinkIntroduction to testlink
Introduction to testlink
 
TestLink
TestLinkTestLink
TestLink
 
Load Testing and JMeter Presentation
Load Testing and JMeter PresentationLoad Testing and JMeter Presentation
Load Testing and JMeter Presentation
 
Apache JMeter from the Ground Up
Apache JMeter from the Ground UpApache JMeter from the Ground Up
Apache JMeter from the Ground Up
 
Introduction to performance testing
Introduction to performance testingIntroduction to performance testing
Introduction to performance testing
 
Performance Testing for Mobile Apps & Sites using Apache JMeter
Performance Testing for Mobile Apps & Sites using Apache JMeterPerformance Testing for Mobile Apps & Sites using Apache JMeter
Performance Testing for Mobile Apps & Sites using Apache JMeter
 
TestLink introduction
TestLink introductionTestLink introduction
TestLink introduction
 
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
 
JMeter Database Performace Testing - Keytorc Approach
JMeter Database Performace Testing - Keytorc ApproachJMeter Database Performace Testing - Keytorc Approach
JMeter Database Performace Testing - Keytorc Approach
 
Get Started with JMeter in 60 Minutes
Get Started with JMeter in 60 MinutesGet Started with JMeter in 60 Minutes
Get Started with JMeter in 60 Minutes
 
Performance Testing
Performance TestingPerformance Testing
Performance Testing
 
Continuous Performance Testing with Taurus and Jmeter
Continuous Performance Testing with Taurus and JmeterContinuous Performance Testing with Taurus and Jmeter
Continuous Performance Testing with Taurus and Jmeter
 
JMeter
JMeterJMeter
JMeter
 
Introduction to performance testing
Introduction to performance testingIntroduction to performance testing
Introduction to performance testing
 
Performance and load testing
Performance and load testingPerformance and load testing
Performance and load testing
 

Ähnlich wie Performance Testing Using JMeter

Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Nitish Bhardwaj
 
Apachejmeterabriefintroduction
ApachejmeterabriefintroductionApachejmeterabriefintroduction
ApachejmeterabriefintroductionForedoomed
 
Top 20 JMeter Interview Questions and Answers in 2023.pptx
Top 20 JMeter Interview Questions and Answers in 2023.pptxTop 20 JMeter Interview Questions and Answers in 2023.pptx
Top 20 JMeter Interview Questions and Answers in 2023.pptxAnanthReddy38
 
Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02Shivakumara .
 
Mykola Kovsh - Functional API automation with Jmeter
Mykola Kovsh - Functional API automation with JmeterMykola Kovsh - Functional API automation with Jmeter
Mykola Kovsh - Functional API automation with JmeterIevgenii Katsan
 
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
 
Jmeter interviewquestions
Jmeter interviewquestionsJmeter interviewquestions
Jmeter interviewquestionsgirichinna27
 
Database performance management
Database performance managementDatabase performance management
Database performance managementscottaver
 
Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meterPurna Chandar
 
"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd Session"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd SessionTharinda Liyanage
 
jmeter interview q.pdf
jmeter interview q.pdfjmeter interview q.pdf
jmeter interview q.pdfAmitPandey559256
 
Top 20 JMeter Interview Questions and Answers in 2023.pdf
Top 20 JMeter Interview Questions and Answers in 2023.pdfTop 20 JMeter Interview Questions and Answers in 2023.pdf
Top 20 JMeter Interview Questions and Answers in 2023.pdfAnanthReddy38
 
Server Performance by Tonny
Server Performance by TonnyServer Performance by Tonny
Server Performance by TonnyAgate Studio
 
Day1_Apache_JMeter_Overview
Day1_Apache_JMeter_OverviewDay1_Apache_JMeter_Overview
Day1_Apache_JMeter_OverviewSravanthi N
 
Getting Started with Apache Jmeter
Getting Started with Apache JmeterGetting Started with Apache Jmeter
Getting Started with Apache JmeterMindfire Solutions
 
Less11 3 e_loadmodule_1
Less11 3 e_loadmodule_1Less11 3 e_loadmodule_1
Less11 3 e_loadmodule_1Suresh Mishra
 
Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeterGalih Lasahido
 
Performance Test Plan - Sample 1
Performance Test Plan - Sample 1Performance Test Plan - Sample 1
Performance Test Plan - Sample 1Atul Pant
 
Software testing
Software testingSoftware testing
Software testingnil65
 

Ähnlich wie Performance Testing Using JMeter (20)

JMETER-SKILLWISE
JMETER-SKILLWISEJMETER-SKILLWISE
JMETER-SKILLWISE
 
Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02
 
Apachejmeterabriefintroduction
ApachejmeterabriefintroductionApachejmeterabriefintroduction
Apachejmeterabriefintroduction
 
Top 20 JMeter Interview Questions and Answers in 2023.pptx
Top 20 JMeter Interview Questions and Answers in 2023.pptxTop 20 JMeter Interview Questions and Answers in 2023.pptx
Top 20 JMeter Interview Questions and Answers in 2023.pptx
 
Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02
 
Mykola Kovsh - Functional API automation with Jmeter
Mykola Kovsh - Functional API automation with JmeterMykola Kovsh - Functional API automation with Jmeter
Mykola Kovsh - Functional API automation with Jmeter
 
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 interviewquestions
Jmeter interviewquestionsJmeter interviewquestions
Jmeter interviewquestions
 
Database performance management
Database performance managementDatabase performance management
Database performance management
 
Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meter
 
"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 interview q.pdf
jmeter interview q.pdfjmeter interview q.pdf
jmeter interview q.pdf
 
Top 20 JMeter Interview Questions and Answers in 2023.pdf
Top 20 JMeter Interview Questions and Answers in 2023.pdfTop 20 JMeter Interview Questions and Answers in 2023.pdf
Top 20 JMeter Interview Questions and Answers in 2023.pdf
 
Server Performance by Tonny
Server Performance by TonnyServer Performance by Tonny
Server Performance by Tonny
 
Day1_Apache_JMeter_Overview
Day1_Apache_JMeter_OverviewDay1_Apache_JMeter_Overview
Day1_Apache_JMeter_Overview
 
Getting Started with Apache Jmeter
Getting Started with Apache JmeterGetting Started with Apache Jmeter
Getting Started with Apache Jmeter
 
Less11 3 e_loadmodule_1
Less11 3 e_loadmodule_1Less11 3 e_loadmodule_1
Less11 3 e_loadmodule_1
 
Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeter
 
Performance Test Plan - Sample 1
Performance Test Plan - Sample 1Performance Test Plan - Sample 1
Performance Test Plan - Sample 1
 
Software testing
Software testingSoftware testing
Software testing
 

Mehr von RedBlackTree

An Introduction to Druid
An Introduction to DruidAn Introduction to Druid
An Introduction to DruidRedBlackTree
 
Mobile App Security - Best Practices
Mobile App Security - Best PracticesMobile App Security - Best Practices
Mobile App Security - Best PracticesRedBlackTree
 
The Mobile ToolChain with Fastlane - Code Red Talk at RedBlackTree
The Mobile ToolChain with Fastlane - Code Red Talk at RedBlackTreeThe Mobile ToolChain with Fastlane - Code Red Talk at RedBlackTree
The Mobile ToolChain with Fastlane - Code Red Talk at RedBlackTreeRedBlackTree
 
Navigation in React Native
Navigation in React NativeNavigation in React Native
Navigation in React NativeRedBlackTree
 
Introduction to React Native
Introduction to React NativeIntroduction to React Native
Introduction to React NativeRedBlackTree
 
Couchbase Chennai Meetup 2 - Couchbase - Mobile
Couchbase Chennai Meetup 2 - Couchbase - MobileCouchbase Chennai Meetup 2 - Couchbase - Mobile
Couchbase Chennai Meetup 2 - Couchbase - MobileRedBlackTree
 
Couchbase Chennai Meetup 2 - Big Data & Analytics
Couchbase Chennai Meetup 2 - Big Data & AnalyticsCouchbase Chennai Meetup 2 - Big Data & Analytics
Couchbase Chennai Meetup 2 - Big Data & AnalyticsRedBlackTree
 
An Introduction to Couchbase Mobile
An Introduction to Couchbase MobileAn Introduction to Couchbase Mobile
An Introduction to Couchbase MobileRedBlackTree
 

Mehr von RedBlackTree (8)

An Introduction to Druid
An Introduction to DruidAn Introduction to Druid
An Introduction to Druid
 
Mobile App Security - Best Practices
Mobile App Security - Best PracticesMobile App Security - Best Practices
Mobile App Security - Best Practices
 
The Mobile ToolChain with Fastlane - Code Red Talk at RedBlackTree
The Mobile ToolChain with Fastlane - Code Red Talk at RedBlackTreeThe Mobile ToolChain with Fastlane - Code Red Talk at RedBlackTree
The Mobile ToolChain with Fastlane - Code Red Talk at RedBlackTree
 
Navigation in React Native
Navigation in React NativeNavigation in React Native
Navigation in React Native
 
Introduction to React Native
Introduction to React NativeIntroduction to React Native
Introduction to React Native
 
Couchbase Chennai Meetup 2 - Couchbase - Mobile
Couchbase Chennai Meetup 2 - Couchbase - MobileCouchbase Chennai Meetup 2 - Couchbase - Mobile
Couchbase Chennai Meetup 2 - Couchbase - Mobile
 
Couchbase Chennai Meetup 2 - Big Data & Analytics
Couchbase Chennai Meetup 2 - Big Data & AnalyticsCouchbase Chennai Meetup 2 - Big Data & Analytics
Couchbase Chennai Meetup 2 - Big Data & Analytics
 
An Introduction to Couchbase Mobile
An Introduction to Couchbase MobileAn Introduction to Couchbase Mobile
An Introduction to Couchbase Mobile
 

KĂŒrzlich hochgeladen

A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
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
 
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
 
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
 
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
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
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
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
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
 
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
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 

KĂŒrzlich hochgeladen (20)

A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
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
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
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...
 
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
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
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
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
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
 
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
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 

Performance Testing Using JMeter

  • 1. Performance Testing Using Presented by QA Team Friday, March 11, 2016
  • 2. Focus of Performance Testing 11 March 2016  Performance testing measures the quality attributes of the system, such as scalability, reliability and resource usage. The focus of Performance testing:  Speed/Response Time - Determines whether the application responds quickly.  Scalability - Determines maximum user load the software application can handle.  Stability - Determines if the application is stable under varying loads
  • 3. Why Performance Testing is Needed? Most Common Performance Problem Long Load Time Poor Response Time Poor Scalability Bottlenecking 11 March 2016 Performance testing uncovers what needs to be improved before the product goes to market. Without performance testing, software is likely to suffer from issues such as: ‱ Running slow while several users use it simultaneously, ‱ Inconsistencies across different operating systems and poor usability. ‱ Bottlenecks are obstructions in system which degrade overall system performance. Some common performance bottlenecks are  CPU utilization  Memory utilization  Network utilization
  • 4. Types of Performance Testing 11 March 2016 Load testing - Applying desired number of load and checking the stability & response time of the application. Stress testing - Applying more then desired number of load and checking the stability & response time of the application. Soak/Endurance testing - To make sure the software can handle the expected load over a long period of time. Spike testing - by increasing the number of users suddenly by a very large amount and measuring the performance of the system. Volume testing - Transferring Huge volume of date & monitor the stability & response time of the application.
  • 5. About JMeter 11 March 2016  It is an open source tool.  It can load & perform test many different server types: ‱ Web – HTTP,HTTPS ‱ SOAP ‱ Database – JDBC ‱ LDAP ‱ JMS ‱ Mail – POP3(s) and IMAP(s)  It allows concurrent sampling by many thread groups  Test results can be captured in various format like summary report, graph, results in tree & table, etc.
  • 6. JMeter Work Flow 11 March 2016
  • 7. 11 March 2016 Concepts in JMeter  How to prepare Test script in Jmeter  How to put load & analyze performance metrics  Importance of HTTP Cookie Manager  Assertions  Controllers  Timers  Correlation  Data Drive Testing in Jmeter  HTML link Parser usage in jmeter scripting
  • 8. Elements in Test Plan 11 March 2016 A Test Plan describe a series of steps jmeter will execute when run. A complete test plan will consist of one or more Thread group, logic controller, listener, timers, assertions and config elements. Thread Group - Setup number of threads - Setup ramp up period - No. of times test execute 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 certain amount of time
  • 9. Elements in Test Plan 11 March 2016 Assertions - Allow you to assert fact about response received from HTTP request Configuration Elements - Allow you configure settings Pre Processor - Execute prior to sampler request Post Processer - Execute some action after sample request
  • 10. Recording The Jmeter Script 11 March 2016  The HTTP(S) Test Script Recorder expects to find a Thread Group element with a Recording Controller under it where it will record HTTP Requests to.  It is conveniently packages all your samples under one controller, which can be given a name that describes the test case.  Included Pattern – We can include files share, such as .jsp, .asp, .php, .html or the like. These you should "include" by entering ".*.jsp“ as an "Include Pattern".  Exclude Pattern – We can exclude images by entering ".*.gif"
  • 11. HTTP Cookie Manager Importance 11 March 2016  The Cookie Manager element has two functions: 1. Tt stores and sends cookies just like a web browser. If you have an HTTP Request and the response contains a cookie, the Cookie Manager automatically stores that cookie and will use it for all future requests to that particular web site. 2. You can manually add a cookie to the Cookie Manager. However, if you do this, the cookie will be shared by all JMeter
  • 12. How to put load & analyze performance metrics 11 March 2016 Thread Group(user) The thread group element controls the number of threads JMeter will use to execute your test. The controls for a thread group allow you to:  Set the number of threads  Set the ramp-up period  Set the number of times to execute the test Listeners A listener is a component that shows the results of the samples. The results can be shown in a tree, tables, graphs or simply written to a log file.
  • 13. Assertions 10 March 2016  Using an assertion, you can essentially "test" that your application is returning the results you expect it to.  You can add an assertion to any Sampler.  You can add an assertion to a HTTP Request that checks for the text, "</HTML>". If JMeter cannot find the text, then it will mark this as a failed request.  Types of Assertions ‱ Response Assertion ‱ Size Assertion ‱ HTML Assertion ‱ Duration Assertion  Listener – Assertion Results
  • 14. Controllers 11 March 2016 JMeter has two types of Controllers: 1. Samplers  Samplers tell JMeter to send requests to a server.  Add an HTTP Request Sampler if you want JMeter to send an HTTP request. 2. Logical Controllers  Logical Controllers let you customize the logic that JMeter uses to decide when to send requests.  You can add an Interleave Logic Controller to alternate between two HTTP Request Samplers Listener – Jp@gc- Transaction Per Second
  • 15. Timers 11 March 2016  The timer will cause JMeter to delay a certain amount of time before each sampler  JMeter takes the sum of the timers and pauses for that amount of time before executing the samplers to which the timers apply.  Timers can be added as children of samplers or controllers in order to restrict the samplers to which they are applied. Listener – Results in Table
  • 16. Correlation 11 March 2016  Correlation is used to obtain data which unique for each run of your test script(ex: session ids). While recording, these dynamic value are hard-coded in your script causing the script to fail during playback.  Correlation is a technique where dynamic value are not hard-coded in your script but are extracted at run-time to avoid failure  Correlation will be done using the Regular Expression Extractor in Jmeter. Sample of Regular Expression and Usage: SessionID=(.+?)& to correlate the url/dynamic id between two parameter. Here ‘SessionID=‘ and ‘&’ Need to be use if
  • 17. HTML link Parser 11 March 2016  This modifier parses HTML response from the server and extracts links and forms. A URL test sample that passes through this modifier will be examined to see if it "matches" any of the links or forms extracted from the immediately previous response
  • 18. Data Drive Testing in JMeter 11 March 2016 CSV Data Set Configuration is used to read lines from a file, and split them into variables.
  • 19. Conclusion 11 March 2016 JMeter can be a very valuable tool for determining how your web application server setup should be improved, to reduce bottlenecks and increase performance. Following these guidelines will assist in creating a real and continuous load −  Use multiple instances of JMeter in case, the number of threads are more.  Check the Scoping Rules and design accordingly.  Use naming conventions always for all elements.  Check the default browser Connectivity settings, before executing scripts.  Add Listeners appropriately.
  • 20. 11 March 2016 You Have Questions ? We Have Answers !!!