SlideShare a Scribd company logo
Introduction to HP Load
Runner
Performance & Load Testing Basics
 Introduction to Performance Testing
 Difference between Performance, Load and Stress
Testing
 Why Performance Testing?
 When is it required?
 What should be tested?
 Performance Testing Process
 Load Test configuration for a web system
 Practice Questions
Introduction to Performance Testing
 Performance testing is the process of determining the speed or
effectiveness of a computer, network, software program or device.
 Before going into the details, we should understand the factors that
governs Performance testing:
 Throughput
 Response Time
 Tuning
 Benchmarking
THROUGHPUT  Capability of a product to
handle multiple transactions
in a give period.
 Throughput represents the
number of requests/business
transactions processed by the
product in a specified time
duration.
 As the number of concurrent
users increase, the throughput
increases almost linearly with
the number of requests. As
there is very little congestion
within the Application Server
system queues.
Throughput
 In the heavy load zone or Section B, as the
concurrent client load increases, throughput remains
relatively constant.
 In Section C (the buckle zone) one or more of the
system components have become exhausted and
throughput starts to degrade. For example, the
system might enter the buckle zone when the
network connections at the Web server exhaust the
limits of the network adapter or if the requests
exceed operating system limits for file handles.
Response Time
 It is equally important to
find out how much time
each of the transactions
took to complete.
 Response time is defined as
the delay between the point
of request and the first
response from the product.
 The response time increases
proportionally to the user
load.
Tuning
 Tuning is the procedure by
which product performance is
enhanced by setting different
values to the parameters of
the product, operating system
and other components.
 Tuning improves the product
performance without having
to touch the source code of
the product.
Benchmarking
 A very well-improved
performance of a product
makes no business sense if
that performance does not
match up to the competitive
products.
 A careful analysis is needed
to chalk out the list of
transactions to be compared
across products so that an
apple-apple comparison
becomes possible.
Performance Testing - Definition
 The testing to evaluate the response time (speed),
throughput and utilization of system to execute its required
functions in comparison with different versions of the
same product or a different competitive product is called
Performance Testing.
 Performance testing is done to derive benchmark numbers
for the system.
 Heavy load is not applied to the system
 Tuning is performed until the system under test achieves
the expected levels of performance.
Difference between
Performance, Load and Stress Testing
Load Testing
 Process of exercising the system
under test by feeding it the largest
tasks it can operate with.
 Constantly increasing the load on
the system via automated tools to
simulate real time scenario with
virtual users.
Examples:
 Testing a word processor by
editing a very large document.
 For Web Application load is
defined in terms of concurrent
users or HTTP connections.
Difference between
Performance, Load and
Stress Testing
Stress Testing
 Trying to break the system under test
by overwhelming its resources or by
taking resources away from it.
 Purpose is to make sure that the
system fails and recovers gracefully.
Example:
 Double the baseline number for
concurrent users/HTTP connections.
 Randomly shut down and restart ports
on the network switches/routers that
connects servers.
Why Performance Testing?
 The week of Feb 6, 2000:
Hackers delivered over 1-Billion transactions concurrently to each
one of these sites.
 Yahoo
 eBay
 Buy.com
 Amazon
 eTrade
How did you think they performed ?
Why Performance Testing
 Identifies problems early on before they become costly to
resolve.
 Reduces development cycles.
 Produces better quality, more scalable code.
 Prevents revenue and credibility loss due to poor Web site
performance.
 Enables intelligent planning for future expansion.
 To ensure that the system meets performance expectations such
as response time, throughput etc. under given levels of load.
 Expose bugs that do not surface in cursory testing, such as
memory management bugs, memory leaks, buffer overflows,
etc.
When is it Required?
Design Phase:
Pages containing lots of images and multimedia for reasonable wait times.
Heavy loads are less important than knowing which types of content cause
slowdowns.
Development Phase:
To check results of individual pages and processes, looking for breaking
points, unnecessary code and bottlenecks.
Deployment Phase:
To identify the minimum hardware and software requirements for the
application.
What Should be Tested?
 High frequency transactions: The most frequently used transactions
have the potential to impact the performance of all of the other
transactions if they are not efficient.
 Mission Critical transactions: The more important transactions that
facilitate the core objectives of the system should be included, as failure
under load of these transactions has, by definition, the greatest impact.
 Read Transactions: At least one READ ONLY transaction should be
included, so that performance of such transactions can be differentiated
from other more complex transactions.
 Update Transactions: At least one update transaction should be
included so that performance of such transactions can be differentiated
from other transactions.
Performance Testing Process
 Determine the performance testing objectives
 Describe the application to test using a application model
1. Describe the Hardware environment
2. Create a Benchmark (Agenda) to be recorded in Phase 2.
A.Define what tasks each user will perform
B. Define (or estimate) the percentage of users per task.
1.Planning
Record
 Record the defined testing activities that will be used as a
foundation for your load test scripts.
 One activity per task or multiple activities depending on user
task definition.
Modify
 Modify load test scripts defined by recorder to reflect more
realistic Load test simulations.
 Defining the project, users.
 Randomize parameters (Data, times, environment)
 Randomize user activities that occur during the load test.
3.Modify2.Record1.Planning
Virtual Users (VUs): Test Goals
Start: 5 Max Response
Time <= 20 Sec
Incremented by: 5
Maximum: 200
Think Time: 5 sec
Test Script:
One typical user from login through completion.
4. Execute
 Monitoring the scenario: We monitor scenario
execution using the various online runtime
monitors.
 Analysing test results: During scenario
