SlideShare uma empresa Scribd logo
1 de 49
ibm.com/bcs © Copyright IBM Corporation 2006CONFIDENTIAL – Not for Distribution
PLANNING LOADTESTINGPLANNING LOADTESTING
LESSON 1LESSON 1
CONFIDENTIAL
© Copyright IBM Corporation 2006
Why Plan?Why Plan?
So that you will be able to:
 Build test scenarios that accurately emulate your system
 Know the required resources for testing
 Define the load test objective
 Define success criteria (in measurable terms)
CONFIDENTIAL
© Copyright IBM Corporation 2006
LoadRunnerWorkflowLoadRunnerWorkflow
Plan Load TestingPlan Load Testing11
Create Scenario3
Run Scenario4
Analyze Results5
Create Vuser Scripts2
Debug and Run Scenario Again6
Define load testing objectives
Analyze system under test
Plan LoadRunner Implementation
CONFIDENTIAL
© Copyright IBM Corporation 2006
Planning Load TestingPlanning Load Testing
In this lesson you will learn how to:
1 - Define load testing objectives
Objectives
2 - Analyze the system under test
3 - Plan LoadRunner implementation
Vuser Vuser
VuserVuser
Controller
CONFIDENTIAL
© Copyright IBM Corporation 2006
1 - Define Load Testing Objectives1 - Define Load Testing Objectives
Why test objectives?
“Successful projects are those that have a defined test objective… and provide actionable results
and conclusion…”
Source: “The Art of Testing Network Systems” Robert W. Buchanan, Jr.
Limit your objectives
“...Projects should have one or, at the most, two test
objectives… More than two objectives dilutes the effort
and makes [ testing ] virtually impossible.”
State objectives in measurable terms
“...There is nothing worse than completing [ a test ]
and then disagreeing on whether or not the system passed.”
CONFIDENTIAL
© Copyright IBM Corporation 2006
Common Test ObjectivesCommon Test Objectives
Application response time
How long does it take to complete a task?
Configuration sizing
Which configuration provides the best performance
level?
Acceptance
Is the system stable enough to go into production?
Regression
Does the new version of the software adversely
affect response time?
Reliability
How stable is the system under a heavy work load?
Capacity planning
At what point does degradation in performance
occur?
Bottleneck identification
What is the cause of degradation in performance?
Product evaluation
What is the best server for 100 users?
CONFIDENTIAL
© Copyright IBM Corporation 2006
State Objective in Measurable TermsState Objective in Measurable Terms
Measurable objectives provide baselines for evaluating results
Examples
Examples
Response time
under a load of 50 sales representatives, the maximum response time for any transaction will not exceed 1 minute
Reliability
the system will run for 72 hours at 50% load(as measured by CPU utilization) without a crash, or any corrupted data
CONFIDENTIAL
© Copyright IBM Corporation 2006
2 - Analyze The System UnderTest2 - Analyze The System UnderTest
Identify system components
schematic diagram of system
Describe configuration of each component
hardware/CPU speed
operating system
memory
Describe user profile
types of users
common tasks for each user
task distribution during the work day
CONFIDENTIAL
© Copyright IBM Corporation 2006
Identify System ComponentsIdentify System Components
Example
Example
Clients
586/ Windows 98
OCI
Pentium
400MHZ
NT 4.0
Oracle
8.0
Server
CONFIDENTIAL
© Copyright IBM Corporation 2006
Describe ConfigurationDescribe Configuration
Front End Client
No of clients 120
Hardware/Memory 586 PC / 32 Mb
Operating system Windows 95
Development tool Visual Basic
Example
Example
Middleware/App Server (if exists)
Server type
Communication with server
Server operating system
Back End Server
Server type Database- Oracle 8.0
Communication with server ODBC
Server operating system NT
Other Network Components
Communication device handles 50 calls max.
Provide details about the configuration of each
component:
CONFIDENTIAL
© Copyright IBM Corporation 2006
UserProfileUserProfile
Who are the users?
How many users are there?
What tasks do the users perform?
Business
Process
Type and
number
of users
Task frequency (throughput per hour)
Reservation
Agent (170)
Freq. Flyer
Agent (50)
Manager
(30)
1- Enter Orders
3 - Calc. F.F. Miles
4 - Calc. Sales
2 - Update Orders
100
50
70
8
B.P.
Users
Example
Example
25
10
5
How often do users perform their
tasks?
CONFIDENTIAL
© Copyright IBM Corporation 2006
Transaction ProfileTransaction Profile
What tasks do the users perform?
2- Enter Orders
4 - Calc. F.F. Miles
5 - Calc. Sales
3 - Update Orders
125
60
75
8
Business Process
Transactions
Per Hour
1- Logon 10
Example
Example
Tasks Frequency
How often do users perform their tasks?
CONFIDENTIAL
© Copyright IBM Corporation 2006
3 - Plan the LoadRunnerImplementation3 - Plan the LoadRunnerImplementation
1 - Set up test environment
2 - Define type and number of Vusers to be created
3 - Determine hardware required to run Vusers
CONFIDENTIAL
© Copyright IBM Corporation 2006
Set Up Test EnvironmentSet Up Test Environment
All testing should be done in a test environment
Allocate and configure machines to real-world conditions
one for each type of GUI Vuser
one for the database server
any other middleware server(s)
Allocate machines to run necessary number of DB Vusers
Allocate and configure one machine for Controller
Seed test database with appropriate amounts of data
Verify that business processes function correctly
CONFIDENTIAL
© Copyright IBM Corporation 2006
What Is a GUIVuser?What Is a GUIVuser?
A WinRunner script, performing actions on the client application
WinRunner
Allows you to measure the response time a real user will
experience end-to-end
One GUI Vuser per host machine
Host
GUI Vuser
Client
application
CONFIDENTIAL
© Copyright IBM Corporation 2006
What Is a DBVuser?What Is a DBVuser?
Multiple DB Virtual UsersMultiple DB Virtual Users
ServerServer
API Calls
C program that sends API calls to the server
Allows you to generate load on the server using few machines
Excludes application’s GUI processing time
Many DB Vusers per host machine
C Program
C Program
C Program
C Program
CONFIDENTIAL
© Copyright IBM Corporation 2006
GUIvs. DBVuserGUIvs. DBVuser
Database Server
Application
Server
Application
Server
Application Server
WAN
and/or
Internet
Example
Example
GUI VuserGUI Vuser: End-to-end
(including GUI)
GUI VuserGUI Vuser: End-to-end
(including GUI)
DB VuserDB Vuser: Network and
Server (No GUI)
DB VuserDB Vuser: Network and
Server (No GUI)
CONFIDENTIAL
© Copyright IBM Corporation 2006
Type and Numberof VusersType and Numberof Vusers
How many Vusers of each type (DB/GUI) do you need to run?
Guidelines:
one or few GUI Vusers for each type of user connection
multiple DB Vusers generate remaining load for that user
100 customer service users
(LAN connection)
2 98
50 Tokyo users (dial-in ISDN connection) 1 49
5 background batch processes — 5
20 managers
(15 with 486; 5 with 586 machines)
1 (486 PC)
1 (586 PC) 18
UserExample
Example
DBGUI
CONFIDENTIAL
© Copyright IBM Corporation 2006
Which Hardware/Configuration?Which Hardware/Configuration?
Based on previous steps, which hardware and software
configuration is needed for testing?
How many machines (PC/UNIX)?
How much memory?
Processor speed?
How much disk space?
How much swap?
CONFIDENTIAL
© Copyright IBM Corporation 2006
Hardware/Configuration GuidelinesHardware/Configuration Guidelines
General:
One machine for Controller
One machine per GUI Vuser
GUI Vuser machine configuration should be
similar to ‘real-world’ machine
Test server machine should be configured to
real world
DB Vuser machines:
Can use a combination of NT and UNIX
Machine configuration depends on number of
Vusers and activity of user
Exact configuration
requirements in Appendix A
CONFIDENTIAL
© Copyright IBM Corporation 2006
Which Hardware/Configuration?Which Hardware/Configuration?
Controller
NT machine
Pentium 200 MHz
64 MB memory
Database Server
1 GUI Vuser
(Accounting)
• NT machine
• Pentium 200 MHz
• 32 MB memory
29 DB Vuser
(Accounting)
• NT machine
•Pentium 166
MHz
• 64 MB memory
UNIX machine
256 MB memory
Example
Example
450 DB Vusers
(Bank tellers)
CONFIDENTIAL
© Copyright IBM Corporation 2006
SummarySummary
Define load testing objectives
limit your objectives
state objectives in measurable terms
Analyze the system under test
system components
configuration of each component
user profile (users, tasks, distribution)
Plan LoadRunner implementation
set up test environment
decide type and number of Vusers to be created
hardware required to run Vusers
CONFIDENTIAL23 © Copyright IBM Corporation 2006
Lab ExerciseLab Exercise
ibm.com/bcs © Copyright IBM Corporation 2006CONFIDENTIAL – Not for Distribution
LOADRUNNER SCENARIOS
LESSON 2
LR/NTIntro6.0/02
Copyright 2000
Mercury Interactive Corp.
CONFIDENTIAL
© Copyright IBM Corporation 2006
LoadRunner Workflow
Plan Load TestingPlan Load Testing11
Create ScenarioCreate Scenario33
Run ScenarioRun Scenario44
Analyze ResultsAnalyze Results55
Create Vuser ScriptsCreate Vuser Scripts22
Debug and Run Scenario AgainDebug and Run Scenario Again66
• Define and connect hosts
• Define Vusers and scripts
• Group and schedule Vusers
• Set rendezvous policy
CONFIDENTIAL
© Copyright IBM Corporation 2006
Lesson Objectives
In this lesson you will learn:
 LoadRunner elements
 How to set up a scenario
 How to run a scenario
