SlideShare uma empresa Scribd logo
1 de 25
PERFORMANCE TESTING USING
JMETER
Glassbeam App
SOME INTRODUCTION




Performance testing is in general testing performed to determine how
a system performs in terms of responsiveness and stability under a
particular workload. It can also serve to investigate, measure,
validate or verify other quality attributes of the system, such as
scalability, reliability and resource usage.
There are different types of performance testing:







under a specific expected load
Stress testing :: Stress testing is normally used to understand the upper limits of capacity
within the system.
Soak testing :: usually done to determine if the system can sustain the continuous expected
load.
Spike testing :: Spike testing is done by suddenly increasing the number of or load generated
by, users by a very large amount

Load Testing tool:




Load testing :: A load test is usually conducted to understand the behaviour of the system

Jmeter, Load runner etc.

Why Jmeter:


Its open source + fulfill almost all requirement.
INSTALLING AND CONFIGURING JMETER


Install Java




Your PC might already have java installed on your system, if not
just install it from here.
Check your java version:
Go to cmd and type java –version. You will get something like
this:
INSTALLING AND CONFIGURING JMETER
• ADD PATH OF JAVA INSTALLATION IN ENVIRONMENT PATH VARIABLES.

Go to Control Panel >> System >>
Advanced System Setting >> Environment
Variable
Go again to cmd and check the java
version showing correct or not.
DOWNLOAD JMETER


Download jmeter from


https://jmeter.apache.org/download_jmeter.cgi




This will download a zip file. Unzip this to a directory. Better to
unzip in C://
Start jmeter from cmd.
• Traverse to the jmeter installed path , for my case this is :
C:apache-jmeter-2.9bin
• And run jmeter.bat
This will open the GUI of Jmeter.
(If not, the download the dependencies ).
START WORKING WITH JMETER


Add a thread group: Go to
Test Plan>> Add >> Thread group
 Meaning of different parameter:
 Number of Thread : This is
the number of users who will


simultaneously use the app.
ADD AN HTTP REQUEST PARAMETER


Go to Thread Group >> ADD >> Sampler >> HTTP request.



Give the URL address. Port number etc. this takes default ones.
ADD COOKIE MANAGER


GB app depends very much on cookies and most importantly to switch over
to tabs etc, you need this .


Go to Thread Group>> Config Element >> HTTP Cookie
manager


Select Clear cookies each iteration.
ADD CSV DATA SET CONFIG -1
Pre-Configuration::
 This is most important element to add, specially if you
want to test some app, which needs login.
 Our Glassbeam app also require authentication, and at
once, only one user remain active.
 So you need to create maximum number of users in
your database. Eg. If you want to test the app with 20
users, you should have 20 users created on DB(in our
case Mysql DB).
 Add all the username and password in a notepad in
comma separated format and save it as test.csv.
 Save this file under bin of jmeter. ( Just to avoid the
huddels)
ADD CSV DATA SET CONFIG -2
Adding in Jmeter
Go to Thread Group >> Add >> Config Element >> CSV Data Set Config.
Only thing you need to change here is Filename , this will be complete path of your just saved csv file and variable name which
is username and password.( Note down this variable name—This will be used )

On

o
ADD LISTENERS


There are many listeners available you can add any
of those but best ones are: (Thread Group>>Listener>> Component)
Summary report
 View results tree


Aggregate Report
Graph result.
ASSERTION OF RESPONSE


Allow you to assert fact about responses received from HTTP
request
ADD> Assertion >> Response Assertion
ADD RECORDING CONTROLLER
This is one of the most important element to add.
Go to Thread Group >> Logic Controller >>
Recording Controller
 You have to do nothing else here.

RECORDING THE PLAN


Now you need to record the steps what you want to do
while performance testing.
 Go to workbench>> Non text element >> HTTP proxy
server
 Keep everything as default ones .
 From Target Controller select Thread Group >>
Recording controller.
RECORDING THE PLAN -2


URL patterns to exclude/include:


You can add patterns to exclude or include the scripts which
you don’t care. Eg. The response time of jpg,png image etc we
usually don’t care (these are anyways in ms).
RECORDING THE PLAN -3


Now you need to just start the jmeter server. Just
click the Start button.



Now start will change to stop.
BROWSER CONFIGURATION


In Mozilla, go to Options >>
Settings and Choose the
local proxy settings as
shown: Click OK.
START RECORDING
Now go to Browser and type the URL: Remember
this URL should be same as mentioned in HTTP
request.
 This will start recording all the steps you will
