Title: Loadrunner Online training by Cheyat Technologies
1Creating Vusers CHECKPOINTS
http//cheyat.com/qa/loadrunner-online-training-
tutorials
LRWEB6.5/03
2Objectives
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
3The Business Process Works for One User . . .
Process complete!
theInternet
Web Server
Database server
Database server
4. . . But May Not Work for Many Concurrent Users
Process failed!
theInternet
Web Server
Database server
Database server
5Key Terms Used in This Course
6Which Visual Cues Confirm Business Process
Success?
7How Virtual Users Verify Functionality
- Compare the actual value on the web page to the
expected value during playback
- Report the comparison result (status), either
PASS or FAIL
8Key Terms Used in This Course
9Types of Checks
10Determine Visual Cues to Verify
Same image whenever page is loaded . . .
11LoadRunner Expert WorkflowZooming In
122.4 Add Verification ChecksCreating an Image
Check
1. While recording, get the image name
a. In the browser, right click on image to be
checked
b. Select Save Picture As from pop-up menu
132.4 Add Verification ChecksCreating an Image
Check
c. Copy existing file name using Ctrl C
d. Click Cancel
(logo.gif)
NOTE If the file extension (.gif, .jpg, etc.)
does not appear, type it in the box yourself
before copying
142.4 Add Verification ChecksCreating an Image
Check
2. Add the step
a. Click the Insert After toolbar button
b. The Add Step dialog opens
c. Select Image Check, and click OK.
The Image Check Properties dialog opens.
152.4 Add Verification ChecksCreating an Image
Check
3. Paste the file name into Image Check Properties
a. Check the Image server file name (SRC
attribute) check box
b. Paste the file name into the edit box using
Ctrl V
162.4 Add Verification ChecksCreating an Image
Check
4. Rename the step
a. Click the General tab
b. Change the Step Name from default Image
Check to a more descriptive name
c. Click OK to finish
172.4 Add Verification ChecksCreating an Image
Check
The image check step is displayed in the Icon
Tree under the page where image appears
18Types of Checks
Example usage
Check
Did the news site display the picture?
Image
Did a search enginereturn expected matches?
Text
19Determine Text Check Type to Use
DESCRIPTION
TYPE
EXAMPLE
Checks for an exact match of the visual cue
Plain text
A
Regular expression
Checks for a flexible range of values
a-z.
9
Checks for numeric values defined in the check
Number
20Determine Text Check Type to Use
Type Type
Use plain text
Same static text whenever page is loaded . . .
212.4 Add Verification ChecksPlain Text Check
With Boundaries
22Determine Text Check Type to Use
Order number changes for every transaction . . .
23Key Terms Used in This Course
24Regular Expressions Explained
NOTE For more information about regular
expressions consult your LoadRunner documentation
252.4 Add Verification ChecksRegular Expression
Check
262.4 Add Verification ChecksChecking a Visual
Cue Generated by a Parameter
272.4 Add Verification ChecksChecking a Visual
Cue Generated by a Parameter
1. Add a text check to a parameterized step
2. Click the ABC button
3. Select the steps parameter from the list and
click OK
- LoadRunner will now check for the value of the
parameter during each iteration
28Checking for an Error Page
Q If you check for an error page and the error
page is found, should the Vuser pass?
A No.
Q So, how do you change a checks pass to a fail
and vice versa?
29Modify Check Properties
- 1. Open Text Check Properties dialog, General tab
2. Uncheck View only the active properties
3. In the Expect row, select NotFound from
Value list
4. Click the box to the left of Expect
30LoadRunner Expert WorkflowZooming In
31Setup for Execution Enable Checks in Run-Time
Settings
- NOTE If a check was added
- during recording, this setting is automatically
checked - after recording, you must check the setting
yourself
322.5 Verify Correct ExecutionCheck Mercury Test
Results Window
PASSED EXAMPLE Test Status Passed Check marks
Green
332.5 Verify Correct ExecutionCheck Mercury Test
Results Window
FAILED EXAMPLE Test Status Failed X marks Red
342.5 Verify Correct Execution Check VuGen
Execution Log
PASSED EXAMPLE
352.5 Verify Correct Execution Check VuGen
Execution Log
FAILED EXAMPLE
36Summary
- 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
37Lab Exercise