CONFIDENTIAL
© Copyright IBM Corporation 2006
LoadRunner Environment
LoadRunner
Controller
Vusers
Host 1 Host 2
VusersDatabase
Server
CONFIDENTIAL
© Copyright IBM Corporation 2006
The LoadRunner Controller
 Runs scenarios
 Controls and communicates with each Vuser via the Agent
 Displays output messages
 Displays execution status
 Collects performance data
CONFIDENTIAL29 © Copyright IBM Corporation 2006
Controller Main Window
Initialize /
Run Vuser
Vuser
groups
Vuser details
Sub-window tabs
CONFIDENTIAL
© Copyright IBM Corporation 2006
Controller Sub-Window Tabs
 Hosts window
- all available hosts and their connection statuses
 Scripts window
- paths to all available Vuser scripts
 Vusers window
- create and select Vusers and groups
 Online window
- view real-time system resources during scenario execution
CONFIDENTIAL
© Copyright IBM Corporation 2006
How Does Controller Communicate with Vusers ?
 Start the Remote Command Launcher on each host machine
Controller
Machine A
Machine B
Remote
Command
Launcher
• RCL starts the Agent and initializes the Vusers
INITIALIZE
Agent
Vusers
• Controller Runs Vusers via the Agent
RUN
CONFIDENTIAL
© Copyright IBM Corporation 2006
The Scenario
An environment that describes all the conditions under which you want to test your
system
virtual
users
load
conditions
host
machines
results
location
test
scripts
CONFIDENTIAL
© Copyright IBM Corporation 2006
Setting Up a Scenario
1 - Define Hosts
2 - Connect Hosts
3 - Define Vuser scripts
4 - Add Vusers
5 - Set rendezvous policy (optional)
6 - Set up Vuser Scheduling (optional)
CONFIDENTIAL34 © Copyright IBM Corporation 2006
Machine name or
IP address
Host Status,
Ready/Active
1 - Define Hosts
Results
handling
information
UNIX
information
for DB Vusers
Initialization
Quota
Limits per host
for each Vuser
type
WinRunner
information
for GUI Vusers
CONFIDENTIAL35 © Copyright IBM Corporation 2006
2 - Connect Hosts
Connect /
disconnect host
Connection status
Host name
CONFIDENTIAL36 © Copyright IBM Corporation 2006
3 - Define Vuser Scripts
A scenario typically contains
multiple instances of each
script
Vusers assigned
to this script
Transactions and
Rendezvous in script
Path to script
Vuser type depends
on script type
CONFIDENTIAL37 © Copyright IBM Corporation 2006
4 - Add Vusers
Quantity Hostname
Script name
Click the Add Vusers toolbar button
CONFIDENTIAL38 © Copyright IBM Corporation 2006
4 - Add Vusers (cont.)
NOTE: Run-Time Settings are discussed in the VuGen course
Host machine
Script name
1. Select an existing Vuser from the grid
2. Select Vuser > Details from the menu
CONFIDENTIAL39 © Copyright IBM Corporation 2006
5 - Define Rendezvous Policy
(optional)
Enable/disable
rendezvous
Specify when to
release Vusers
Specify maximum
time Vusers wait
to be released
Release Vusers
that arrived
CONFIDENTIAL40 © Copyright IBM Corporation 2006
• LoadRunner Program group – select SchedulerDouble-click to schedule a new group
Properties button to select details
Specify duration settingsSpecify Incremental Initialization PaceSpecify Incremental Run PaceSpecify Termination Pace – only available
when a group duration has been set
Visual Group Settings
6 - Scheduling Vusers
(optional)
CONFIDENTIAL
© Copyright IBM Corporation 2006
Scenario Wizard
Use the
Scenario Wizard to simplify
scenario creation
CONFIDENTIAL
© Copyright IBM Corporation 2006
LoadRunner Workflow
Plan Load TestingPlan Load Testing11
Create ScenarioCreate Scenario33
Run ScenarioRun Scenario44
Analyze ResultsAnalyze Results55
Create Vuser ScriptsCreate Vuser Scripts22
Debug and Run Scenario AgainDebug and Run Scenario Again66
• Check Remote Command Launcher
• Specify results directory
• Initialize Vusers
• Run Vusers
CONFIDENTIAL
© Copyright IBM Corporation 2006
Running a Scenario
1 - Make sure Remote Command Launcher is active on all hosts
2 - Specify the directory for storing execution results
- By default, the runtime files are stored locally on each host. After the scenario, the
results are collated and processed on the Controller machine.
- Alternatively, instruct LoadRunner to use a shared network drive
- Use Mercury’s TestDirector to store results to a project
3 - Initialize Vusers
4 - Run Vusers
CONFIDENTIAL
© Copyright IBM Corporation 2006
The Vuser Statuses
Initializing Ready Running
Rendezvous
Exitin
g
Done
CONFIDENTIAL
© Copyright IBM Corporation 2006
Tips for Smooth Scenario Execution
 Make sure Remote Command Launcher is active on each host.
 Verify successful execution of each Vuser script before running with
