Upload
jilani-shaik
View
215
Download
0
Embed Size (px)
Citation preview
8/18/2019 Loadrunner Online Training by Cheyat Tech
1/37
http://cheyat.com/qa/loadrunner-online-training-tutorials
Creating Vusers:
CHECKPOI!"
LRWEB6.5/03
8/18/2019 Loadrunner Online Training by Cheyat Tech
2/37
O#$ecti%es
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
8/18/2019 Loadrunner Online Training by Cheyat Tech
3/37
!he &usiness Process 'or(s )or
One *ser . . .
Web
Server
rocess
complete!
"atabase
server
"atabase
server
theInternet
8/18/2019 Loadrunner Online Training by Cheyat Tech
4/37
. . . &ut +ay ot 'or( )or +any
Concurrent *sers
Web
Server
"atabase
server
"atabase
server
theInternet
rocess
failed!
8/18/2019 Loadrunner Online Training by Cheyat Tech
5/37
Key !erms *sed in !his Course
#onfirming that all business processes
complete properly while the server$s%
handle concurrent usage&
'unctional Testing
(nder )oad
8/18/2019 Loadrunner Online Training by Cheyat Tech
6/37
'hich Visual Cues Con)irm
&usiness Process "uccess,
Where in the businessprocess might load
overwhelm the server$s%
and cause failure*
What visual cues in
the browser indicatesuccess*
Web+based
bookseller
hoto archive of
newspaper e,tranet
• Search
• Submit order
-esults page
instead oferror message
Image re.uest
/,pected image
displayed
0rder /ntry
Intranet Site
Inserting asales order
0rder number
appears
/123)/ #2S/
S#/42-I0S
8/18/2019 Loadrunner Online Training by Cheyat Tech
7/37
Ho Virtual *sers Veri)y
unctionality
Virtual (sers:
• #ompare the actual value on the web page to thee,pected value during playback
• -eport the comparison result $status%5
either 2SS or '2I)
• Store the expected value
8/18/2019 Loadrunner Online Training by Cheyat Tech
8/37
Key !erms *sed in !his Course
2 step in the Vuser script which
verifies whether a visual cue
appeared as e,pected&
#heckpoint
8/18/2019 Loadrunner Online Training by Cheyat Tech
9/37
!ypes o) Chec(s
"id the news site
display the picture*
Example usageCheck
Image
8/18/2019 Loadrunner Online Training by Cheyat Tech
10/37
etermine Visual Cues to Veri)y
Same image
whenever page is
loaded & & &
(se imagecheck
8/18/2019 Loadrunner Online Training by Cheyat Tech
11/37
0oad1unner E2pert 'or()lo
34ooming In5
Tune
System 6ased
on 2nalysis
2naly7e
System
(nder )oad
-un
Scenarios
#reate
Scenarios
#reate Web
Virtual (sers
Phase 1
lan )oad
Test
hase 8 Phase 3 Phase 4 Phase 5
#-/2T/ W/6 VI-T(2) (S/-S
8&9 -ecord user actions
8&8 2dd )oad-unner transactions
8& arameteri7e data
8&; 2dd verification checks
8&< Verify correct e,ecution
8/18/2019 Loadrunner Online Training by Cheyat Tech
12/37
6.7 8dd Veri)ication Chec(s
Creating an Image Chec(
a& In the browser5
right click onimage to be
checked
b& Select =Save
icture 2s>?from pop+up
menu
9& While recording5get the image
name
8/18/2019 Loadrunner Online Training by Cheyat Tech
13/37
6.7 8dd Veri)ication Chec(s
Creating an Image Chec(
$logo&gif%
c& #opy e,istingfile name using
#trl @ #
d& #lick Cancel
40T/: If the file e,tension $&gif5 &Apg5 etc&% does notappear5 type it in the bo, yourself before copying
8/18/2019 Loadrunner Online Training by Cheyat Tech
14/37
a& #lick the
Insert After
toolbar button
6.7 8dd Veri)ication Chec(s
Creating an Image Chec(
c& Select Image Check,
and click OK.
b& The 2dd Step dialog
opens
8& 2dd the step
The Image #heck
roperties dialog opens.
8/18/2019 Loadrunner Online Training by Cheyat Tech
15/37
a& #heck the Imageserver file name
(SRC attriute!
check bo,
6.7 8dd Veri)ication Chec(s
Creating an Image Chec(
b& aste the file nameinto the edit bo,
using #trl @ V
& aste the file name
into Image #heck
roperties
8/18/2019 Loadrunner Online Training by Cheyat Tech
16/37
6.7 8dd Veri)ication Chec(s
Creating an Image Chec(
a& #lick the "eneral tab
b& #hange the Step
#ame from default=Image #heck? to a
more descriptive
name
c& #lick OK to finish
;& -ename the step
8/18/2019 Loadrunner Online Training by Cheyat Tech
17/37
6.7 8dd Veri)ication Chec(s
Creating an Image Chec(
The image
check step
is displayed
in the IconTree under
the page
where image
appears
8/18/2019 Loadrunner Online Training by Cheyat Tech
18/37
"id a search engine
return e,pected matches*
!ypes o) Chec(s
Example usageCheck
"id the news site
display the picture*
Image
Te,t
8/18/2019 Loadrunner Online Training by Cheyat Tech
19/37
etermine !e2t Chec( !ype to *se
"/S#-ITI04
#hecks for numeric values
defined in the check4umber
9
#hecks for a fle,ible range of
values
-egular
e,pression 9 -:; <
#hecks for an e,act match of
the visual cuelain te,t
TB/ /123)/
8/18/2019 Loadrunner Online Training by Cheyat Tech
20/37
etermine !e2t Chec( !ype to *se
Same static te,t
whenever page is
loaded & & &
(se plain te,t
Type Type
8/18/2019 Loadrunner Online Training by Cheyat Tech
21/37
6.7 8dd Veri)ication Chec(s
Plain !e2t Chec( 'ith &oundaries
8/18/2019 Loadrunner Online Training by Cheyat Tech
22/37
etermine !e2t Chec( !ype to *se
0rder number
changes for every
transaction & & &
(se regulare,pression
9=->; <
8/18/2019 Loadrunner Online Training by Cheyat Tech
23/37
Key !erms *sed in !his Course
2 regular e,pression uses a wild card
to indicate a range of possible values&
-egular /,pression
8/18/2019 Loadrunner Online Training by Cheyat Tech
24/37
1egular E2pressions E2plained
stC startstop
matches any string of
characters
DE+FC 98<FF;9
matches any string of
characters in rangeD
D
8/18/2019 Loadrunner Online Training by Cheyat Tech
25/37
6.7 8dd Veri)ication Chec(s
1egular E2pression Chec(
8/18/2019 Loadrunner Online Training by Cheyat Tech
26/37
6.7 8dd Veri)ication Chec(s
Chec(ing a Visual Cue ?enerated
#y a Parameter
Visual #ue may be:
• robot• alien• toucan• rabbit
depending on the input data
How to
check *
8/18/2019 Loadrunner Online Training by Cheyat Tech
27/37
6.7 8dd Veri)ication Chec(s
Chec(ing a Visual Cue ?enerated
#y a Parameter
9& 2dd a te,t check to a
parameteri7ed step
8& #lick the A$C button
& Select the steps
parameter from the list
and click OK
•
)oad-unner willnow check for the
value of the
parameter during
each iteration
8/18/2019 Loadrunner Online Training by Cheyat Tech
28/37
Chec(ing )or an Error Page
J: If you check for an error page and the error pageis found5 should the Vuser pass*
2: 4o&
J: So5 how do you change a checks pass to a
fail and vice versa*
/123)/
8/18/2019 Loadrunner Online Training by Cheyat Tech
29/37
+odi)y Chec( Properties
9& 0pen Te,t #heck roperties
dialog5 General tab
8& (ncheck %ie& 'nl
the active pr'perties
& In the Expect row5
select =4ot'ound?
from %alue list
;& #lick the bo, to the
left of Expect
/123)/
8/18/2019 Loadrunner Online Training by Cheyat Tech
30/37
0oad1unner E2pert 'or()lo
34ooming In5
Tune
System 6ased
on 2nalysis
2naly7e
System
(nder )oad
-un
Scenarios
#reate
Scenarios
#reate Web
Virtual (sers
Phase 1
lan )oad
Test
hase 8 Phase 3 Phase 4 Phase 5
#-/2T/ W/6 VI-T(2) (S/-S
8&9 -ecord user actions
8&8 2dd )oad-unner transactions
8& arameteri7e data
8&; 2dd verification checks
8&< Verify correct e,ecution
8/18/2019 Loadrunner Online Training by Cheyat Tech
31/37
"etup )or E2ecution @
Ena#le Chec(s in 1un-!ime "ettings
40T/: If a check was added
• during recording5 this setting
is automatically checked
• after recording5 you must
check the setting yourself
8/18/2019 Loadrunner Online Training by Cheyat Tech
32/37
6.A Veri)y Correct E2ecution
Chec( +ercury !est 1esults 'indo
2SS/" /123)/
Test Status K assed
#heck marks K Green
8/18/2019 Loadrunner Online Training by Cheyat Tech
33/37
6.A Veri)y Correct E2ecution
Chec( +ercury !est 1esults 'indo
'2I)/" /123)/
Test Status K 'ailed
1 marks K -ed
8/18/2019 Loadrunner Online Training by Cheyat Tech
34/37
6.A Veri)y Correct
E2ecution
Chec( Vu?en
E2ecution 0og
2SS/" /123)/
8/18/2019 Loadrunner Online Training by Cheyat Tech
35/37
6.A Veri)y Correct
E2ecution
Chec( Vu?en
E2ecution 0og
'2I)/" /123)/
8/18/2019 Loadrunner Online Training by Cheyat Tech
36/37
"ummary
• "etermine the visual cues you will check to verify
each business process
• 2dd te,t and image checks during recording
• 3ake sure that Enale verificati'n checks ischecked in the -un+Time Settings5 )**+ tab
before running the Vuser
• )oad-unner compares a stored5 e,pected value to
an actual value obtained during the run• The check status is always 2SS or '2I)
8/18/2019 Loadrunner Online Training by Cheyat Tech
37/37
0a# E2ercise
http://cheyat.com/qa/loadrunner-online-training-tutorialshttp://cheyat.com/qa/loadrunner-online-training-tutorials