SlideShare a Scribd company logo
PERFORMANCE TESTING 
Testing using HP LoadRunner 
Petr Kiryukhin 
December 12, 2014 www.ExigenServices.com
2 www.ExigenServices.com 
TABLE OF CONTENTS 
 Performance Testing. Why? Goals. 
 LoadRunner 
 Overview – LR Components, System Architecture 
 Virtual User Generator (VuGen): 
– Virtual Users; 
– Run and Debugging VuGen scripts; 
– Transactions, Rendezvous points; 
– Record, Vusers Types 
 Controller: 
– Understanding Scenarios; 
– Creating & Executing LoadRunner scenarios; 
– Configuring scenarios 
 Analysis
3 www.ExigenServices.com 
PERFORMANCE TESTING 
 Real system emulation 
 Test executing 
 Results analysis
WHY SHOULD YOU USE PERFORMANCE TESTING? 
 Does the application respond quickly enough for the intended 
users? 
 Is the application stable under expected and unexpected user 
loads? 
 Will system meet the needs of the business before going live? 
4 www.ExigenServices.com
5 www.ExigenServices.com 
WHY SHOULD YOU USE PERFORMANCE TESTING? 
 Are undetected application bottlenecks resulting in slow time or 
downtime in production? 
 Are you struggling to deploy business systems smoothly, with no 
performance surprises? 
 How do you know if an application or system can scale to the 
desired level of usage in production?
WHY SHOULD YOU AUTOMATE PERFORMANCE TESTING? 
 Manual testing limitations: 
It is expensive, requiring large amount of both personnel and 
machinery 
It is complicated, especially coordinating and synchronizing multiple 
testers 
It involves a high degree of organization, especially to record and 
analyze results meaningfully 
The repeatability of the manual tests is limited 
6 www.ExigenServices.com
7 www.ExigenServices.com 
TESTING PROCESS. HOW DOES IT LOOK? 
Record a basic 
Vuser script 
Enhance and edit 
the script 
Configure run-time settings 
Run the Vuser script in stand-alone 
mode 
Incorporate the Vuser script 
into a LR scenario 
Planning the Test 
Creating Vuser scripts 
Creating the scenario 
Running the scenario 
Monitoring the scenario 
Analyzing Test Results 
number of scripts
8 www.ExigenServices.com 
LOADRUNNER 
 LoadRunner is an automated solution: 
– Put your application into stress; 
– Create controlled and peak load conditions; 
– Thousands of Virtual Users; 
– Using a minimum of hardware resources; 
– Repeatable, and measurable load
9 www.ExigenServices.com 
LOADRUNNER – TYPICAL ARCHITECTURE
10 www.ExigenServices.com 
LOADRUNNER – COMPONENTS 
– Virtual User Generator (VuGen ) 
– Controller 
– Analysis
11 www.ExigenServices.com 
LOADRUNNER – VIRTUAL USER GENERATOR 
– Records & runs scripts (Records on Windows platforms only) 
– Debugging of the scripts 
– Script can run on a Windows or UNIX machine 
– A custom type Vuser script
12 www.ExigenServices.com 
VIRTUAL USERS. 
 Reduces personnel requirements 
 Vusers emulate the behavior of real 
 Control - from a single point of control 
 By increasing the number of Vusers, you increase the load on the 
system 
 Reduces the amount of hardware required for testing
13 www.ExigenServices.com 
VUSER SCRIPTS USES SCRIPTS. WHAT IS IT ?! 
 A small program 
 The actions that a Vuser performs 
 ‘User data point’ 
 ‘Parameters’ 
 ‘Rendezvous points’ 
 ‘Transactions’ 
 ‘Run-time settings’ 
 ‘Types’
14 www.ExigenServices.com 
VUSER SCRIPT STRUCTURE 
Method within 
Actions class 
Record into 
action 
Used to emulate Executed during 
init vuser_init a login to a 
server 
Initialization 
action Action client activity Running 
end vuser_end a log off 
procedure 
Finish or 
Stopped
15 www.ExigenServices.com 
VUGEN – OVERVIEW, RUN, DEBUGGING
16 www.ExigenServices.com 
VUGEN – PARAMETERS
17 www.ExigenServices.com 
VUGEN - TRANSACTIONS 
 The time it takes for the server to respond to specified Vuser 
requests. 
 Transactions are defined to measure the performance of the server. 
 The Controller measures the response times.
18 www.ExigenServices.com 
VUGEN - TRANSACTIONS
19 www.ExigenServices.com 
VUGEN – RENDEZVOUS POINTS 
 synchronize Vusers; 
 to perform a task at exactly the same moment; 
 to emulate heavy user load. 
 Note: You may only add rendezvous points in the Action section – 