LoadRunner.
 Make sure all scripts have the proper path and run-time settings.
 Disconnect from the host and refresh after editing a script, to ensure that
the new version of the script is transferred to the host.
CONFIDENTIAL
© Copyright IBM Corporation 2006
Managing the Scenario
Good Practices:
 Run the scenario gradually for easy problem solving:
- individual Vusers
- a group of Vusers
- entire scenario
 Initialize Vusers before running
- initializing process is resource intensive
- ensures that all Vusers start from same point
CONFIDENTIAL
© Copyright IBM Corporation 2006
Summary
 Set up a scenario
1 - define Hosts
2 - connect Hosts
3 - define Vuser scripts
4 - add Vusers
5 - set rendezvous policy (optional)
6 - schedule Vusers (optional)
 Run a scenario
1 - check Remote Command Launcher
2 - specify results directory
3 - initialize Vusers
4 - run Vusers
ibm.com/bcs © Copyright IBM Corporation 2006CONFIDENTIAL – Not for Distribution
SCENARIOS
DEMO
CONFIDENTIAL49 © Copyright IBM Corporation 2006
Lab Exercise

Mais conteúdo relacionado

Mais procurados

Sap Integration Testing Test Scripting V0.1
Sap Integration Testing   Test Scripting V0.1Sap Integration Testing   Test Scripting V0.1
Sap Integration Testing Test Scripting V0.1ASCARR1
 
Performance Testing Using VS 2010 - Part 1
Performance Testing Using VS 2010 - Part 1Performance Testing Using VS 2010 - Part 1
Performance Testing Using VS 2010 - Part 1Mohamed Tarek
 
Jmeter Tester Certification
Jmeter Tester CertificationJmeter Tester Certification
Jmeter Tester CertificationVskills
 
Test Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comTest Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comIdexcel Technologies
 
Performance Testing
Performance TestingPerformance Testing
Performance TestingSelin Gungor
 
Scrum gathering Paris 2013 - test automation strategy for Scrum Projects
Scrum gathering Paris 2013 -  test automation strategy for Scrum ProjectsScrum gathering Paris 2013 -  test automation strategy for Scrum Projects
Scrum gathering Paris 2013 - test automation strategy for Scrum ProjectsEliane Collins
 
Test automation principles, terminologies and implementations
Test automation principles, terminologies and implementationsTest automation principles, terminologies and implementations
Test automation principles, terminologies and implementationsSteven Li
 
Customized Test Automation Solution
Customized Test Automation SolutionCustomized Test Automation Solution
Customized Test Automation SolutionBabuDevanandam
 
Introduction to Performance Testing Part 1
Introduction to Performance Testing Part 1Introduction to Performance Testing Part 1
Introduction to Performance Testing Part 1C.T.Co
 
