You are on page 1of 36

Load Testing needs

{ Due to application complexity


{ Due to failure in a business process
{ Difficult to find the root cause of a problem in application
deployment process
Load Testing find out

{ Does the application respond quickly enough for the


intended users?
{ Will the application handle the expected user load and
beyond?
{ Will the application handle the number of transactions
required by the business?
{ Is the application stable under expected and unexpected
user loads?
Types of Load Testing Tools

{ LoadRunner : Mercury Interactive


{ e-Load :Emprix
{ Silk Performer :Seague
{ QACenter : Compuware
{ Rational Suite Test Studio : IBM Rational
Mercury Interactive : LoadRunner
{ LoadRunner tool is designed for load testing
{ Current version 8.1
{ Support with various environments: Java, .Net, UNIX, Citix
MetaFrame, XML and other environments
{ Having features included with Java/JE22 , SAP, .Net Diagnostics tool
{ LoadRunner offers a host of capabilities including WAN emulation
support. A Web transaction breakdown monitor helps isolate
performance problems, while the tool's data wizard helps developers
create data-driven tests quickly. In addition, the new tuning module
add-on provides component test libraries and a knowledge base that
helps isolate and resolve performance bottlenecks.
System Requirements
Load Runner Components

The Controller The Analysis


organizes, helps you
drives, view, dissect,
manages, and and compare
monitors the the
load test. performance
results.

The Virtual User The Load


Generator captures Generators
end-user business create the load
processes and by running
creates an virtual users.
automated
performance testing
script, also known
as a virtual user .
script.
How LoadRunner works
Load Testing Process with in LoadRunner
Performance Testing Approach

Finding the Performance testing goals using testing approach


z Type of load test

z Average Response time

z User load estimation

z User load distribution

z User activity analysis

z Production environment analysis

z Performance Testing tools


Type of load test

Load test
Load test determines how is the performance of application under the
concurrent user sessions for typical user scenario. The think time taken
into consideration in these test scripts.
Stress test
Stress test examines how application behaves under maximum load. In
simple terms find the upper threshold for the application below which it
can work normally. Think time ignored in these tests.
Performance test
Performance test indicates response time for the entire application from
the user’s perspective.
User Load Estimation

{ Performance Testing requirements will give an idea of


users load or the number of users using the product. This
will determine the load to be used against the product in
testing.
User load distribution

This factor will input to the scenarios to be used and configured in


the load test.
User activity analysis

{ By understanding the application ( Use Cases or Design


Documents)
{ Find out the user activities.
{ Nothings just general manual script in order to perform
the such action.( Basic Flow )
Production Environment Analysis
{ A discussion with Business analyst or from requirement
specification design document will throw light on
deployment environment
{ Mirror the production environment into a testing
environment.
Create Vuser Scripts

Using LoadRunner-VUGen

Open VUGen from


Start>All Programs>Mercury>Load Runner

If you had installed in your PC


Create Vuser Scripts : VUGen

To Create new script:


Select the
Create / Edit Scripts Link
VUGen: Create Vuser Scripts Cont….

To Create New Script


Click on the “New Vuser
Script…” Link

To open existing Script


Click on the “Open
Existing Script…” Link
VUGen: Create Vuser Scripts Cont….

To record New Script


1. Select the Protocols from
available Protocols
2. Click OK button
VUGen: Create Vuser Scripts Cont….

Click on the “ Record


Application” Link
VUGen: Create Vuser Scripts Cont….

Under Application type


- Internet Applications
- Win Application

URL address
for
application
or web

Program to record
Record Into Action Microsoft Internet Explorer or Netscape
Working Directory: vuser_init or Mozilla
Where you can save Actions
the script. vuser_logout
VUGen: Recording Summary
VUGen: Run Time Settings
VUGen: Verify Replay Summery

Click on the “Verify


Replay” link

To View the Results:


Click on the “Visual
Test Results” link
Define a Scenario

Using the LoadRunner Controller,


Set up the load test by defining the scenarios.
Define a Scenarios cont…
Define a Scenarios cont….
Controller Monitors
Run the Scenario

Drive, manage, and monitor the load test from the LoadRunner
Controller.
Running the Scenario cont….
Analyze the results
Use LoadRunner Analysis to create graphs and reports, and
evaluate the performance.
Results: Analysis Summary
Results: Transaction Summary
Data Collection from various result graphs
Based on the various graph, we will able to collect
following data metrics .
z Response time for each transaction
z Total load on the server
z Test scenarios details, Run Time setting detail
z Total hits and hits/second
z Total Pass , Failed, Stop transactions
z Number of processes running on server
z Memory detail
z CPU utilization
Report Generation

{ Generate two types of reports


z Load runner detailed reports: Word and HTML
version
z Generic reports in word version for the activities
performed in the scenario and response time details
with other observation and conclusions for the
management
{ Generating graphs also helps
z Helps in tracking per load cycle results

z Easy to interpret for people