not to the init or end .
20 www.ExigenServices.com 
VUGEN – RENDEZVOUS POINTS
21 www.ExigenServices.com 
RECORD VUSER SCRIPT
22 www.ExigenServices.com 
VUGEN – RECORDING OPTIONS 
 Recording options specify: 
– The information to record; 
– Client/browser with which to record; 
– Environment Settings; 
– Recording Properties 
 Some of the recording options available are: 
– Recording Level – what information to record and which 
functions to use when generating script; 
– Correlation (HTML/WEB)
23 www.ExigenServices.com 
VUGEN – RECORDING OPTIONS 
Setting the Recording Level:
VUGEN – RUN-TIME SETTINGS 
 Run-time settings define the way in which a script runs. 
– Stored in the default.cfg in the Vuser script directory 
– Applied to Vusers when the script is executed using VuGen or 
the Controller 
 Configuring run-time settings enable you to emulate different kinds 
of user activity 
24 www.ExigenServices.com
25 www.ExigenServices.com 
VUGEN – RUN-TIME SETTINGS 
 General run-time settings include: 
– Run Logic – Number of times the action block of the script 
iterations (For HTML/WEB); 
– Pacing – the time between iterations; 
– Log – how much information is logged to the output; 
– Think time – emulates the time a real user waits between 
actions; 
– Miscellaneous.
26 www.ExigenServices.com 
VUGEN – RUN-TIME SETTINGS 
Setting the Run Logic [HTML/WEB] :
27 www.ExigenServices.com 
VUGEN – RUN-TIME SETTINGS 
Setting the Pacing:
28 www.ExigenServices.com 
VUGEN – RUN-TIME SETTINGS 
Setting the Think time:
29 www.ExigenServices.com 
VUGEN – RUN-TIME SETTINGS 
Setting the Miscellaneous:
VIRTUAL USER TYPES 
 Application Deployment Solution: For Citrix/Microsoft RDP 
 Client/Server: For DB2 CLI, DNS, MS SQL Server, ODBC, Oracle (2-tier), 
30 www.ExigenServices.com 
Sybase Ctlib, Sybase Dblib, Windows Sockets protocols 
 Distributed Components: For COM/DCOM, CORBA–Java, and RMI– 
Java protocols 
 E-business: For FTP, LDAP, Palm, Web (HTTP/HTML), Web Services, 
SOAP and Web/Winsocket Dual protocol 
 Enterprise Java Beans: For EJB Testing and Rmi-Java protocols 
 ERP/CRM: For Baan, Oracle NCA, Peoplesoft-Tuxedo, Peoplesoft 8, 
SAPGUI, SAP-Web, and Siebel (Siebel-DB2CLI, Siebel-MSSQL, Siebel- 
Web, and Siebel-Oracle) protocols 
 Legacy: For Terminal Emulation (RTE) 
 Mailing Services: Internet Messaging (IMAP), MS Exchange (MAPI), 
POP3, and SMTP 
 Middleware: Jacada and Tuxedo (6, 7) protocols 
 Streaming: For MediaPlayer and RealPlayer protocols 
 Wireless: For i-Mode, VoiceXML, and WAP protocols 
 Custom: C Vuser, Java template, Javascript Vuser, VB Script Vuser, 
Visual Basic template
31 www.ExigenServices.com 
VIRTUAL USERS PROTOCOLS 
 Microsoft .NET Protocol 
 Java Protocol 
 Java Protocol - Manually Programming Scripts 
 Enterprise Java Beans (EJB) Protocol 
 Flex Protocol 
 AJAX Protocol 
 AMF Protocol 
 Citrix Protocol 
 RDP Protocol
32 www.ExigenServices.com 
VIRTUAL USERS PROTOCOLS 
 Click and Script Protocol 
 Web Protocols 
 Oracle NCA Protocol 
 SAP Protocols 
 Java over HTTP Protocol 
 RTE Protocol 
 Windows Sockets Protocol 
 Mailing Service Protocols 
 Tuxedo Protocols
33 www.ExigenServices.com 
VIRTUAL USERS PROTOCOLS 
 Siebel Web Protocol 
 COM Protocol 
 Database Protocols 
 LDAP Protocol 
 Wireless Protocols 
 SilverLight Protocol 
 Web Services - Adding Script Content 
 Web Services - Managing Services 
 Web Services – Security
34 www.ExigenServices.com 
VIRTUAL USERS PROTOCOLS 
 Web Services - Preparing Scripts for Replay 
 Web Services - Service Emulation
35 www.ExigenServices.com 
VIRTUAL USERS PROTOCOLS 
 Note: In order to run the various protocols, you must have either a 