Building a Test Automation Strategy for Success
Building a Test Automation Strategy for SuccessBuilding a Test Automation Strategy for Success
Building a Test Automation Strategy for SuccessLee Barnes
 
Guideto Successful Application Test Automation
Guideto Successful Application Test AutomationGuideto Successful Application Test Automation
Guideto Successful Application Test Automationaimshigh7
 
Test Automation
Test AutomationTest Automation
Test AutomationTomas Riha
 
Performance Testing Using JMeter | Edureka
Performance Testing Using JMeter | EdurekaPerformance Testing Using JMeter | Edureka
Performance Testing Using JMeter | EdurekaEdureka!
 
Full Testing Experience - Visual Studio and TFS 2010
 Full Testing Experience - Visual Studio and TFS 2010 Full Testing Experience - Visual Studio and TFS 2010
Full Testing Experience - Visual Studio and TFS 2010Ed Blankenship
 
An Introduction to Performance Testing
An Introduction to Performance TestingAn Introduction to Performance Testing
An Introduction to Performance TestingSWAAM Tech
 
Final Automation Testing
Final Automation TestingFinal Automation Testing
Final Automation Testingpriya_trivedi
 

Mais procurados (20)

Sap Integration Testing Test Scripting V0.1
Sap Integration Testing   Test Scripting V0.1Sap Integration Testing   Test Scripting V0.1
Sap Integration Testing Test Scripting V0.1
 
Performance Testing Using VS 2010 - Part 1
Performance Testing Using VS 2010 - Part 1Performance Testing Using VS 2010 - Part 1
Performance Testing Using VS 2010 - Part 1
 
Jmeter Tester Certification
Jmeter Tester CertificationJmeter Tester Certification
Jmeter Tester Certification
 
Test Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comTest Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.com
 
Performance Testing
Performance TestingPerformance Testing
Performance Testing
 
Automation_testing
Automation_testingAutomation_testing
Automation_testing
 
Scrum gathering Paris 2013 - test automation strategy for Scrum Projects
Scrum gathering Paris 2013 -  test automation strategy for Scrum ProjectsScrum gathering Paris 2013 -  test automation strategy for Scrum Projects
Scrum gathering Paris 2013 - test automation strategy for Scrum Projects
 
Best Practices for Testing in salesforce.com
Best Practices for Testing in salesforce.comBest Practices for Testing in salesforce.com
Best Practices for Testing in salesforce.com
 
Test automation principles, terminologies and implementations
Test automation principles, terminologies and implementationsTest automation principles, terminologies and implementations
Test automation principles, terminologies and implementations
 
Customized Test Automation Solution
Customized Test Automation SolutionCustomized Test Automation Solution
Customized Test Automation Solution
 
Introduction to Performance Testing Part 1
Introduction to Performance Testing Part 1Introduction to Performance Testing Part 1
Introduction to Performance Testing Part 1
 
Building a Test Automation Strategy for Success
Building a Test Automation Strategy for SuccessBuilding a Test Automation Strategy for Success
Building a Test Automation Strategy for Success
 
Guideto Successful Application Test Automation
Guideto Successful Application Test AutomationGuideto Successful Application Test Automation
Guideto Successful Application Test Automation
 
Automation Framework/QTP Framework
Automation Framework/QTP FrameworkAutomation Framework/QTP Framework
Automation Framework/QTP Framework
 
Automation Testing
Automation TestingAutomation Testing
Automation Testing
 
Test Automation
Test AutomationTest Automation
Test Automation
 
Performance Testing Using JMeter | Edureka
Performance Testing Using JMeter | EdurekaPerformance Testing Using JMeter | Edureka
Performance Testing Using JMeter | Edureka
 
Full Testing Experience - Visual Studio and TFS 2010
 Full Testing Experience - Visual Studio and TFS 2010 Full Testing Experience - Visual Studio and TFS 2010
Full Testing Experience - Visual Studio and TFS 2010
 
An Introduction to Performance Testing
An Introduction to Performance TestingAn Introduction to Performance Testing
An Introduction to Performance Testing
 
Final Automation Testing
Final Automation TestingFinal Automation Testing
Final Automation Testing
 

Semelhante a Testing using load runner performance testing

Cloud-based performance testing
Cloud-based performance testingCloud-based performance testing
Cloud-based performance testingabhinavm
 
WebSphere Technical University: Top WebSphere Problem Determination Features
WebSphere Technical University: Top WebSphere Problem Determination FeaturesWebSphere Technical University: Top WebSphere Problem Determination Features
WebSphere Technical University: Top WebSphere Problem Determination FeaturesChris Bailey
 
Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...
Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...
Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...IBM Systems UKI
 
Rit 8.5.0 virtualization training slides
Rit 8.5.0 virtualization training slidesRit 8.5.0 virtualization training slides
Rit 8.5.0 virtualization training slidesDarrel Rader
 
Modernizing Testing as Apps Re-Architect
Modernizing Testing as Apps Re-ArchitectModernizing Testing as Apps Re-Architect
Modernizing Testing as Apps Re-ArchitectDevOps.com
 
Advanced Load Runner
Advanced Load RunnerAdvanced Load Runner
Advanced Load Runnertelab
 
WSO2 Customer Webinar: WEST Interactive’s Deployment Approach and DevOps Prac...
WSO2 Customer Webinar: WEST Interactive’s Deployment Approach and DevOps Prac...WSO2 Customer Webinar: WEST Interactive’s Deployment Approach and DevOps Prac...
WSO2 Customer Webinar: WEST Interactive’s Deployment Approach and DevOps Prac...WSO2
 
MuleSoft Sizing Guidelines - VirtualMuleys
MuleSoft Sizing Guidelines - VirtualMuleysMuleSoft Sizing Guidelines - VirtualMuleys
MuleSoft Sizing Guidelines - VirtualMuleysAngel Alberici
 