execution, the tool records the performance of the
application under different loads. We use the
graphs and reports to analyse the application’s
performance.
6.Analyze5.Monitor
Load Test Configuration for a Web System
Load Test Planning
 Why Planning
 Analysing the Application
 Defining Testing Objectives
 Gathering Requirements
 Load Test Checklist
 Practice Questions
WHY PLANNING
 As in any type of system testing, a well-defined test plan is the first essential step
to successful testing.
Planning load testing helps to:
 Build test scenarios that accurately emulate your working environment:
Load testing means testing the application under typical working conditions,
and checking for system performance, reliability, capacity, and so forth.
 Understand which resources are required for testing: Application testing
requires hardware, software, and human resources. Before beginning testing,
we should know which resources are available and decide how to use them
effectively.
 Define success criteria in measurable terms: Focused testing goals and test
criteria ensure successful testing. For example, it’s not enough to define
vague objectives like “Check server response time under heavy load.” A more
focused success criterion would be “Check that 50 customers can check their
account balance simultaneously & that server response time will not exceed
1- minute”
Why Planning
 Load test planning is a three-step process:
 Analyzing the Application
• Analysis ensures that the testing environment we create using LoadRunner will
accurately reflect the environment and configuration of the application under
test.
 Defining Testing Objectives
• Before testing, we should define exactly what we want to accomplish.
 Gathering Requirements
• All the requirements and resources should be evaluated and collected
beforehand to avoid any last minute hurdles.
Analyzing The Application
 Load testing does not require as much knowledge of the
application as functional testing does.
 Load tester should have some operational knowledge of
the application to be tested.
 Load tester should have the idea on how the application is
actually used in production to make an informed estimate.
 Load tester must know the application architecture (Client
Server, Local Deployment, Live URL), Platform and
Database used.
Defining Testing Objectives
 Determining and recording performance testing
objectives involves communicating with the team to
establish and update these objectives as the project
advances through milestones
 Performance, Load or Stress testing: Type and
scope of testing should be clear as each type of
testing has different requirements.
 Goal Setting: General load testing objectives should
be defined.
Defining Testing Objectives
 Common Objectives:
 Measuring end-user response time.
 Defining optimal hardware configuration.
 Checking reliability.
 Assist the development team in determining the performance
characteristics for various configuration options.
 Ensure that the new production hardware is no slower than the
previous release.
 Provide input data for scalability and capacity-planning efforts.
 Determine if the application is ready for deployment to
production.
 Detect bottlenecks to be tuned.
Defining Testing Objectives
Stating Objectives in Measurable Terms:
 Once you decide on your general load testing objectives, you should
identify more focused goals by stating your objectives in
measurable terms.
 To provide a baseline for evaluation, determine exactly what
constitutes acceptable and unacceptable test results.
 For example:
 General Objective:
• Product Evaluation: choose hardware for the Web server.
 Focused Objective:
• Product Evaluation: run the same group of 300 virtual users on
two different servers, HP and NEC. When all 300 users
simultaneously browse the pages of your Web application,
determine which hardware gives a better response time.
Gathering Requirements
Users: Identify all the types of people and processes that can put load on the
application or system.
 Defining the types of primary end users of the application or system such as
purchasers, claims processors, and sales reps
 Add other types of users such as system administrators, managers, and
report readers who use the application or system but are not the primary
users.
 Add types of non-human users such as batch processes, system backups,
bulk data loads and anything else that may add load or consume system
resources.
Transactions: For each type of user we identified in the previous step, identify the
tasks that the user performs.
Production Environment:
 Performance and capacity of an application is significantly affected by the
hardware and software components on which it executes.
Gathering Requirements
Production Environment:
 Speed, capacity, IP address and name, version numbers and other significant
information.
Test Environment:
 Should be similar to the production environment as is possible to be able to
get meaningful performance results.
 It is important that the databases be set up with the same amount of data in
the same proportions as the production environment as that can substantially
affect the performance.
Scenarios:
 Select the use cases to include.
 Determine how many instances of each use case will run concurrently.
 Determine how often the use cases will execute per hour.
 Select the test environment.
Gathering Requirements
Load test Tool:
 Ability to parameterize data.
 Ability to capture dynamic data and use on subsequent
requests.
 Application infrastructure monitoring.
 Support for the application's protocols.
Load test Lab must include the following:
 Test Servers.
 Databases.
 Network elements, operating systems and clients and server
hardware.
Load Test Check List
Planning
 Objective goals defined.
 Test plan written and reviewed.
Staff Skills
 Experience in load testing.
 Application knowledge.
 Systems knowledge.
 Communication and people skills.
Support Staff
 Key staff identified and allocated.
Load Test Lab
 Test servers allocated.
 Databases populated.
 Load test tools allocated.
Load Testing Tools
 Manual testing Limitations.
 Benefits of Automation.
 Tools used for Performance Testing.
 Practice Questions.
Manual Testing Limitations
Testers
Load Generation System Under Test
Do you have the testing resources?
• Testing personnel
• Client machines
How do you coordinate and synchronize users?
How do you collect and analyze results?
How do you achieve test repeatability?
Analysis?
All of you,
click the
GO button
again
Web server Database
server
Coordinator
Manual Testing Limitations
Manual Testing Limitations
 Expensive, requiring large amounts of both
personnel and machinery.
 Complicated, especially co-ordinating and
synchronising multiple testers.
 Involves a high degree of organization, especially
to record and analyse results meaningfully.
 Repeatability of the manual tests is limited.