global license or licenses for the desired protocols.
36 www.ExigenServices.com 
LOADRUNNER – CONTROLLER 
 Easily and effectively control 
 Single point of control 
 Creates scenarios to test 
– Manages: 
– Load generators; 
– Number of virtual users; 
– Monitors.
37 www.ExigenServices.com 
SCENARIOS 
 number of users to emulate; 
 the actions they perform (Vuser scripts); 
 load generators
38 www.ExigenServices.com 
CONTROLLER – SCENARIOS 
Choosing the scenario type:
39 www.ExigenServices.com 
CONTROLLER – CREATING A SCENARIO 
 Select the Vuser scripts for the scenario 
 Add a Vuser group: 
– Choose a group name; 
– Select the number of Vusers to create in the group; 
– Select a load generator; 
– Select a Vuser script from the list 
 Configure run-time settings for the group
CONTROLLER – CONFIGURING A SCENARIO 
 Some of the important parameters that maybe configured for each 
scenario: 
40 www.ExigenServices.com 
– Run-time settings; 
– Timeout interval; 
– Run-time file storage
41 www.ExigenServices.com 
CONTROLLER – TAB ‘DESIGN’
42 www.ExigenServices.com 
LOADRUNNER – MONITORS 
 Run – time: number and status of Vusers 
 Transaction: transaction rate and response time 
 Web Resource: statistics at the Web server 
 System Resource: Windows, UNIX etc.
43 www.ExigenServices.com 
LOADRUNNER – MONITORS
44 www.ExigenServices.com 
LOADRUNNER – ANALYSIS 
 Graphs 
 Reports 
 Drill down 
 External monitors 
 Correlation analysis 
 Controller stores a result (.lrr) 
 Analyze creates session
45 www.ExigenServices.com 
LOADRUNNER – ANALYSIS
46 www.ExigenServices.com 
HINTS 
 %LR_Home%helpbooksbooks.pdf
47 www.ExigenServices.com 
THANK YOU 
Questions?

More Related Content

What's hot (20)

PPTX
Performance Testing
Selin Gungor
 
PPTX
An Introduction to Performance Testing
SWAAM Tech
 
PDF
Fundamentals Performance Testing
Bhuvaneswari Subramani
 
PDF
What is Performance Testing?
QA InfoTech
 
PPTX
QSpiders - Introduction to HP Load Runner
Qspiders - Software Testing Training Institute
 
PDF
Loadrunner vs Jmeter
Atul Pant
 
PPTX
Introduction to performance testing
Richard Bishop
 
PPT
Hp Loadrunner
guestb3416f
 
PDF
Performance Requirement Gathering
Atul Pant
 
PDF
Jmeter Performance Testing
Atul Pant
 
PPT
Performance testing : An Overview
sharadkjain
 
PDF
Introduction to jmeter
test test
 
PPTX
Performance testing
Jyoti Babbar
 
PPTX
Types of performance testing
NaveenKumar Namachivayam
 
PPTX
Introduction to Performance Testing & Loadrunner
Aisha Mazhar
 
PPTX
Performance Testing And Its Type | Benefits Of Performance Testing
KostCare
 
PDF
Performance testing presentation
Belatrix Software
 
PPT
Getting start with Performance Testing
Yogesh Deshmukh
 
PPTX
Introduction to performance testing
Tharinda Liyanage
 
PDF
Infographic: Importance of Performance Testing
KiwiQA
 
Performance Testing
Selin Gungor
 
An Introduction to Performance Testing
SWAAM Tech
 
Fundamentals Performance Testing
Bhuvaneswari Subramani
 
What is Performance Testing?
QA InfoTech
 
QSpiders - Introduction to HP Load Runner
Qspiders - Software Testing Training Institute
 
Loadrunner vs Jmeter
Atul Pant
 
Introduction to performance testing
Richard Bishop
 
Hp Loadrunner
guestb3416f
 
Performance Requirement Gathering
Atul Pant
 
Jmeter Performance Testing
Atul Pant
 
Performance testing : An Overview
sharadkjain
 
Introduction to jmeter
test test
 
Performance testing
Jyoti Babbar
 
Types of performance testing
NaveenKumar Namachivayam
 
Introduction to Performance Testing & Loadrunner
Aisha Mazhar
 
Performance Testing And Its Type | Benefits Of Performance Testing
KostCare
 
Performance testing presentation
Belatrix Software
 
Getting start with Performance Testing
Yogesh Deshmukh
 
Introduction to performance testing
Tharinda Liyanage
 
Infographic: Importance of Performance Testing
KiwiQA
 

Viewers also liked (11)

PPTX
Performance Testing using LoadRunner - Kamran Khan [chromeis.com]
Kamran Khan
 