Performance testing using hp load runner
Performance testing using hp load runnerPerformance testing using hp load runner
Performance testing using hp load runnerReturn on Intelligence
 
Copy of Silk performer - KT.pptx
Copy of Silk performer - KT.pptxCopy of Silk performer - KT.pptx
Copy of Silk performer - KT.pptxssuser20fcbe
 
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...Bp307 Practical Solutions for Connections Administrators, tips and scrips for...
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...Sharon James
 
Was liberty at scale
Was liberty at scaleWas liberty at scale
Was liberty at scalesflynn073
 
TechTalk_Cloud Performance Testing_0.6
TechTalk_Cloud Performance Testing_0.6TechTalk_Cloud Performance Testing_0.6
TechTalk_Cloud Performance Testing_0.6Sravanthi N
 
Load runner 8.0
Load runner 8.0Load runner 8.0
Load runner 8.0medsherb
 
WebSphere Technical University: Introduction to the Java Diagnostic Tools
WebSphere Technical University: Introduction to the Java Diagnostic ToolsWebSphere Technical University: Introduction to the Java Diagnostic Tools
WebSphere Technical University: Introduction to the Java Diagnostic ToolsChris Bailey
 
Jump-start your application migration to AWS with CloudEndure - STG305 - New ...
Jump-start your application migration to AWS with CloudEndure - STG305 - New ...Jump-start your application migration to AWS with CloudEndure - STG305 - New ...
Jump-start your application migration to AWS with CloudEndure - STG305 - New ...Amazon Web Services
 
JMeter & ColdFusion
JMeter & ColdFusion JMeter & ColdFusion
JMeter & ColdFusion isummation
 
Oracle Analytics Server Infrastructure Tuning guide v2.pdf
Oracle Analytics Server Infrastructure Tuning guide v2.pdfOracle Analytics Server Infrastructure Tuning guide v2.pdf
Oracle Analytics Server Infrastructure Tuning guide v2.pdfsivakodali7
 

Semelhante a Testing using load runner performance testing (20)

Cloud-based performance testing
Cloud-based performance testingCloud-based performance testing
Cloud-based performance testing
 
Performance testing material
Performance testing materialPerformance testing material
Performance testing material
 
WebSphere Technical University: Top WebSphere Problem Determination Features
WebSphere Technical University: Top WebSphere Problem Determination FeaturesWebSphere Technical University: Top WebSphere Problem Determination Features
WebSphere Technical University: Top WebSphere Problem Determination Features
 
Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...
Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...
Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...
 
Rit 8.5.0 virtualization training slides
Rit 8.5.0 virtualization training slidesRit 8.5.0 virtualization training slides
Rit 8.5.0 virtualization training slides
 
Modernizing Testing as Apps Re-Architect
Modernizing Testing as Apps Re-ArchitectModernizing Testing as Apps Re-Architect
Modernizing Testing as Apps Re-Architect
 
Advanced Load Runner
Advanced Load RunnerAdvanced Load Runner
Advanced Load Runner
 
WSO2 Customer Webinar: WEST Interactive’s Deployment Approach and DevOps Prac...
WSO2 Customer Webinar: WEST Interactive’s Deployment Approach and DevOps Prac...WSO2 Customer Webinar: WEST Interactive’s Deployment Approach and DevOps Prac...
WSO2 Customer Webinar: WEST Interactive’s Deployment Approach and DevOps Prac...
 
MuleSoft Sizing Guidelines - VirtualMuleys
MuleSoft Sizing Guidelines - VirtualMuleysMuleSoft Sizing Guidelines - VirtualMuleys
MuleSoft Sizing Guidelines - VirtualMuleys
 
Performance testing using hp load runner
Performance testing using hp load runnerPerformance testing using hp load runner
Performance testing using hp load runner
 
Copy of Silk performer - KT.pptx
Copy of Silk performer - KT.pptxCopy of Silk performer - KT.pptx
Copy of Silk performer - KT.pptx
 
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...Bp307 Practical Solutions for Connections Administrators, tips and scrips for...
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...
 
Was liberty at scale
Was liberty at scaleWas liberty at scale
Was liberty at scale
 
TechTalk_Cloud Performance Testing_0.6
TechTalk_Cloud Performance Testing_0.6TechTalk_Cloud Performance Testing_0.6
TechTalk_Cloud Performance Testing_0.6
 
Load Runner
Load RunnerLoad Runner
Load Runner
 
Load runner 8.0
Load runner 8.0Load runner 8.0
Load runner 8.0
 
WebSphere Technical University: Introduction to the Java Diagnostic Tools
WebSphere Technical University: Introduction to the Java Diagnostic ToolsWebSphere Technical University: Introduction to the Java Diagnostic Tools
WebSphere Technical University: Introduction to the Java Diagnostic Tools
 
Jump-start your application migration to AWS with CloudEndure - STG305 - New ...
Jump-start your application migration to AWS with CloudEndure - STG305 - New ...Jump-start your application migration to AWS with CloudEndure - STG305 - New ...
Jump-start your application migration to AWS with CloudEndure - STG305 - New ...
 
JMeter & ColdFusion
JMeter & ColdFusion JMeter & ColdFusion
JMeter & ColdFusion
 
Oracle Analytics Server Infrastructure Tuning guide v2.pdf
Oracle Analytics Server Infrastructure Tuning guide v2.pdfOracle Analytics Server Infrastructure Tuning guide v2.pdf
Oracle Analytics Server Infrastructure Tuning guide v2.pdf
 

Mais de SivaprasanthRentala1975 (20)

Why contract savings are missing
Why contract savings are missingWhy contract savings are missing
Why contract savings are missing
 
Voyager scm
Voyager scmVoyager scm
Voyager scm
 
Volumes
VolumesVolumes
Volumes
 
The new mainframe
The new mainframeThe new mainframe
The new mainframe
 
