Professional Documents
Culture Documents
Loadrunner Online Training
Loadrunner Online Training
CHECKPOINTS
http://cheyat.com/qa/loadrunne
r-online-training-tutorials
LRWEB6.5/03
Objectives
In this lesson you will learn:
Visual cues to check for during load testing
The importance of functional testing under load
The types of checks in VuGen
How to add verification checkpoints during
recording
the
Internet
Database Database
server
server
Web
Server
the
Internet
Database Database
server
server
Web
Server
Functional Testing
Under Load
Confirming that all business processes
complete properly while the server(s)
handle concurrent usage.
Web-based
bookseller
Order Entry
Intranet Site
Photo archive of
newspaper extranet
Search
Submit order
Inserting a
sales order
Image request
Results page
instead of
error message
Order number
appears
Expected image
displayed
Checkpoint
A step in the Vuser script which
verifies whether a visual cue
appeared as expected.
Types of Checks
Check
Image
Example usage
Did the news site
display the picture?
Same image
whenever page is
loaded . . .
Use image
check
Phase 2
Create Web
Virtual Users
Phase 3
Create
Scenarios
Phase 4
Run
Scenarios
Phase 5
Analyze
System
Under Load
Tune
System Based
on Analysis
(logo.gif)
Types of Checks
Check
Example usage
Image
Text
EXAMPLE
Plain text
Regular
expression
Number
DESCRIPTION
[a-z].*
Type Type
[0-9].*
Order number
changes for every
transaction . . .
Use regular
expression
Regular Expression
A regular expression uses a wild card
to indicate a range of possible values.
[]
[]
welcome
welcomes
welcomed
st*
start
stop
matches a range of
characters
[5-9]th
5th
7th
option [a-f]
option c
option d
[0-9]*
125
99431
NOTE: For more information about regular expressions consult your LoadRunner documentation
EXAMPLE
Phase 2
Create Web
Virtual Users
Phase 3
Create
Scenarios
Phase 4
Run
Scenarios
Phase 5
Analyze
System
Under Load
Tune
System Based
on Analysis
PASSED EXAMPLE
Test Status = Passed
Check marks = Green
FAILED EXAMPLE
Test Status = Failed
X marks = Red
Check VuGen
Execution Log
PASSED EXAMPLE
Check VuGen
Execution Log
FAILED EXAMPLE
Summary
Determine the visual cues you will check to verify
each business process
Add text and image checks during recording
Make sure that Enable verification checks is
checked in the Run-Time Settings, HTTP tab
before running the Vuser
LoadRunner compares a stored, expected value to
an actual value obtained during the run
The check status is always PASS or FAIL
Lab Exercise