PPTX
What is Loadrunner ?
Guru99
 
PDF
Introduction to Performance testing
silviasiqueirahp
 
PPTX
Performance Testing REST APIs
Jason Weden
 
PPTX
QSpiders - Installation and Brief Dose of Load Runner
Qspiders - Software Testing Training Institute
 
PDF
ORACLE UNIVERSITY CAMPUS SOLUTIONS TRAINING
chrisw_byrd
 
PPTX
QSpiders - Introduction to Performance Testing
Qspiders - Software Testing Training Institute
 
PPTX
Oracle Applications
Addvantum
 
PPTX
07 restful webservices design
Ahmed Elbassel
 
PDF
PeopleSoft Campus Solutions
CIMA IT
 
PDF
Introducing Java 7
Markus Eisele
 
Performance Testing using LoadRunner - Kamran Khan [chromeis.com]
Kamran Khan
 
What is Loadrunner ?
Guru99
 
Introduction to Performance testing
silviasiqueirahp
 
Performance Testing REST APIs
Jason Weden
 
QSpiders - Installation and Brief Dose of Load Runner
Qspiders - Software Testing Training Institute
 
ORACLE UNIVERSITY CAMPUS SOLUTIONS TRAINING
chrisw_byrd
 
QSpiders - Introduction to Performance Testing
Qspiders - Software Testing Training Institute
 
Oracle Applications
Addvantum
 
07 restful webservices design
Ahmed Elbassel
 
PeopleSoft Campus Solutions
CIMA IT
 
Introducing Java 7
Markus Eisele
 
Ad

Similar to Performance testing using hp load runner (20)

PPT
Performance testing with loadrunner by kc
krishna chaitanya
 
PPTX
QSpiders - Simple Recording and Configuration of recording options for HP Loa...
Qspiders - Software Testing Training Institute
 
PPT
advanced_load_runner.ppt
SunilKumar61580
 
PPTX
PERFORMANCE TESTING USING LOAD RUNNER
AjithaG9
 
DOCX
Load Runner Online Training
QEdge Tech
 
PPT
Performance Testing
sharmaparish
 
DOC
Loadrunner Online Training
Srihitha Technologies
 
PPT
Testing using load runner performance testing
SivaprasanthRentala1975
 
PDF
Lrpc training
naveenkumarjagatabi
 
DOCX
Loadrunner interview questions and answers
Garuda Trainings
 
PPT
Load runner 8.0
medsherb
 
PPTX
Copy of Silk performer - KT.pptx
ssuser20fcbe
 
PPT
Performance testing material
Keylabstraining Bangalore
 
PPTX
QSpiders - Simple replay and run time settings Loadrunner
Qspiders - Software Testing Training Institute
 
PDF
Loadrunner Onloine Training
Nagendra Kumar
 
PPTX
Software Testing includes Performance testing with Load Runner and the JMeter
Hima Bindu Kosuru
 
PPT
Mercury load runner
Subrat Srivastava
 
PPT
Quick guide to plan and execute a load test
duke.kalra
 
PPTX
Load Runner
Vladimir Soghoyan
 
PPS
Performance testslideshowrecent
Future Simmons
 
Performance testing with loadrunner by kc
krishna chaitanya
 
QSpiders - Simple Recording and Configuration of recording options for HP Loa...
Qspiders - Software Testing Training Institute
 
advanced_load_runner.ppt
SunilKumar61580
 
PERFORMANCE TESTING USING LOAD RUNNER
AjithaG9
 
Load Runner Online Training
QEdge Tech
 
Performance Testing
sharmaparish
 
Loadrunner Online Training
Srihitha Technologies
 
Testing using load runner performance testing
SivaprasanthRentala1975
 
Lrpc training
naveenkumarjagatabi
 
Loadrunner interview questions and answers
Garuda Trainings
 
Load runner 8.0
medsherb
 
Copy of Silk performer - KT.pptx
ssuser20fcbe
 
Performance testing material
Keylabstraining Bangalore
 
QSpiders - Simple replay and run time settings Loadrunner
Qspiders - Software Testing Training Institute
 
Loadrunner Onloine Training
Nagendra Kumar
 
Software Testing includes Performance testing with Load Runner and the JMeter
Hima Bindu Kosuru
 
Mercury load runner
Subrat Srivastava
 
Quick guide to plan and execute a load test
duke.kalra
 
Load Runner
Vladimir Soghoyan
 
Performance testslideshowrecent
Future Simmons
 
Ad

More from Return on Intelligence (20)

PPTX
Clean Code Approach
Return on Intelligence
 
PPTX
Code Coverage
Return on Intelligence
 