perform under Recording Controller.
 You can see various scripts under
Recording controller. These are the
scripts ran to show the Login page.

LOGIN WITH DIFFERENT USERNAME-1
Just go ahead with your recording and Login with
your username and Password.
 Identify the script which is doing the Login
operation. In our case, this is ticketlogin script.

LOGIN WITH DIFFERENT USERNAME-2
Now this is the time to remind you csv data set
config.
 Replace the actual username and password with
variables, eg. ${username} and password.(see the
image)




These variable will take value from the excel sheet
you placed under bin.
ADDING THE TEST CASES


Now whatever you will do , this will get recorded in
jmeter. For example, search for aruba , selecting a
facet etc. For every operation a lot of scripts will get
executed, you need to either filter out or select only
the important ones. Keep recording all the major
steps which may take maximum time.
PLAY BACK











Now you are done with your record, this is time to run it.
Stop recording and Click play button to start playback.
Keep monitoring the result in Summary table, graph
result etc.
Remember to add the desired number of thread etc. in
thread group.
You can add assertion in between each result. This
need to add manually only. This will be not part of
recording.
Note the top right corner of jmeter, this will tell you
whether Jmeter is running or done with the test.
More about listeners like Tree result, summay table etc.
can be found on Jmeter official website.
GRAPH COMPARISON (5 USERS VS 50 USERS)

5 Users

50 Users
SOME IMPORTANT TERMS


Label: In the label section you will able to see all the recorded http request, during test run or after test run.



Samples: Samples denote to the number of http request ran for given thread. Like if we have one http request and we run it with 5 users, than the number
of samples will be 5x1=5.



Same if the sample ran two times for the single user, than the number of samples for 5 users will be 5x2=10.



Average: Average is the average response time for that particular http request. This response time is in millisecond. Like in the image you can see for first
label, in which the number of sample is 4 because that sample run 2 time for single user and i ran the test with 2 user. So for 4 samples the average
response time is 401 ms.



Min: Min denotes to the minimum response time taken by the http request. Like if the minimum response time for first four samples is 266 ms. It means one
http request responded in 266 ms out of four samples.



Max: Max denotes to the maximum response time taken by the http request. Like if the maximum response time for first four samples is 552 ms. It means
one http request responded in 552 ms out of four samples.



90% Line :The 90% line tells you that 90% of the samples fell at or below that number. However, it is more meaningful than average in terms of
SLA. We expect it within 2x of average time. That is, if average time is 500ms, we expect 90% line is less than 1000ms. Otherwise the system
fluctuates a lot.



Error %: This denotes the error percentage in samples during run. This error can be of 404(file not found), or may be exception or any kind of error during
test run will be shown in Error %.



Throughput: The throughput is the number of requests per unit of time (seconds, minutes, hours) that are sent to your server during the test.A1
Happy
TESTING

Mais conteúdo relacionado

Mais procurados

Introduction to jmeter
Introduction to jmeterIntroduction to jmeter
Introduction to jmetertest test
 
Apache JMeter - A brief introduction
Apache JMeter - A brief introductionApache JMeter - A brief introduction
Apache JMeter - A brief introductionsilenceIT Inc.
 
Performance testing with jmeter
Performance testing with jmeter Performance testing with jmeter
Performance testing with jmeter Knoldus Inc.
 
Performance testing jmeter
Performance testing jmeterPerformance testing jmeter
Performance testing jmeterBhojan Rajan
 
Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeterGalih Lasahido
 
Performance Testing Using JMeter | Edureka
Performance Testing Using JMeter | EdurekaPerformance Testing Using JMeter | Edureka
Performance Testing Using JMeter | EdurekaEdureka!
 
JMeter - Performance testing your webapp
JMeter - Performance testing your webappJMeter - Performance testing your webapp
JMeter - Performance testing your webappAmit Solanki
 
Performance Testing With Jmeter
Performance Testing With JmeterPerformance Testing With Jmeter
Performance Testing With JmeterAdam Goucher
 
Load Testing and JMeter Presentation
Load Testing and JMeter PresentationLoad Testing and JMeter Presentation
Load Testing and JMeter PresentationNeill Lima
 
Using JMeter and Google Analytics for Software Performance Testing
Using JMeter and Google Analytics for Software Performance TestingUsing JMeter and Google Analytics for Software Performance Testing
Using JMeter and Google Analytics for Software Performance TestingXBOSoft
 