Test execution may_04_2006
Test execution may_04_2006Test execution may_04_2006
Test execution may_04_2006
 
Telecom testing
Telecom testingTelecom testing
Telecom testing
 
Six sigma
Six sigmaSix sigma
Six sigma
 
Sdlc models
Sdlc modelsSdlc models
Sdlc models
 
Sdlc
SdlcSdlc
Sdlc
 
Scm
ScmScm
Scm
 
Pt presentation1
Pt presentation1Pt presentation1
Pt presentation1
 
Pp employee learnnig initiative-iss-220-g tle 2007
Pp employee learnnig initiative-iss-220-g tle 2007Pp employee learnnig initiative-iss-220-g tle 2007
Pp employee learnnig initiative-iss-220-g tle 2007
 
Performance testing and rpt
Performance testing and rptPerformance testing and rpt
Performance testing and rpt
 
Patents
PatentsPatents
Patents
 
Xpediter kanbay
Xpediter kanbayXpediter kanbay
Xpediter kanbay
 
Copy of good quotes.ppt
Copy of good quotes.pptCopy of good quotes.ppt
Copy of good quotes.ppt
 
Contract savings new
Contract savings newContract savings new
Contract savings new
 
Contract savings schema
Contract savings schemaContract savings schema
Contract savings schema
 
Contract savings may 10th 2004 by gm euro
Contract savings may 10th 2004 by gm euroContract savings may 10th 2004 by gm euro
Contract savings may 10th 2004 by gm euro
 
Contract savings job overview
Contract savings job overviewContract savings job overview
Contract savings job overview
 

Último

Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1GloryAnnCastre1
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17Celine George
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxAnupam32727
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...Nguyen Thanh Tu Collection
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvRicaMaeCastro1
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17Celine George
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesVijayaLaxmi84
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Developmentchesterberbo7
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxMichelleTuguinay1
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 

Último (20)

Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their uses
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Development
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 