PPTX
Effective Communication in english
Return on Intelligence
 
PPTX
Anti-patterns
Return on Intelligence
 
PPTX
Conflicts Resolving
Return on Intelligence
 
PPTX
Database versioning with liquibase
Return on Intelligence
 
PPTX
Effective Feedback
Return on Intelligence
 
PPTX
English for Negotiations 2016
Return on Intelligence
 
PPTX
Lean Software Development
Return on Intelligence
 
PPT
Unit Tests? It is Very Simple and Easy!
Return on Intelligence
 
PPTX
Quick Start to AngularJS
Return on Intelligence
 
PPTX
Introduction to Backbone.js & Marionette.js
Return on Intelligence
 
PPTX
Types of testing and their classification
Return on Intelligence
 
PPTX
Introduction to EJB
Return on Intelligence
 
PPTX
Enterprise Service Bus
Return on Intelligence
 
PPTX
Apache cassandra - future without boundaries (part3)
Return on Intelligence
 
PPTX
Apache cassandra - future without boundaries (part2)
Return on Intelligence
 
PPTX
Apache cassandra - future without boundaries (part1)
Return on Intelligence
 
PPTX
Career development in exigen services
Return on Intelligence
 
PPTX
Introduction to selenium web driver
Return on Intelligence
 
Clean Code Approach
Return on Intelligence
 
Code Coverage
Return on Intelligence
 
Effective Communication in english
Return on Intelligence
 
Anti-patterns
Return on Intelligence
 
Conflicts Resolving
Return on Intelligence
 
Database versioning with liquibase
Return on Intelligence
 
Effective Feedback
Return on Intelligence
 
English for Negotiations 2016
Return on Intelligence
 
Lean Software Development
Return on Intelligence
 
Unit Tests? It is Very Simple and Easy!
Return on Intelligence
 
Quick Start to AngularJS
Return on Intelligence
 
Introduction to Backbone.js & Marionette.js
Return on Intelligence
 
Types of testing and their classification
Return on Intelligence
 
Introduction to EJB
Return on Intelligence
 
Enterprise Service Bus
Return on Intelligence
 
Apache cassandra - future without boundaries (part3)
Return on Intelligence
 
Apache cassandra - future without boundaries (part2)
Return on Intelligence
 
Apache cassandra - future without boundaries (part1)
Return on Intelligence
 
Career development in exigen services
Return on Intelligence
 
Introduction to selenium web driver
Return on Intelligence
 

Recently uploaded (20)

PDF
Cloud computing Lec 02 - virtualization.pdf
asokawennawatte
 
PPTX
computer forensics encase emager app exp6 1.pptx
ssuser343e92
 
PDF
>Wondershare Filmora Crack Free Download 2025
utfefguu
 
PDF
Continouous failure - Why do we make our lives hard?
Papp Krisztián
 
PPTX
How Can Recruitment Management Software Improve Hiring Efficiency?
HireME
 
PDF
From Chaos to Clarity: Mastering Analytics Governance in the Modern Enterprise
Wiiisdom
 
PDF
TEASMA: A Practical Methodology for Test Adequacy Assessment of Deep Neural N...
Lionel Briand
 
PPTX
IObit Driver Booster Pro Crack Download Latest Version
chaudhryakashoo065
 
PDF
AWS Consulting Services: Empowering Digital Transformation with Nlineaxis
Nlineaxis IT Solutions Pvt Ltd
 
PDF
Alur Perkembangan Software dan Jaringan Komputer
ssuser754303
 
PDF
>Nitro Pro Crack 14.36.1.0 + Keygen Free Download [Latest]
utfefguu
 
PPTX
Introduction to web development | MERN Stack
JosephLiyon
 
PPTX
EO4EU Ocean Monitoring: Maritime Weather Routing Optimsation Use Case
EO4EU
 
PDF
Telemedicine App Development_ Key Factors to Consider for Your Healthcare Ven...
Mobilityinfotech
 
PDF
How DeepSeek Beats ChatGPT: Cost Comparison and Key Differences
sumitpurohit810
 
PDF
AI Software Development Process, Strategies and Challenges
Net-Craft.com
 
PPTX
CV-Project_2024 version 01222222222.pptx
MohammadSiddiqui70
 
PPTX
Seamless-Image-Conversion-From-Raster-to-wrt-rtx-rtx.pptx
Quick Conversion Services
 
PPTX
IObit Uninstaller Pro 14.3.1.8 Crack Free Download 2025
sdfger qwerty
 
PPTX
Automatic_Iperf_Log_Result_Excel_visual_v2.pptx
Chen-Chih Lee
 
Cloud computing Lec 02 - virtualization.pdf
asokawennawatte
 