Benefits of Automation
Load Generation System Under Test
Web server Database
server
Vuser
host
• Controller manages the virtual users
• Analyze results with graphs and
reports
• Replaces testers with virtual users
Solves the resource limitations
• Runs many Vusers on a few machinesAnalysis
Controller
Benefits of Automation
Using Automated Tools
 Reduces personnel requirements by replacing human users with
virtual users or Vusers. These Vusers emulate the behaviour of
real users
 Because numerous Vusers can run on a single computer, the
tool reduces the amount of hardware required for testing.
 Monitors the application performance online, enabling you to
fine-tune your system during test execution.
 It automatically records the performance of the application
during a test. You can choose from a wide variety of graphs and
reports to view the performance data.
 Because the tests are fully automated, you can easily repeat
them as often as you need.
Getting Familiar with LoadRunner
 Why LoadRunner
 System Requirements
 LoadRunner Installation
 LoadRunner Terminology
 LoadRunner Components
 How LoadRunner Works and its process
Why LoadRunner
 An industry-leading performance and load testing product by Hewlett-Packard
(since it acquired Mercury Interactive in November 2006).
 LoadRunner reduces the personnel requirements by replacing human users with
virtual users or Vusers. These Vusers emulate the behavior of real users —
operating real applications.
 Because numerous Vusers can run on a single computer, LoadRunner reduces
the hardware requirements.
 The LoadRunner Controller allows you to easily and effectively control all the
Vusers — from a single point of control.
 LoadRunner monitors the application performance online, enabling you to fine-
tune your system during test execution.
Why LoadRunner
 LoadRunner automatically records the performance of the
application during a test. You can choose from a wide
variety of graphs and reports to view the performance data.
 LoadRunner checks where performance delays occur:
network or client delays, CPU performance, I/O delays,
database locking, or other issues at the database server.
LoadRunner monitors the network and server resources to
help you improve performance.
 Because LoadRunner tests are fully automated, you can
easily repeat them as often as you need.
System Requirements - Controller, Vugen and
Analysis System Requirements
 Processor:
 CPU Type: Intel Core, Pentium, AMD or compatible
 Speed: 1 GHz minimum. 2 GHz or higher recommended
 Intel Hyper-Threading technology is not supported.
 Operating System: The following 32-bit Windows operating systems are supported:
 Windows Vista SP1
 Windows XP Professional SP2 or SP3
 Windows Server 2003 Standard
 Edition/Enterprise Edition SP2
 Windows Server 2003 Standard
 Edition/Enterprise Edition R2 SP2
 RAM:
 Minimum: 512 MB.
 Recommended: 1 GB or higher.
System Requirements - Controller, Vugen and
Analysis System Requirements
 Screen Resolution: Minimum: 1024 x 768
 Browser
 Microsoft Internet Explorer 6.0 SP1 or SP2
 Microsoft Internet Explorer 7.0
 Available Hard Disk Space: Minimum 1.5 GB
System Requirements - Load Generator
 Processor:
 CPU Type: Intel Core, Pentium, AMD or compatible
 Speed: 1 GHz minimum. 2 GHz or higher recommended
 Intel Hyper-Threading technology is not supported.
 Operating System: The following 32-bit Windows operating systems are
supported:
 Windows Vista SP1
 Windows XP Professional SP2 or SP3
 Windows Server 2003 Standard
 Edition/Enterprise Edition SP2
 Windows Server 2003 Standard
 Edition/Enterprise Edition R2 SP2
 RAM:
 Minimum: 1 GB
 Memory depends on protocol type and system under test and can vary
greatly.
System Requirements - Load Generator
 Browser
 Microsoft Internet Explorer 6.0 SP1 or SP2
 Microsoft Internet Explorer 7.0
 Available Hard Disk Space: Minimum 1 GB
LoadRunner Terminology
 Vuser Scripts
 The actions that a Vuser performs during the scenario are
described in a Vuser script
 When a scenario is executed, each Vuser executes a Vuser
script. Vuser scripts include functions that measure and record
the performance of the server during the scenario.
 Transactions
 To measure the performance of the server, transactions are
defined.
 Transactions measure the time that it takes for the server to
respond to tasks submitted by Vusers.
LoadRunner Terminology
 Rendezvous Points
 Rendezvous points are used into Vuser scripts to emulate heavy
user load on the server.
 Rendezvous points instruct multiple Vusers to perform tasks at
exactly the same time.
 For example, to emulate peak load on the bank server, we
insert a rendezvous point to instruct 100 Vusers to
simultaneously deposit cash into their accounts.
 Controller
 LoadRunner Controller is used to manage and maintain
scenarios.
 Using the Controller, we can control all the Vusers in a
scenario from a single workstation.
LoadRunner Terminology
 Hosts
 When you execute a scenario, the LoadRunner Controller
distributes each Vuser in the scenario to a host.
 The host is the machine that executes the Vuser script, enabling
the Vuser to emulate the actions of a human user.
 Performance Analysis
 Vuser scripts include functions that measure and record system
performance during load-testing sessions.
 During a scenario run, you can monitor the network and server
resources.
 Following a scenario run, you can view performance analysis
data in reports and graphs.
How LoadRunner Works
How LoadRunner Works
 LoadRunner works by creating virtual users who take
the place of real users operating client software
sending requests using the HTTP protocol to web
servers.
 Requests from many virtual user clients are
generated by "Load Generators" in order to create a
load on various servers under test
 The Controller controls load test runs based on