Introduction to blazemeter and jmeter
Introduction to blazemeter and jmeterIntroduction to blazemeter and jmeter
Introduction to blazemeter and jmeterb4usolution .
 
JMeter & ColdFusion
JMeter & ColdFusion JMeter & ColdFusion
JMeter & ColdFusion isummation
 

Mais procurados (20)

Introduction to jmeter
Introduction to jmeterIntroduction to jmeter
Introduction to jmeter
 
Load testing jmeter
Load testing jmeterLoad testing jmeter
Load testing jmeter
 
Apache JMeter - A brief introduction
Apache JMeter - A brief introductionApache JMeter - A brief introduction
Apache JMeter - A brief introduction
 
Performance testing with jmeter
Performance testing with jmeter Performance testing with jmeter
Performance testing with jmeter
 
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
 
Load testing with J meter
Load testing with J meterLoad testing with J meter
Load testing with J meter
 
Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeter
 
JMeter
JMeterJMeter
JMeter
 
Performance Testing Using JMeter | Edureka
Performance Testing Using JMeter | EdurekaPerformance Testing Using JMeter | Edureka
Performance Testing Using JMeter | Edureka
 
JMeter - Performance testing your webapp
JMeter - Performance testing your webappJMeter - Performance testing your webapp
JMeter - Performance testing your webapp
 
Performance Testing With Jmeter
Performance Testing With JmeterPerformance Testing With Jmeter
Performance Testing With Jmeter
 
JMeter Intro
JMeter IntroJMeter Intro
JMeter Intro
 
Load Testing and JMeter Presentation
Load Testing and JMeter PresentationLoad Testing and JMeter Presentation
Load Testing and JMeter Presentation
 
JMeter
JMeterJMeter
JMeter
 
Using JMeter and Google Analytics for Software Performance Testing
Using JMeter and Google Analytics for Software Performance TestingUsing JMeter and Google Analytics for Software Performance Testing
Using JMeter and Google Analytics for Software Performance Testing
 
Introduction to blazemeter and jmeter
Introduction to blazemeter and jmeterIntroduction to blazemeter and jmeter
Introduction to blazemeter and jmeter
 
JMeter & ColdFusion
JMeter & ColdFusion JMeter & ColdFusion
JMeter & ColdFusion
 
JMETER-SKILLWISE
JMETER-SKILLWISEJMETER-SKILLWISE
JMETER-SKILLWISE
 

Semelhante a Performance testing using Jmeter for apps which needs authentication

Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meterPurna Chandar
 
Software testing
Software testingSoftware testing
Software testingnil65
 
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
 
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
 
Apachejmeterabriefintroduction
ApachejmeterabriefintroductionApachejmeterabriefintroduction
ApachejmeterabriefintroductionForedoomed
 
Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Nitish Bhardwaj
 
Perfromane Test Tool jmeter
Perfromane Test Tool jmeterPerfromane Test Tool jmeter
Perfromane Test Tool jmeterNaga Mallala
 
Day1_Apache_JMeter_Overview
Day1_Apache_JMeter_OverviewDay1_Apache_JMeter_Overview
Day1_Apache_JMeter_OverviewSravanthi N
 
"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
 
Automation frameworks
Automation frameworksAutomation frameworks
Automation frameworksVishwanath KC
 
Iasi code camp 12 october 2013 performance testing for web applications with...
Iasi code camp 12 october 2013  performance testing for web applications with...Iasi code camp 12 october 2013  performance testing for web applications with...
Iasi code camp 12 october 2013 performance testing for web applications with...Codecamp Romania
 
Getting Started with Apache Jmeter
Getting Started with Apache JmeterGetting Started with Apache Jmeter
Getting Started with Apache JmeterMindfire Solutions
 
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
 
JMeter JMX Script Creation via BlazeMeter
JMeter JMX Script Creation via BlazeMeterJMeter JMX Script Creation via BlazeMeter
JMeter JMX Script Creation via BlazeMeterRapidValue
 
Performance Test Plan - Sample 1
Performance Test Plan - Sample 1Performance Test Plan - Sample 1
Performance Test Plan - Sample 1Atul Pant
 

Semelhante a Performance testing using Jmeter for apps which needs authentication (20)

Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meter
 
Software testing
Software testingSoftware testing
Software testing
 
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)
 
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
 
Apachejmeterabriefintroduction
ApachejmeterabriefintroductionApachejmeterabriefintroduction
Apachejmeterabriefintroduction
 
Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02
 