computer forensics encase emager app exp6 1.pptx
ssuser343e92
 
>Wondershare Filmora Crack Free Download 2025
utfefguu
 
Continouous failure - Why do we make our lives hard?
Papp Krisztián
 
How Can Recruitment Management Software Improve Hiring Efficiency?
HireME
 
From Chaos to Clarity: Mastering Analytics Governance in the Modern Enterprise
Wiiisdom
 
TEASMA: A Practical Methodology for Test Adequacy Assessment of Deep Neural N...
Lionel Briand
 
IObit Driver Booster Pro Crack Download Latest Version
chaudhryakashoo065
 
AWS Consulting Services: Empowering Digital Transformation with Nlineaxis
Nlineaxis IT Solutions Pvt Ltd
 
Alur Perkembangan Software dan Jaringan Komputer
ssuser754303
 
>Nitro Pro Crack 14.36.1.0 + Keygen Free Download [Latest]
utfefguu
 
Introduction to web development | MERN Stack
JosephLiyon
 
EO4EU Ocean Monitoring: Maritime Weather Routing Optimsation Use Case
EO4EU
 
Telemedicine App Development_ Key Factors to Consider for Your Healthcare Ven...
Mobilityinfotech
 
How DeepSeek Beats ChatGPT: Cost Comparison and Key Differences
sumitpurohit810
 
AI Software Development Process, Strategies and Challenges
Net-Craft.com
 
CV-Project_2024 version 01222222222.pptx
MohammadSiddiqui70
 
Seamless-Image-Conversion-From-Raster-to-wrt-rtx-rtx.pptx
Quick Conversion Services
 
IObit Uninstaller Pro 14.3.1.8 Crack Free Download 2025
sdfger qwerty
 
Automatic_Iperf_Log_Result_Excel_visual_v2.pptx
Chen-Chih Lee
 

