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
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
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 .
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)
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.
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.
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
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.
Virtual User Generator (VuGen), is the primary tool for developing Vuser scripts
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.
When a Vuser arrives at a rendezvous point, it is held by the Controller until all Vusers participating in the rendezvous reach that point.
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.
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.
Note: In order to run the various protocols, you must have either a global license or licenses for the desired protocols.
Note: In order to run the various protocols, you must have either a global license or licenses for the desired protocols.
Note: In order to run the various protocols, you must have either a global license or licenses for the desired protocols.
Note: In order to run the various protocols, you must have either a global license or licenses for the desired protocols.
Note: In order to run the various protocols, you must have either a global license or licenses for the desired protocols.
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.
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.