Perfromane Test Tool jmeter
Perfromane Test Tool jmeterPerfromane Test Tool jmeter
Perfromane Test Tool jmeter
 
Test automation
Test automationTest automation
Test automation
 
Day1_Apache_JMeter_Overview
Day1_Apache_JMeter_OverviewDay1_Apache_JMeter_Overview
Day1_Apache_JMeter_Overview
 
"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd Session"Introduction to JMeter" @ CPTM 3rd Session
"Introduction to JMeter" @ CPTM 3rd Session
 
Automation frameworks
Automation frameworksAutomation frameworks
Automation frameworks
 
Iasi code camp 12 october 2013 performance testing for web applications with...
Iasi code camp 12 october 2013  performance testing for web applications with...Iasi code camp 12 october 2013  performance testing for web applications with...
Iasi code camp 12 october 2013 performance testing for web applications with...
 
Getting Started with Apache Jmeter
Getting Started with Apache JmeterGetting Started with Apache Jmeter
Getting Started with Apache 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
 
MSSQL Queries.pdf
MSSQL Queries.pdfMSSQL Queries.pdf
MSSQL Queries.pdf
 
JMeter JMX Script Creation via BlazeMeter
JMeter JMX Script Creation via BlazeMeterJMeter JMX Script Creation via BlazeMeter
JMeter JMX Script Creation via BlazeMeter
 
Performance Test Plan - Sample 1
Performance Test Plan - Sample 1Performance Test Plan - Sample 1
Performance Test Plan - Sample 1
 

Último

General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 

Último (20)

Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