Performance testing using hp load runner

  • 1. PERFORMANCE TESTING Testing using HP LoadRunner Petr Kiryukhin December 12, 2014 www.ExigenServices.com
  • 2. 2 www.ExigenServices.com TABLE OF CONTENTS  Performance Testing. Why? Goals.  LoadRunner  Overview – LR Components, System Architecture  Virtual User Generator (VuGen): – Virtual Users; – Run and Debugging VuGen scripts; – Transactions, Rendezvous points; – Record, Vusers Types  Controller: – Understanding Scenarios; – Creating & Executing LoadRunner scenarios; – Configuring scenarios  Analysis
  • 3. 3 www.ExigenServices.com PERFORMANCE TESTING  Real system emulation  Test executing  Results analysis
  • 4. WHY SHOULD YOU USE PERFORMANCE TESTING?  Does the application respond quickly enough for the intended users?  Is the application stable under expected and unexpected user loads?  Will system meet the needs of the business before going live? 4 www.ExigenServices.com
  • 5. 5 www.ExigenServices.com WHY SHOULD YOU USE PERFORMANCE TESTING?  Are undetected application bottlenecks resulting in slow time or downtime in production?  Are you struggling to deploy business systems smoothly, with no performance surprises?  How do you know if an application or system can scale to the desired level of usage in production?
  • 6. WHY SHOULD YOU AUTOMATE PERFORMANCE TESTING?  Manual testing limitations: It is expensive, requiring large amount of both personnel and machinery It is complicated, especially coordinating and synchronizing multiple testers It involves a high degree of organization, especially to record and analyze results meaningfully The repeatability of the manual tests is limited 6 www.ExigenServices.com
  • 7. 7 www.ExigenServices.com TESTING PROCESS. HOW DOES IT LOOK? Record a basic Vuser script Enhance and edit the script Configure run-time settings Run the Vuser script in stand-alone mode Incorporate the Vuser script into a LR scenario Planning the Test Creating Vuser scripts Creating the scenario Running the scenario Monitoring the scenario Analyzing Test Results number of scripts
  • 8. 8 www.ExigenServices.com LOADRUNNER  LoadRunner is an automated solution: – Put your application into stress; – Create controlled and peak load conditions; – Thousands of Virtual Users; – Using a minimum of hardware resources; – Repeatable, and measurable load
  • 9. 9 www.ExigenServices.com LOADRUNNER – TYPICAL ARCHITECTURE
  • 10. 10 www.ExigenServices.com LOADRUNNER – COMPONENTS – Virtual User Generator (VuGen ) – Controller – Analysis
  • 11. 11 www.ExigenServices.com LOADRUNNER – VIRTUAL USER GENERATOR – Records & runs scripts (Records on Windows platforms only) – Debugging of the scripts – Script can run on a Windows or UNIX machine – A custom type Vuser script
  • 12. 12 www.ExigenServices.com VIRTUAL USERS.  Reduces personnel requirements  Vusers emulate the behavior of real  Control - from a single point of control  By increasing the number of Vusers, you increase the load on the system  Reduces the amount of hardware required for testing
  • 13. 13 www.ExigenServices.com VUSER SCRIPTS USES SCRIPTS. WHAT IS IT ?!  A small program  The actions that a Vuser performs  ‘User data point’  ‘Parameters’  ‘Rendezvous points’  ‘Transactions’  ‘Run-time settings’  ‘Types’
  • 14. 14 www.ExigenServices.com VUSER SCRIPT STRUCTURE Method within Actions class Record into action Used to emulate Executed during init vuser_init a login to a server Initialization action Action client activity Running end vuser_end a log off procedure Finish or Stopped
  • 15. 15 www.ExigenServices.com VUGEN – OVERVIEW, RUN, DEBUGGING
  • 17. 17 www.ExigenServices.com VUGEN - TRANSACTIONS  The time it takes for the server to respond to specified Vuser requests.  Transactions are defined to measure the performance of the server.  The Controller measures the response times.
  • 19. 19 www.ExigenServices.com VUGEN – RENDEZVOUS POINTS  synchronize Vusers;  to perform a task at exactly the same moment;  to emulate heavy user load.  Note: You may only add rendezvous points in the Action section – not to the init or end .
  • 20. 20 www.ExigenServices.com VUGEN – RENDEZVOUS POINTS
  • 22. 22 www.ExigenServices.com VUGEN – RECORDING OPTIONS  Recording options specify: – The information to record; – Client/browser with which to record; – Environment Settings; – Recording Properties  Some of the recording options available are: – Recording Level – what information to record and which functions to use when generating script; – Correlation (HTML/WEB)
  • 23. 23 www.ExigenServices.com VUGEN – RECORDING OPTIONS Setting the Recording Level:
  • 24. VUGEN – RUN-TIME SETTINGS  Run-time settings define the way in which a script runs. – Stored in the default.cfg in the Vuser script directory – Applied to Vusers when the script is executed using VuGen or the Controller  Configuring run-time settings enable you to emulate different kinds of user activity 24 www.ExigenServices.com
  • 25. 25 www.ExigenServices.com VUGEN – RUN-TIME SETTINGS  General run-time settings include: – Run Logic – Number of times the action block of the script iterations (For HTML/WEB); – Pacing – the time between iterations; – Log – how much information is logged to the output; – Think time – emulates the time a real user waits between actions; – Miscellaneous.
  • 26. 26 www.ExigenServices.com VUGEN – RUN-TIME SETTINGS Setting the Run Logic [HTML/WEB] :
  • 27. 27 www.ExigenServices.com VUGEN – RUN-TIME SETTINGS Setting the Pacing:
  • 28. 28 www.ExigenServices.com VUGEN – RUN-TIME SETTINGS Setting the Think time:
  • 29. 29 www.ExigenServices.com VUGEN – RUN-TIME SETTINGS Setting the Miscellaneous:
  • 30. VIRTUAL USER TYPES  Application Deployment Solution: For Citrix/Microsoft RDP  Client/Server: For DB2 CLI, DNS, MS SQL Server, ODBC, Oracle (2-tier), 30 www.ExigenServices.com Sybase Ctlib, Sybase Dblib, Windows Sockets protocols  Distributed Components: For COM/DCOM, CORBA–Java, and RMI– Java protocols  E-business: For FTP, LDAP, Palm, Web (HTTP/HTML), Web Services, SOAP and Web/Winsocket Dual protocol  Enterprise Java Beans: For EJB Testing and Rmi-Java protocols  ERP/CRM: For Baan, Oracle NCA, Peoplesoft-Tuxedo, Peoplesoft 8, SAPGUI, SAP-Web, and Siebel (Siebel-DB2CLI, Siebel-MSSQL, Siebel- Web, and Siebel-Oracle) protocols  Legacy: For Terminal Emulation (RTE)  Mailing Services: Internet Messaging (IMAP), MS Exchange (MAPI), POP3, and SMTP  Middleware: Jacada and Tuxedo (6, 7) protocols  Streaming: For MediaPlayer and RealPlayer protocols  Wireless: For i-Mode, VoiceXML, and WAP protocols  Custom: C Vuser, Java template, Javascript Vuser, VB Script Vuser, Visual Basic template
  • 31. 31 www.ExigenServices.com VIRTUAL USERS PROTOCOLS  Microsoft .NET Protocol  Java Protocol  Java Protocol - Manually Programming Scripts  Enterprise Java Beans (EJB) Protocol  Flex Protocol  AJAX Protocol  AMF Protocol  Citrix Protocol  RDP Protocol
  • 32. 32 www.ExigenServices.com VIRTUAL USERS PROTOCOLS  Click and Script Protocol  Web Protocols  Oracle NCA Protocol  SAP Protocols  Java over HTTP Protocol  RTE Protocol  Windows Sockets Protocol  Mailing Service Protocols  Tuxedo Protocols
  • 33. 33 www.ExigenServices.com VIRTUAL USERS PROTOCOLS  Siebel Web Protocol  COM Protocol  Database Protocols  LDAP Protocol  Wireless Protocols  SilverLight Protocol  Web Services - Adding Script Content  Web Services - Managing Services  Web Services – Security
  • 34. 34 www.ExigenServices.com VIRTUAL USERS PROTOCOLS  Web Services - Preparing Scripts for Replay  Web Services - Service Emulation
  • 35. 35 www.ExigenServices.com VIRTUAL USERS PROTOCOLS  Note: In order to run the various protocols, you must have either a global license or licenses for the desired protocols.
  • 36. 36 www.ExigenServices.com LOADRUNNER – CONTROLLER  Easily and effectively control  Single point of control  Creates scenarios to test – Manages: – Load generators; – Number of virtual users; – Monitors.
  • 37. 37 www.ExigenServices.com SCENARIOS  number of users to emulate;  the actions they perform (Vuser scripts);  load generators
  • 38. 38 www.ExigenServices.com CONTROLLER – SCENARIOS Choosing the scenario type:
  • 39. 39 www.ExigenServices.com CONTROLLER – CREATING A SCENARIO  Select the Vuser scripts for the scenario  Add a Vuser group: – Choose a group name; – Select the number of Vusers to create in the group; – Select a load generator; – Select a Vuser script from the list  Configure run-time settings for the group
  • 40. CONTROLLER – CONFIGURING A SCENARIO  Some of the important parameters that maybe configured for each scenario: 40 www.ExigenServices.com – Run-time settings; – Timeout interval; – Run-time file storage
  • 41. 41 www.ExigenServices.com CONTROLLER – TAB ‘DESIGN’
  • 42. 42 www.ExigenServices.com LOADRUNNER – MONITORS  Run – time: number and status of Vusers  Transaction: transaction rate and response time  Web Resource: statistics at the Web server  System Resource: Windows, UNIX etc.
  • 44. 44 www.ExigenServices.com LOADRUNNER – ANALYSIS  Graphs  Reports  Drill down  External monitors  Correlation analysis  Controller stores a result (.lrr)  Analyze creates session
  • 46. 46 www.ExigenServices.com HINTS  %LR_Home%helpbooksbooks.pdf