"Scenarios" invoking compiled "Scripts" and
associated "Run-time Settings".
How LoadRunner Works
 Scripts are crafted using "Virtual user script Generator"
(named "VU Gen"), It generates C-language script code to be
executed by virtual users by capturing network traffic between
Internet application clients and servers.
 During runs, the status of each machine is monitored by the
Controller.
 At the end of each run, the Controller combines its monitoring
logs with logs obtained from load generators, and makes them
available to the "Analysis" program, which can then create run
result reports and graphs for Microsoft Word, Crystal Reports,
or an HTML webpage browser.
Load Testing Process
Plan
Test
Create
Scripts
Scenario
Creation
Scenario
Execution
Result
Analysis
Performance
Tuning
Download Process:
Step 1) To Download LoadRunner, go to this link
and click Try LoadRunner
Step 2) In next window, enter your personal
details and click on “Next” button.
Step 3) A window pops up showing the terms
and agreement. Click on “ I Agree”
Step 4) Click on “Download” on the next page as
shown below.
For Installation
Process see
next ppt

More Related Content

What's hot

Performance Testing With Loadrunner
Performance Testing With LoadrunnerPerformance Testing With Loadrunner
Performance Testing With Loadrunner
vladimir zaremba
 
Advanced Load Runner
Advanced Load RunnerAdvanced Load Runner
Advanced Load Runner
telab
 
Load and performance testing
Load and performance testingLoad and performance testing
Load and performance testing
Qualitest
 

What's hot (20)

Neoload
Neoload Neoload
Neoload
 
Performance testing using hp load runner
Performance testing using hp load runnerPerformance testing using hp load runner
Performance testing using hp load runner
 
Performance Testing With Loadrunner
Performance Testing With LoadrunnerPerformance Testing With Loadrunner
Performance Testing With Loadrunner
 
Load Testing and JMeter Presentation
Load Testing and JMeter PresentationLoad Testing and JMeter Presentation
Load Testing and JMeter Presentation
 
Performance testing with JMeter
Performance testing with JMeterPerformance testing with JMeter
Performance testing with JMeter
 
Introduction to performance testing
Introduction to performance testingIntroduction to performance testing
Introduction to performance testing
 
Loadrunner vs Jmeter
Loadrunner vs JmeterLoadrunner vs Jmeter
Loadrunner vs Jmeter
 
JMeter vs LoadRunner | Edureka
JMeter vs LoadRunner | EdurekaJMeter vs LoadRunner | Edureka
JMeter vs LoadRunner | Edureka
 
Performance testing interview questions and answers
Performance testing interview questions and answersPerformance testing interview questions and answers
Performance testing interview questions and answers
 
Performance Testing from Scratch + JMeter intro
Performance Testing from Scratch + JMeter introPerformance Testing from Scratch + JMeter intro
Performance Testing from Scratch + JMeter intro
 
Advanced Load Runner
Advanced Load RunnerAdvanced Load Runner
Advanced Load Runner
 
Fundamentals Performance Testing
Fundamentals Performance TestingFundamentals Performance Testing
Fundamentals Performance Testing
 
Load and performance testing
Load and performance testingLoad and performance testing
Load and performance testing
 
Hp Loadrunner
Hp LoadrunnerHp Loadrunner
Hp Loadrunner
 
Getting start with Performance Testing
Getting start with Performance Testing Getting start with Performance Testing
Getting start with Performance Testing
 
Performance testing : An Overview
Performance testing : An OverviewPerformance testing : An Overview
Performance testing : An Overview
 
Performance Testing
Performance TestingPerformance Testing
Performance Testing
 
Performance Testing Overview
Performance Testing OverviewPerformance Testing Overview
Performance Testing Overview
 
Load Testing Strategy 101
Load Testing Strategy 101Load Testing Strategy 101
Load Testing Strategy 101
 
Load Testing Best Practices
Load Testing Best PracticesLoad Testing Best Practices
Load Testing Best Practices
 

Similar to QSpiders - Introduction to HP Load Runner

Performance and load testing
Performance and load testingPerformance and load testing
Performance and load testing
sonukalpana
 
Performance testing and j meter overview
Performance testing and j meter overviewPerformance testing and j meter overview
Performance testing and j meter overview
krishna chaitanya
 
PerformanceTestingWithLoadrunner
PerformanceTestingWithLoadrunnerPerformanceTestingWithLoadrunner
PerformanceTestingWithLoadrunner
techgajanan
 
Load testing web based applications
Load testing   web based applicationsLoad testing   web based applications
Load testing web based applications
Jitendra Yadav
 
Performance Test Slideshow Recent
Performance Test Slideshow RecentPerformance Test Slideshow Recent
Performance Test Slideshow Recent
Future Simmons
 

Similar to QSpiders - Introduction to HP Load Runner (20)

QSpiders - Introduction to JMeter
QSpiders - Introduction to JMeterQSpiders - Introduction to JMeter
QSpiders - Introduction to JMeter
 
Performance and load testing
Performance and load testingPerformance and load testing
Performance and load testing
 
Application Performance, Test and Monitoring
Application Performance, Test and MonitoringApplication Performance, Test and Monitoring
Application Performance, Test and Monitoring
 
JMeter
JMeterJMeter
JMeter
 
Performance testing and j meter overview
Performance testing and j meter overviewPerformance testing and j meter overview
Performance testing and j meter overview
 
Less11 3 e_loadmodule_1
Less11 3 e_loadmodule_1Less11 3 e_loadmodule_1
Less11 3 e_loadmodule_1
 
