|
Summary
This page explains the steps needed to validate the contents of a pulldown menu that
results from a mouseclick.
A pulldown menu might look like the following:
Recording Process
To record the menu action(s) and validate the contents of the pulldown
please follow test steps:
NOTE: The "ValidateSelectedObjProperty" Script Command Generates the Following Event Log Action Details...
contents of "pulldown-B.pmenu1.bmp"... the RECORDED BASELINE file.
NOTE: The "clValidateSavedScreenRect" Script Command Generates the Following Event Log Action Details...
NOTE: The "clSyncRect" Script Command Generates the Following Event Log Action Details...
Turn "On" Insert Recording - Record Mode/Options...
Turn "On" Absolute MouseClicks - Advanced Recording Mode/Options...
Click the Appropriate "Script File" Insertion Point for the Absolute MouseClick Action Required...
NOTE: "Line 30" is the Resulting Inserted Script File Action Addition...
contents of "pulldown-R.pmenu1.bmp"... the PLAYBACK RESPONSE file
Manual POST changes result with "pulldown-B.pmenu1.bmp"
Example
Here is a script that shows how this works, using THIS page as an example.
CAUTION! Please Adjust Baseline and Checksum accordingly, as this
page and/or environments may differ from the initial creation point!
# # Recording by eValid(TM) V6 Build #212, Build Date: (Dec 22 2000-2007) # Copyright © 2000-2007 by Software Research, Inc. # Recording made on: Microsoft Windows 2000 Service Pack 3 (IE 6.0.2800.1106), HostName "bulgaria" # Recording started at: <2007/01/02 16:42:38> # ProjectID "Temp" GroupID "demo" TestID "pulldown" LogID "AUTO" ScreenSize 1280 1024 FontSize 2 DeleteCache DeleteCookies #STEP 2... InitLink "http://www.soft.com/eValid/Products/Documentation.7/Support/val" \ "idate.pulldown.html" Wait 8622 #STEP 3... InputValue 0 38 "SELECT-ONE" "" "" "List item#2" "1" "" Wait 2000 #STEP 4... ValidateSelectedObjProperty 0 40 "tagName" "OPTION" "innerText" "List it" \ "em#2" "" Wait 9697 WindowPos 0 0 0 980 694 #Wait 29322 #STEP 10... ####### ADD-INSERT RECORDING of a Mouse Click for Screen Rectangle Captures... clLClick 0 503 305 0 # # Insert-Recording stopped at: <2007/01/02 16:47:21> Wait 2322 #STEP 5... clValidateSavedScreenRect 0 "pmenu1" 263 242 435 161 #WindowPos 0 0 0 980 694 Wait 3388 #STEP 6... ####### Original action location and checksum parameter field... #clSyncRect 0 297 235 399 169 23329408 #STEP 13... ####### Manual POST modified checksum field and action location... clSyncRect 0 297 235 399 169 22810481 # Recording stopped at: <2007/01/02 16:44:16> |