Testing using load runner performance testing

  • 1. ibm.com/bcs © Copyright IBM Corporation 2006CONFIDENTIAL – Not for Distribution PLANNING LOADTESTINGPLANNING LOADTESTING LESSON 1LESSON 1
  • 2. CONFIDENTIAL © Copyright IBM Corporation 2006 Why Plan?Why Plan? So that you will be able to:  Build test scenarios that accurately emulate your system  Know the required resources for testing  Define the load test objective  Define success criteria (in measurable terms)
  • 3. CONFIDENTIAL © Copyright IBM Corporation 2006 LoadRunnerWorkflowLoadRunnerWorkflow Plan Load TestingPlan Load Testing11 Create Scenario3 Run Scenario4 Analyze Results5 Create Vuser Scripts2 Debug and Run Scenario Again6 Define load testing objectives Analyze system under test Plan LoadRunner Implementation
  • 4. CONFIDENTIAL © Copyright IBM Corporation 2006 Planning Load TestingPlanning Load Testing In this lesson you will learn how to: 1 - Define load testing objectives Objectives 2 - Analyze the system under test 3 - Plan LoadRunner implementation Vuser Vuser VuserVuser Controller
  • 5. CONFIDENTIAL © Copyright IBM Corporation 2006 1 - Define Load Testing Objectives1 - Define Load Testing Objectives Why test objectives? “Successful projects are those that have a defined test objective… and provide actionable results and conclusion…” Source: “The Art of Testing Network Systems” Robert W. Buchanan, Jr. Limit your objectives “...Projects should have one or, at the most, two test objectives… More than two objectives dilutes the effort and makes [ testing ] virtually impossible.” State objectives in measurable terms “...There is nothing worse than completing [ a test ] and then disagreeing on whether or not the system passed.”
  • 6. CONFIDENTIAL © Copyright IBM Corporation 2006 Common Test ObjectivesCommon Test Objectives Application response time How long does it take to complete a task? Configuration sizing Which configuration provides the best performance level? Acceptance Is the system stable enough to go into production? Regression Does the new version of the software adversely affect response time? Reliability How stable is the system under a heavy work load? Capacity planning At what point does degradation in performance occur? Bottleneck identification What is the cause of degradation in performance? Product evaluation What is the best server for 100 users?
  • 7. CONFIDENTIAL © Copyright IBM Corporation 2006 State Objective in Measurable TermsState Objective in Measurable Terms Measurable objectives provide baselines for evaluating results Examples Examples Response time under a load of 50 sales representatives, the maximum response time for any transaction will not exceed 1 minute Reliability the system will run for 72 hours at 50% load(as measured by CPU utilization) without a crash, or any corrupted data
  • 8. CONFIDENTIAL © Copyright IBM Corporation 2006 2 - Analyze The System UnderTest2 - Analyze The System UnderTest Identify system components schematic diagram of system Describe configuration of each component hardware/CPU speed operating system memory Describe user profile types of users common tasks for each user task distribution during the work day
  • 9. CONFIDENTIAL © Copyright IBM Corporation 2006 Identify System ComponentsIdentify System Components Example Example Clients 586/ Windows 98 OCI Pentium 400MHZ NT 4.0 Oracle 8.0 Server
  • 10. CONFIDENTIAL © Copyright IBM Corporation 2006 Describe ConfigurationDescribe Configuration Front End Client No of clients 120 Hardware/Memory 586 PC / 32 Mb Operating system Windows 95 Development tool Visual Basic Example Example Middleware/App Server (if exists) Server type Communication with server Server operating system Back End Server Server type Database- Oracle 8.0 Communication with server ODBC Server operating system NT Other Network Components Communication device handles 50 calls max. Provide details about the configuration of each component:
  • 11. CONFIDENTIAL © Copyright IBM Corporation 2006 UserProfileUserProfile Who are the users? How many users are there? What tasks do the users perform? Business Process Type and number of users Task frequency (throughput per hour) Reservation Agent (170) Freq. Flyer Agent (50) Manager (30) 1- Enter Orders 3 - Calc. F.F. Miles 4 - Calc. Sales 2 - Update Orders 100 50 70 8 B.P. Users Example Example 25 10 5 How often do users perform their tasks?
  • 12. CONFIDENTIAL © Copyright IBM Corporation 2006 Transaction ProfileTransaction Profile What tasks do the users perform? 2- Enter Orders 4 - Calc. F.F. Miles 5 - Calc. Sales 3 - Update Orders 125 60 75 8 Business Process Transactions Per Hour 1- Logon 10 Example Example Tasks Frequency How often do users perform their tasks?
  • 13. CONFIDENTIAL © Copyright IBM Corporation 2006 3 - Plan the LoadRunnerImplementation3 - Plan the LoadRunnerImplementation 1 - Set up test environment 2 - Define type and number of Vusers to be created 3 - Determine hardware required to run Vusers
  • 14. CONFIDENTIAL © Copyright IBM Corporation 2006 Set Up Test EnvironmentSet Up Test Environment All testing should be done in a test environment Allocate and configure machines to real-world conditions one for each type of GUI Vuser one for the database server any other middleware server(s) Allocate machines to run necessary number of DB Vusers Allocate and configure one machine for Controller Seed test database with appropriate amounts of data Verify that business processes function correctly
  • 15. CONFIDENTIAL © Copyright IBM Corporation 2006 What Is a GUIVuser?What Is a GUIVuser? A WinRunner script, performing actions on the client application WinRunner Allows you to measure the response time a real user will experience end-to-end One GUI Vuser per host machine Host GUI Vuser Client application
  • 16. CONFIDENTIAL © Copyright IBM Corporation 2006 What Is a DBVuser?What Is a DBVuser? Multiple DB Virtual UsersMultiple DB Virtual Users ServerServer API Calls C program that sends API calls to the server Allows you to generate load on the server using few machines Excludes application’s GUI processing time Many DB Vusers per host machine C Program C Program C Program C Program
  • 17. CONFIDENTIAL © Copyright IBM Corporation 2006 GUIvs. DBVuserGUIvs. DBVuser Database Server Application Server Application Server Application Server WAN and/or Internet Example Example GUI VuserGUI Vuser: End-to-end (including GUI) GUI VuserGUI Vuser: End-to-end (including GUI) DB VuserDB Vuser: Network and Server (No GUI) DB VuserDB Vuser: Network and Server (No GUI)
  • 18. CONFIDENTIAL © Copyright IBM Corporation 2006 Type and Numberof VusersType and Numberof Vusers How many Vusers of each type (DB/GUI) do you need to run? Guidelines: one or few GUI Vusers for each type of user connection multiple DB Vusers generate remaining load for that user 100 customer service users (LAN connection) 2 98 50 Tokyo users (dial-in ISDN connection) 1 49 5 background batch processes — 5 20 managers (15 with 486; 5 with 586 machines) 1 (486 PC) 1 (586 PC) 18 UserExample Example DBGUI
  • 19. CONFIDENTIAL © Copyright IBM Corporation 2006 Which Hardware/Configuration?Which Hardware/Configuration? Based on previous steps, which hardware and software configuration is needed for testing? How many machines (PC/UNIX)? How much memory? Processor speed? How much disk space? How much swap?
  • 20. CONFIDENTIAL © Copyright IBM Corporation 2006 Hardware/Configuration GuidelinesHardware/Configuration Guidelines General: One machine for Controller One machine per GUI Vuser GUI Vuser machine configuration should be similar to ‘real-world’ machine Test server machine should be configured to real world DB Vuser machines: Can use a combination of NT and UNIX Machine configuration depends on number of Vusers and activity of user Exact configuration requirements in Appendix A
  • 21. CONFIDENTIAL © Copyright IBM Corporation 2006 Which Hardware/Configuration?Which Hardware/Configuration? Controller NT machine Pentium 200 MHz 64 MB memory Database Server 1 GUI Vuser (Accounting) • NT machine • Pentium 200 MHz • 32 MB memory 29 DB Vuser (Accounting) • NT machine •Pentium 166 MHz • 64 MB memory UNIX machine 256 MB memory Example Example 450 DB Vusers (Bank tellers)
  • 22. CONFIDENTIAL © Copyright IBM Corporation 2006 SummarySummary Define load testing objectives limit your objectives state objectives in measurable terms Analyze the system under test system components configuration of each component user profile (users, tasks, distribution) Plan LoadRunner implementation set up test environment decide type and number of Vusers to be created hardware required to run Vusers
  • 23. CONFIDENTIAL23 © Copyright IBM Corporation 2006 Lab ExerciseLab Exercise
  • 24. ibm.com/bcs © Copyright IBM Corporation 2006CONFIDENTIAL – Not for Distribution LOADRUNNER SCENARIOS LESSON 2 LR/NTIntro6.0/02 Copyright 2000 Mercury Interactive Corp.
  • 25. CONFIDENTIAL © Copyright IBM Corporation 2006 LoadRunner Workflow Plan Load TestingPlan Load Testing11 Create ScenarioCreate Scenario33 Run ScenarioRun Scenario44 Analyze ResultsAnalyze Results55 Create Vuser ScriptsCreate Vuser Scripts22 Debug and Run Scenario AgainDebug and Run Scenario Again66 • Define and connect hosts • Define Vusers and scripts • Group and schedule Vusers • Set rendezvous policy
  • 26. CONFIDENTIAL © Copyright IBM Corporation 2006 Lesson Objectives In this lesson you will learn:  LoadRunner elements  How to set up a scenario  How to run a scenario
  • 27. CONFIDENTIAL © Copyright IBM Corporation 2006 LoadRunner Environment LoadRunner Controller Vusers Host 1 Host 2 VusersDatabase Server
  • 28. CONFIDENTIAL © Copyright IBM Corporation 2006 The LoadRunner Controller  Runs scenarios  Controls and communicates with each Vuser via the Agent  Displays output messages  Displays execution status  Collects performance data
  • 29. CONFIDENTIAL29 © Copyright IBM Corporation 2006 Controller Main Window Initialize / Run Vuser Vuser groups Vuser details Sub-window tabs
  • 30. CONFIDENTIAL © Copyright IBM Corporation 2006 Controller Sub-Window Tabs  Hosts window - all available hosts and their connection statuses  Scripts window - paths to all available Vuser scripts  Vusers window - create and select Vusers and groups  Online window - view real-time system resources during scenario execution
  • 31. CONFIDENTIAL © Copyright IBM Corporation 2006 How Does Controller Communicate with Vusers ?  Start the Remote Command Launcher on each host machine Controller Machine A Machine B Remote Command Launcher • RCL starts the Agent and initializes the Vusers INITIALIZE Agent Vusers • Controller Runs Vusers via the Agent RUN
  • 32. CONFIDENTIAL © Copyright IBM Corporation 2006 The Scenario An environment that describes all the conditions under which you want to test your system virtual users load conditions host machines results location test scripts
  • 33. CONFIDENTIAL © Copyright IBM Corporation 2006 Setting Up a Scenario 1 - Define Hosts 2 - Connect Hosts 3 - Define Vuser scripts 4 - Add Vusers 5 - Set rendezvous policy (optional) 6 - Set up Vuser Scheduling (optional)
  • 34. CONFIDENTIAL34 © Copyright IBM Corporation 2006 Machine name or IP address Host Status, Ready/Active 1 - Define Hosts Results handling information UNIX information for DB Vusers Initialization Quota Limits per host for each Vuser type WinRunner information for GUI Vusers
  • 35. CONFIDENTIAL35 © Copyright IBM Corporation 2006 2 - Connect Hosts Connect / disconnect host Connection status Host name
  • 36. CONFIDENTIAL36 © Copyright IBM Corporation 2006 3 - Define Vuser Scripts A scenario typically contains multiple instances of each script Vusers assigned to this script Transactions and Rendezvous in script Path to script Vuser type depends on script type
  • 37. CONFIDENTIAL37 © Copyright IBM Corporation 2006 4 - Add Vusers Quantity Hostname Script name Click the Add Vusers toolbar button
  • 38. CONFIDENTIAL38 © Copyright IBM Corporation 2006 4 - Add Vusers (cont.) NOTE: Run-Time Settings are discussed in the VuGen course Host machine Script name 1. Select an existing Vuser from the grid 2. Select Vuser > Details from the menu
  • 39. CONFIDENTIAL39 © Copyright IBM Corporation 2006 5 - Define Rendezvous Policy (optional) Enable/disable rendezvous Specify when to release Vusers Specify maximum time Vusers wait to be released Release Vusers that arrived
  • 40. CONFIDENTIAL40 © Copyright IBM Corporation 2006 • LoadRunner Program group – select SchedulerDouble-click to schedule a new group Properties button to select details Specify duration settingsSpecify Incremental Initialization PaceSpecify Incremental Run PaceSpecify Termination Pace – only available when a group duration has been set Visual Group Settings 6 - Scheduling Vusers (optional)
  • 41. CONFIDENTIAL © Copyright IBM Corporation 2006 Scenario Wizard Use the Scenario Wizard to simplify scenario creation
  • 42. CONFIDENTIAL © Copyright IBM Corporation 2006 LoadRunner Workflow Plan Load TestingPlan Load Testing11 Create ScenarioCreate Scenario33 Run ScenarioRun Scenario44 Analyze ResultsAnalyze Results55 Create Vuser ScriptsCreate Vuser Scripts22 Debug and Run Scenario AgainDebug and Run Scenario Again66 • Check Remote Command Launcher • Specify results directory • Initialize Vusers • Run Vusers
  • 43. CONFIDENTIAL © Copyright IBM Corporation 2006 Running a Scenario 1 - Make sure Remote Command Launcher is active on all hosts 2 - Specify the directory for storing execution results - By default, the runtime files are stored locally on each host. After the scenario, the results are collated and processed on the Controller machine. - Alternatively, instruct LoadRunner to use a shared network drive - Use Mercury’s TestDirector to store results to a project 3 - Initialize Vusers 4 - Run Vusers
  • 44. CONFIDENTIAL © Copyright IBM Corporation 2006 The Vuser Statuses Initializing Ready Running Rendezvous Exitin g Done
  • 45. CONFIDENTIAL © Copyright IBM Corporation 2006 Tips for Smooth Scenario Execution  Make sure Remote Command Launcher is active on each host.  Verify successful execution of each Vuser script before running with LoadRunner.  Make sure all scripts have the proper path and run-time settings.  Disconnect from the host and refresh after editing a script, to ensure that the new version of the script is transferred to the host.
  • 46. CONFIDENTIAL © Copyright IBM Corporation 2006 Managing the Scenario Good Practices:  Run the scenario gradually for easy problem solving: - individual Vusers - a group of Vusers - entire scenario  Initialize Vusers before running - initializing process is resource intensive - ensures that all Vusers start from same point
  • 47. CONFIDENTIAL © Copyright IBM Corporation 2006 Summary  Set up a scenario 1 - define Hosts 2 - connect Hosts 3 - define Vuser scripts 4 - add Vusers 5 - set rendezvous policy (optional) 6 - schedule Vusers (optional)  Run a scenario 1 - check Remote Command Launcher 2 - specify results directory 3 - initialize Vusers 4 - run Vusers
  • 48. ibm.com/bcs © Copyright IBM Corporation 2006CONFIDENTIAL – Not for Distribution SCENARIOS DEMO
  • 49. CONFIDENTIAL49 © Copyright IBM Corporation 2006 Lab Exercise