PerformanceTestingWithLoadrunner
PerformanceTestingWithLoadrunnerPerformanceTestingWithLoadrunner
PerformanceTestingWithLoadrunner
 
4.3.application performance
4.3.application performance4.3.application performance
4.3.application performance
 
Performance testing
Performance testing Performance testing
Performance testing
 
Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02
 
Getting Started with Apache Jmeter
Getting Started with Apache JmeterGetting Started with Apache Jmeter
Getting Started with Apache Jmeter
 
Performance Testing Terms
Performance Testing Terms Performance Testing Terms
Performance Testing Terms
 
Silk Performer Presentation v1
Silk Performer Presentation v1Silk Performer Presentation v1
Silk Performer Presentation v1
 
Quick guide to plan and execute a load test
Quick guide to plan and execute a load testQuick guide to plan and execute a load test
Quick guide to plan and execute a load test
 
Neev Load Testing Services
Neev Load Testing ServicesNeev Load Testing Services
Neev Load Testing Services
 
Load Runner Methodology to Performance Testing
Load Runner Methodology to Performance TestingLoad Runner Methodology to Performance Testing
Load Runner Methodology to Performance Testing
 
Jmeter From Scratch
Jmeter From ScratchJmeter From Scratch
Jmeter From Scratch
 
Performance testing
Performance testingPerformance testing
Performance testing
 
Load testing web based applications
Load testing   web based applicationsLoad testing   web based applications
Load testing web based applications
 
Performance Test Slideshow Recent
Performance Test Slideshow RecentPerformance Test Slideshow Recent
Performance Test Slideshow Recent
 

More from Qspiders - Software Testing Training Institute

More from Qspiders - Software Testing Training Institute (20)

QSpiders - Unix Operating Systems and Commands
QSpiders - Unix Operating Systems  and CommandsQSpiders - Unix Operating Systems  and Commands
QSpiders - Unix Operating Systems and Commands
 
QSpiders - Variable Length-Subnet-Masks
QSpiders - Variable Length-Subnet-MasksQSpiders - Variable Length-Subnet-Masks
QSpiders - Variable Length-Subnet-Masks
 
QSpiders - Upper layer-protocols
QSpiders - Upper layer-protocolsQSpiders - Upper layer-protocols
QSpiders - Upper layer-protocols
 
QSpiders - Dod Model
QSpiders - Dod ModelQSpiders - Dod Model
QSpiders - Dod Model
 
QSpiders - Day1 Network Basics
QSpiders - Day1 Network BasicsQSpiders - Day1 Network Basics
QSpiders - Day1 Network Basics
 
QSpiders - Aptitude Assignments
QSpiders - Aptitude AssignmentsQSpiders - Aptitude Assignments
QSpiders - Aptitude Assignments
 
QSpiders - SQL (Data Base)
QSpiders - SQL (Data Base)QSpiders - SQL (Data Base)
QSpiders - SQL (Data Base)
 
QSpiders - Chapter 7 Debugging
QSpiders - Chapter 7 DebuggingQSpiders - Chapter 7 Debugging
QSpiders - Chapter 7 Debugging
 
QSpiders - Chapter 4 Checkpoints
QSpiders - Chapter 4 CheckpointsQSpiders - Chapter 4 Checkpoints
QSpiders - Chapter 4 Checkpoints
 
QSpiders - Simple Recording and Configuration of recording options for HP Loa...
QSpiders - Simple Recording and Configuration of recording options for HP Loa...QSpiders - Simple Recording and Configuration of recording options for HP Loa...
QSpiders - Simple Recording and Configuration of recording options for HP Loa...
 
QSpiders - Wonderlic Sample Question
QSpiders - Wonderlic Sample QuestionQSpiders - Wonderlic Sample Question
QSpiders - Wonderlic Sample Question
 
QSpiders - Chapter- 3 Synchronization point
QSpiders - Chapter- 3 Synchronization pointQSpiders - Chapter- 3 Synchronization point
QSpiders - Chapter- 3 Synchronization point
 
QSpiders - Presentation JMeter
QSpiders - Presentation JMeterQSpiders - Presentation JMeter
QSpiders - Presentation JMeter
 
QSpiders - Memory (JVM architecture)
QSpiders - Memory (JVM architecture)QSpiders - Memory (JVM architecture)
QSpiders - Memory (JVM architecture)
 
QSpiders - Jdk Jvm Jre and Jit
QSpiders - Jdk Jvm Jre and JitQSpiders - Jdk Jvm Jre and Jit
QSpiders - Jdk Jvm Jre and Jit
 
QSpiders - Simple replay and run time settings Loadrunner
QSpiders - Simple replay and run time settings LoadrunnerQSpiders - Simple replay and run time settings Loadrunner
QSpiders - Simple replay and run time settings Loadrunner
 
QSpiders - Major difference
QSpiders - Major differenceQSpiders - Major difference
QSpiders - Major difference
 
QSpiders - Interacting with My SQL Database
QSpiders - Interacting with My SQL DatabaseQSpiders - Interacting with My SQL Database
QSpiders - Interacting with My SQL Database
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
 
QSpiders - Server Architecture
QSpiders - Server ArchitectureQSpiders - Server Architecture
QSpiders - Server Architecture
 

Recently uploaded

Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
Avinash Rai
 

Recently uploaded (20)

The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 