Performance testing using Jmeter for apps which needs authentication

  • 2. SOME INTRODUCTION   Performance testing is in general testing performed to determine how a system performs in terms of responsiveness and stability under a particular workload. It can also serve to investigate, measure, validate or verify other quality attributes of the system, such as scalability, reliability and resource usage. There are different types of performance testing:      under a specific expected load Stress testing :: Stress testing is normally used to understand the upper limits of capacity within the system. Soak testing :: usually done to determine if the system can sustain the continuous expected load. Spike testing :: Spike testing is done by suddenly increasing the number of or load generated by, users by a very large amount Load Testing tool:   Load testing :: A load test is usually conducted to understand the behaviour of the system Jmeter, Load runner etc. Why Jmeter:  Its open source + fulfill almost all requirement.
  • 3. INSTALLING AND CONFIGURING JMETER  Install Java   Your PC might already have java installed on your system, if not just install it from here. Check your java version: Go to cmd and type java –version. You will get something like this:
  • 4. INSTALLING AND CONFIGURING JMETER • ADD PATH OF JAVA INSTALLATION IN ENVIRONMENT PATH VARIABLES. Go to Control Panel >> System >> Advanced System Setting >> Environment Variable Go again to cmd and check the java version showing correct or not.
  • 5. DOWNLOAD JMETER  Download jmeter from  https://jmeter.apache.org/download_jmeter.cgi   This will download a zip file. Unzip this to a directory. Better to unzip in C:// Start jmeter from cmd. • Traverse to the jmeter installed path , for my case this is : C:apache-jmeter-2.9bin • And run jmeter.bat This will open the GUI of Jmeter. (If not, the download the dependencies ).
  • 6. START WORKING WITH JMETER  Add a thread group: Go to Test Plan>> Add >> Thread group  Meaning of different parameter:  Number of Thread : This is the number of users who will  simultaneously use the app.
  • 7. ADD AN HTTP REQUEST PARAMETER  Go to Thread Group >> ADD >> Sampler >> HTTP request.  Give the URL address. Port number etc. this takes default ones.
  • 8. ADD COOKIE MANAGER  GB app depends very much on cookies and most importantly to switch over to tabs etc, you need this .  Go to Thread Group>> Config Element >> HTTP Cookie manager  Select Clear cookies each iteration.
  • 9. ADD CSV DATA SET CONFIG -1 Pre-Configuration::  This is most important element to add, specially if you want to test some app, which needs login.  Our Glassbeam app also require authentication, and at once, only one user remain active.  So you need to create maximum number of users in your database. Eg. If you want to test the app with 20 users, you should have 20 users created on DB(in our case Mysql DB).  Add all the username and password in a notepad in comma separated format and save it as test.csv.  Save this file under bin of jmeter. ( Just to avoid the huddels)
  • 10. ADD CSV DATA SET CONFIG -2 Adding in Jmeter Go to Thread Group >> Add >> Config Element >> CSV Data Set Config. Only thing you need to change here is Filename , this will be complete path of your just saved csv file and variable name which is username and password.( Note down this variable name—This will be used ) On o
  • 11. ADD LISTENERS  There are many listeners available you can add any of those but best ones are: (Thread Group>>Listener>> Component) Summary report  View results tree  Aggregate Report Graph result.
  • 12. ASSERTION OF RESPONSE  Allow you to assert fact about responses received from HTTP request ADD> Assertion >> Response Assertion
  • 13. ADD RECORDING CONTROLLER This is one of the most important element to add. Go to Thread Group >> Logic Controller >> Recording Controller  You have to do nothing else here. 
  • 14. RECORDING THE PLAN  Now you need to record the steps what you want to do while performance testing.  Go to workbench>> Non text element >> HTTP proxy server  Keep everything as default ones .  From Target Controller select Thread Group >> Recording controller.
  • 15. RECORDING THE PLAN -2  URL patterns to exclude/include:  You can add patterns to exclude or include the scripts which you don’t care. Eg. The response time of jpg,png image etc we usually don’t care (these are anyways in ms).
  • 16. RECORDING THE PLAN -3  Now you need to just start the jmeter server. Just click the Start button.  Now start will change to stop.
  • 17. BROWSER CONFIGURATION  In Mozilla, go to Options >> Settings and Choose the local proxy settings as shown: Click OK.
  • 18. START RECORDING Now go to Browser and type the URL: Remember this URL should be same as mentioned in HTTP request.  This will start recording all the steps you will perform under Recording Controller.  You can see various scripts under Recording controller. These are the scripts ran to show the Login page. 
  • 19. LOGIN WITH DIFFERENT USERNAME-1 Just go ahead with your recording and Login with your username and Password.  Identify the script which is doing the Login operation. In our case, this is ticketlogin script. 
  • 20. LOGIN WITH DIFFERENT USERNAME-2 Now this is the time to remind you csv data set config.  Replace the actual username and password with variables, eg. ${username} and password.(see the image)   These variable will take value from the excel sheet you placed under bin.
  • 21. ADDING THE TEST CASES  Now whatever you will do , this will get recorded in jmeter. For example, search for aruba , selecting a facet etc. For every operation a lot of scripts will get executed, you need to either filter out or select only the important ones. Keep recording all the major steps which may take maximum time.
  • 22. PLAY BACK       Now you are done with your record, this is time to run it. Stop recording and Click play button to start playback. Keep monitoring the result in Summary table, graph result etc. Remember to add the desired number of thread etc. in thread group. You can add assertion in between each result. This need to add manually only. This will be not part of recording. Note the top right corner of jmeter, this will tell you whether Jmeter is running or done with the test. More about listeners like Tree result, summay table etc. can be found on Jmeter official website.
  • 23. GRAPH COMPARISON (5 USERS VS 50 USERS) 5 Users 50 Users
  • 24. SOME IMPORTANT TERMS  Label: In the label section you will able to see all the recorded http request, during test run or after test run.  Samples: Samples denote to the number of http request ran for given thread. Like if we have one http request and we run it with 5 users, than the number of samples will be 5x1=5.  Same if the sample ran two times for the single user, than the number of samples for 5 users will be 5x2=10.  Average: Average is the average response time for that particular http request. This response time is in millisecond. Like in the image you can see for first label, in which the number of sample is 4 because that sample run 2 time for single user and i ran the test with 2 user. So for 4 samples the average response time is 401 ms.  Min: Min denotes to the minimum response time taken by the http request. Like if the minimum response time for first four samples is 266 ms. It means one http request responded in 266 ms out of four samples.  Max: Max denotes to the maximum response time taken by the http request. Like if the maximum response time for first four samples is 552 ms. It means one http request responded in 552 ms out of four samples.  90% Line :The 90% line tells you that 90% of the samples fell at or below that number. However, it is more meaningful than average in terms of SLA. We expect it within 2x of average time. That is, if average time is 500ms, we expect 90% line is less than 1000ms. Otherwise the system fluctuates a lot.  Error %: This denotes the error percentage in samples during run. This error can be of 404(file not found), or may be exception or any kind of error during test run will be shown in Error %.  Throughput: The throughput is the number of requests per unit of time (seconds, minutes, hours) that are sent to your server during the test.A1