Editor's Notes

  • #12: Virtual User Generator (VuGen), is the primary tool for developing Vuser scripts
  • #15: During recording, you can select the section of the script into which VuGen will insert the recorded functions. The vuser_init & vuser_end are executed only once. The Actions section is repeated during multiple iterations of the Vuser script.
  • #20: When a Vuser arrives at a rendezvous point, it is held by the Controller until all Vusers participating in the rendezvous reach that point.
  • #22: Record typical business processes on a client application. VuGen creates the script by recording the activity between the client and the server. Instead of manually creating a Vuser script by programming the application’s API function calls to the server, you use VuGen to: Monitor the communication between the application and the server; Generate the required function calls; Insert the generated function calls into a Vuser script.
  • #31: Virtual users depend upon the application layer protocol. Application layer protocol is the protocol that is used over TCP/IP. Examples are HTTP, SAP GUI Protocol, Protocols used by Oracle, etc.
  • #32: Note: In order to run the various protocols, you must have either a global license or licenses for the desired protocols.
  • #33: Note: In order to run the various protocols, you must have either a global license or licenses for the desired protocols.
  • #34: Note: In order to run the various protocols, you must have either a global license or licenses for the desired protocols.
  • #35: Note: In order to run the various protocols, you must have either a global license or licenses for the desired protocols.
  • #36: Note: In order to run the various protocols, you must have either a global license or licenses for the desired protocols.
  • #45: LoadRunner Analysis provides graphs and reports to help you analyze the performance of your system. When you run a scenario via Controller, data is stored in a result (.lrr) file. Analysis is the utility that processes the gathered result information and generates graphs and reports. Analysis graphs are generated for the resources that were monitored during the scenario execution.
  • #46: LoadRunner Analysis provides graphs and reports to help you analyze the performance of your system. When you run a scenario via Controller, data is stored in a result (.lrr) file. Analysis is the utility that processes the gathered result information and generates graphs and reports. Analysis graphs are generated for the resources that were monitored during the scenario execution.