QSpiders - Introduction to HP Load Runner

  • 1. Introduction to HP Load Runner
  • 2. Performance & Load Testing Basics  Introduction to Performance Testing  Difference between Performance, Load and Stress Testing  Why Performance Testing?  When is it required?  What should be tested?  Performance Testing Process  Load Test configuration for a web system  Practice Questions
  • 3. Introduction to Performance Testing  Performance testing is the process of determining the speed or effectiveness of a computer, network, software program or device.  Before going into the details, we should understand the factors that governs Performance testing:  Throughput  Response Time  Tuning  Benchmarking
  • 4. THROUGHPUT  Capability of a product to handle multiple transactions in a give period.  Throughput represents the number of requests/business transactions processed by the product in a specified time duration.  As the number of concurrent users increase, the throughput increases almost linearly with the number of requests. As there is very little congestion within the Application Server system queues.
  • 5. Throughput  In the heavy load zone or Section B, as the concurrent client load increases, throughput remains relatively constant.  In Section C (the buckle zone) one or more of the system components have become exhausted and throughput starts to degrade. For example, the system might enter the buckle zone when the network connections at the Web server exhaust the limits of the network adapter or if the requests exceed operating system limits for file handles.
  • 6. Response Time  It is equally important to find out how much time each of the transactions took to complete.  Response time is defined as the delay between the point of request and the first response from the product.  The response time increases proportionally to the user load.
  • 7. Tuning  Tuning is the procedure by which product performance is enhanced by setting different values to the parameters of the product, operating system and other components.  Tuning improves the product performance without having to touch the source code of the product.
  • 8. Benchmarking  A very well-improved performance of a product makes no business sense if that performance does not match up to the competitive products.  A careful analysis is needed to chalk out the list of transactions to be compared across products so that an apple-apple comparison becomes possible.
  • 9. Performance Testing - Definition  The testing to evaluate the response time (speed), throughput and utilization of system to execute its required functions in comparison with different versions of the same product or a different competitive product is called Performance Testing.  Performance testing is done to derive benchmark numbers for the system.  Heavy load is not applied to the system  Tuning is performed until the system under test achieves the expected levels of performance.
  • 10. Difference between Performance, Load and Stress Testing Load Testing  Process of exercising the system under test by feeding it the largest tasks it can operate with.  Constantly increasing the load on the system via automated tools to simulate real time scenario with virtual users. Examples:  Testing a word processor by editing a very large document.  For Web Application load is defined in terms of concurrent users or HTTP connections.
  • 11. Difference between Performance, Load and Stress Testing Stress Testing  Trying to break the system under test by overwhelming its resources or by taking resources away from it.  Purpose is to make sure that the system fails and recovers gracefully. Example:  Double the baseline number for concurrent users/HTTP connections.  Randomly shut down and restart ports on the network switches/routers that connects servers.
  • 12. Why Performance Testing?  The week of Feb 6, 2000: Hackers delivered over 1-Billion transactions concurrently to each one of these sites.  Yahoo  eBay  Buy.com  Amazon  eTrade How did you think they performed ?
  • 13. Why Performance Testing  Identifies problems early on before they become costly to resolve.  Reduces development cycles.  Produces better quality, more scalable code.  Prevents revenue and credibility loss due to poor Web site performance.  Enables intelligent planning for future expansion.  To ensure that the system meets performance expectations such as response time, throughput etc. under given levels of load.  Expose bugs that do not surface in cursory testing, such as memory management bugs, memory leaks, buffer overflows, etc.
  • 14. When is it Required? Design Phase: Pages containing lots of images and multimedia for reasonable wait times. Heavy loads are less important than knowing which types of content cause slowdowns. Development Phase: To check results of individual pages and processes, looking for breaking points, unnecessary code and bottlenecks. Deployment Phase: To identify the minimum hardware and software requirements for the application.
  • 15. What Should be Tested?  High frequency transactions: The most frequently used transactions have the potential to impact the performance of all of the other transactions if they are not efficient.  Mission Critical transactions: The more important transactions that facilitate the core objectives of the system should be included, as failure under load of these transactions has, by definition, the greatest impact.  Read Transactions: At least one READ ONLY transaction should be included, so that performance of such transactions can be differentiated from other more complex transactions.  Update Transactions: At least one update transaction should be included so that performance of such transactions can be differentiated from other transactions.
  • 17.  Determine the performance testing objectives  Describe the application to test using a application model 1. Describe the Hardware environment 2. Create a Benchmark (Agenda) to be recorded in Phase 2. A.Define what tasks each user will perform B. Define (or estimate) the percentage of users per task. 1.Planning
  • 18. Record  Record the defined testing activities that will be used as a foundation for your load test scripts.  One activity per task or multiple activities depending on user task definition. Modify  Modify load test scripts defined by recorder to reflect more realistic Load test simulations.  Defining the project, users.  Randomize parameters (Data, times, environment)  Randomize user activities that occur during the load test. 3.Modify2.Record1.Planning
  • 19. Virtual Users (VUs): Test Goals Start: 5 Max Response Time <= 20 Sec Incremented by: 5 Maximum: 200 Think Time: 5 sec Test Script: One typical user from login through completion. 4. Execute
  • 20.  Monitoring the scenario: We monitor scenario execution using the various online runtime monitors.  Analysing test results: During scenario execution, the tool records the performance of the application under different loads. We use the graphs and reports to analyse the application’s performance. 6.Analyze5.Monitor
  • 21. Load Test Configuration for a Web System
  • 22. Load Test Planning  Why Planning  Analysing the Application  Defining Testing Objectives  Gathering Requirements  Load Test Checklist  Practice Questions
  • 23. WHY PLANNING  As in any type of system testing, a well-defined test plan is the first essential step to successful testing. Planning load testing helps to:  Build test scenarios that accurately emulate your working environment: Load testing means testing the application under typical working conditions, and checking for system performance, reliability, capacity, and so forth.  Understand which resources are required for testing: Application testing requires hardware, software, and human resources. Before beginning testing, we should know which resources are available and decide how to use them effectively.  Define success criteria in measurable terms: Focused testing goals and test criteria ensure successful testing. For example, it’s not enough to define vague objectives like “Check server response time under heavy load.” A more focused success criterion would be “Check that 50 customers can check their account balance simultaneously & that server response time will not exceed 1- minute”
  • 24. Why Planning  Load test planning is a three-step process:  Analyzing the Application • Analysis ensures that the testing environment we create using LoadRunner will accurately reflect the environment and configuration of the application under test.  Defining Testing Objectives • Before testing, we should define exactly what we want to accomplish.  Gathering Requirements • All the requirements and resources should be evaluated and collected beforehand to avoid any last minute hurdles.
  • 25. Analyzing The Application  Load testing does not require as much knowledge of the application as functional testing does.  Load tester should have some operational knowledge of the application to be tested.  Load tester should have the idea on how the application is actually used in production to make an informed estimate.  Load tester must know the application architecture (Client Server, Local Deployment, Live URL), Platform and Database used.
  • 26. Defining Testing Objectives  Determining and recording performance testing objectives involves communicating with the team to establish and update these objectives as the project advances through milestones  Performance, Load or Stress testing: Type and scope of testing should be clear as each type of testing has different requirements.  Goal Setting: General load testing objectives should be defined.
  • 27. Defining Testing Objectives  Common Objectives:  Measuring end-user response time.  Defining optimal hardware configuration.  Checking reliability.  Assist the development team in determining the performance characteristics for various configuration options.  Ensure that the new production hardware is no slower than the previous release.  Provide input data for scalability and capacity-planning efforts.  Determine if the application is ready for deployment to production.  Detect bottlenecks to be tuned.
  • 28. Defining Testing Objectives Stating Objectives in Measurable Terms:  Once you decide on your general load testing objectives, you should identify more focused goals by stating your objectives in measurable terms.  To provide a baseline for evaluation, determine exactly what constitutes acceptable and unacceptable test results.  For example:  General Objective: • Product Evaluation: choose hardware for the Web server.  Focused Objective: • Product Evaluation: run the same group of 300 virtual users on two different servers, HP and NEC. When all 300 users simultaneously browse the pages of your Web application, determine which hardware gives a better response time.
  • 29. Gathering Requirements Users: Identify all the types of people and processes that can put load on the application or system.  Defining the types of primary end users of the application or system such as purchasers, claims processors, and sales reps  Add other types of users such as system administrators, managers, and report readers who use the application or system but are not the primary users.  Add types of non-human users such as batch processes, system backups, bulk data loads and anything else that may add load or consume system resources. Transactions: For each type of user we identified in the previous step, identify the tasks that the user performs. Production Environment:  Performance and capacity of an application is significantly affected by the hardware and software components on which it executes.
  • 30. Gathering Requirements Production Environment:  Speed, capacity, IP address and name, version numbers and other significant information. Test Environment:  Should be similar to the production environment as is possible to be able to get meaningful performance results.  It is important that the databases be set up with the same amount of data in the same proportions as the production environment as that can substantially affect the performance. Scenarios:  Select the use cases to include.  Determine how many instances of each use case will run concurrently.  Determine how often the use cases will execute per hour.  Select the test environment.
  • 31. Gathering Requirements Load test Tool:  Ability to parameterize data.  Ability to capture dynamic data and use on subsequent requests.  Application infrastructure monitoring.  Support for the application's protocols. Load test Lab must include the following:  Test Servers.  Databases.  Network elements, operating systems and clients and server hardware.
  • 32. Load Test Check List Planning  Objective goals defined.  Test plan written and reviewed. Staff Skills  Experience in load testing.  Application knowledge.  Systems knowledge.  Communication and people skills. Support Staff  Key staff identified and allocated. Load Test Lab  Test servers allocated.  Databases populated.  Load test tools allocated.
  • 33. Load Testing Tools  Manual testing Limitations.  Benefits of Automation.  Tools used for Performance Testing.  Practice Questions.
  • 34. Manual Testing Limitations Testers Load Generation System Under Test Do you have the testing resources? • Testing personnel • Client machines How do you coordinate and synchronize users? How do you collect and analyze results? How do you achieve test repeatability? Analysis? All of you, click the GO button again Web server Database server Coordinator
  • 35. Manual Testing Limitations Manual Testing Limitations  Expensive, requiring large amounts of both personnel and machinery.  Complicated, especially co-ordinating and synchronising multiple testers.  Involves a high degree of organization, especially to record and analyse results meaningfully.  Repeatability of the manual tests is limited.
  • 36. Benefits of Automation Load Generation System Under Test Web server Database server Vuser host • Controller manages the virtual users • Analyze results with graphs and reports • Replaces testers with virtual users Solves the resource limitations • Runs many Vusers on a few machinesAnalysis Controller
  • 37. Benefits of Automation Using Automated Tools  Reduces personnel requirements by replacing human users with virtual users or Vusers. These Vusers emulate the behaviour of real users  Because numerous Vusers can run on a single computer, the tool reduces the amount of hardware required for testing.  Monitors the application performance online, enabling you to fine-tune your system during test execution.  It automatically records the performance of the application during a test. You can choose from a wide variety of graphs and reports to view the performance data.  Because the tests are fully automated, you can easily repeat them as often as you need.
  • 38. Getting Familiar with LoadRunner  Why LoadRunner  System Requirements  LoadRunner Installation  LoadRunner Terminology  LoadRunner Components  How LoadRunner Works and its process
  • 39. Why LoadRunner  An industry-leading performance and load testing product by Hewlett-Packard (since it acquired Mercury Interactive in November 2006).  LoadRunner reduces the personnel requirements by replacing human users with virtual users or Vusers. These Vusers emulate the behavior of real users — operating real applications.  Because numerous Vusers can run on a single computer, LoadRunner reduces the hardware requirements.  The LoadRunner Controller allows you to easily and effectively control all the Vusers — from a single point of control.  LoadRunner monitors the application performance online, enabling you to fine- tune your system during test execution.
  • 40. Why LoadRunner  LoadRunner automatically records the performance of the application during a test. You can choose from a wide variety of graphs and reports to view the performance data.  LoadRunner checks where performance delays occur: network or client delays, CPU performance, I/O delays, database locking, or other issues at the database server. LoadRunner monitors the network and server resources to help you improve performance.  Because LoadRunner tests are fully automated, you can easily repeat them as often as you need.
  • 41. System Requirements - Controller, Vugen and Analysis System Requirements  Processor:  CPU Type: Intel Core, Pentium, AMD or compatible  Speed: 1 GHz minimum. 2 GHz or higher recommended  Intel Hyper-Threading technology is not supported.  Operating System: The following 32-bit Windows operating systems are supported:  Windows Vista SP1  Windows XP Professional SP2 or SP3  Windows Server 2003 Standard  Edition/Enterprise Edition SP2  Windows Server 2003 Standard  Edition/Enterprise Edition R2 SP2  RAM:  Minimum: 512 MB.  Recommended: 1 GB or higher.
  • 42. System Requirements - Controller, Vugen and Analysis System Requirements  Screen Resolution: Minimum: 1024 x 768  Browser  Microsoft Internet Explorer 6.0 SP1 or SP2  Microsoft Internet Explorer 7.0  Available Hard Disk Space: Minimum 1.5 GB
  • 43. System Requirements - Load Generator  Processor:  CPU Type: Intel Core, Pentium, AMD or compatible  Speed: 1 GHz minimum. 2 GHz or higher recommended  Intel Hyper-Threading technology is not supported.  Operating System: The following 32-bit Windows operating systems are supported:  Windows Vista SP1  Windows XP Professional SP2 or SP3  Windows Server 2003 Standard  Edition/Enterprise Edition SP2  Windows Server 2003 Standard  Edition/Enterprise Edition R2 SP2  RAM:  Minimum: 1 GB  Memory depends on protocol type and system under test and can vary greatly.
  • 44. System Requirements - Load Generator  Browser  Microsoft Internet Explorer 6.0 SP1 or SP2  Microsoft Internet Explorer 7.0  Available Hard Disk Space: Minimum 1 GB
  • 45. LoadRunner Terminology  Vuser Scripts  The actions that a Vuser performs during the scenario are described in a Vuser script  When a scenario is executed, each Vuser executes a Vuser script. Vuser scripts include functions that measure and record the performance of the server during the scenario.  Transactions  To measure the performance of the server, transactions are defined.  Transactions measure the time that it takes for the server to respond to tasks submitted by Vusers.
  • 46. LoadRunner Terminology  Rendezvous Points  Rendezvous points are used into Vuser scripts to emulate heavy user load on the server.  Rendezvous points instruct multiple Vusers to perform tasks at exactly the same time.  For example, to emulate peak load on the bank server, we insert a rendezvous point to instruct 100 Vusers to simultaneously deposit cash into their accounts.  Controller  LoadRunner Controller is used to manage and maintain scenarios.  Using the Controller, we can control all the Vusers in a scenario from a single workstation.
  • 47. LoadRunner Terminology  Hosts  When you execute a scenario, the LoadRunner Controller distributes each Vuser in the scenario to a host.  The host is the machine that executes the Vuser script, enabling the Vuser to emulate the actions of a human user.  Performance Analysis  Vuser scripts include functions that measure and record system performance during load-testing sessions.  During a scenario run, you can monitor the network and server resources.  Following a scenario run, you can view performance analysis data in reports and graphs.
  • 49. How LoadRunner Works  LoadRunner works by creating virtual users who take the place of real users operating client software sending requests using the HTTP protocol to web servers.  Requests from many virtual user clients are generated by "Load Generators" in order to create a load on various servers under test  The Controller controls load test runs based on "Scenarios" invoking compiled "Scripts" and associated "Run-time Settings".
  • 50. How LoadRunner Works  Scripts are crafted using "Virtual user script Generator" (named "VU Gen"), It generates C-language script code to be executed by virtual users by capturing network traffic between Internet application clients and servers.  During runs, the status of each machine is monitored by the Controller.  At the end of each run, the Controller combines its monitoring logs with logs obtained from load generators, and makes them available to the "Analysis" program, which can then create run result reports and graphs for Microsoft Word, Crystal Reports, or an HTML webpage browser.
  • 52. Download Process: Step 1) To Download LoadRunner, go to this link and click Try LoadRunner
  • 53. Step 2) In next window, enter your personal details and click on “Next” button.
  • 54. Step 3) A window pops up showing the terms and agreement. Click on “ I Agree”
  • 55. Step 4) Click on “Download” on the next page as shown below.