|
Summary
This page presents eValid's solution to testing and validating the AJAX
implementation methods used by
Backbase, an AJAX-based development system.
The script developed involves:
Example Description
SyncOnSelectedObjProperty 0 723 "innerHTML" "Welcome" "readyState" "complete" ""
In this command eValid examines the page element which has the property "innerHTML" equal to "Welcome" and then waits for the same element's property "readyState" to equal "complete" before continuing playback (which has already happened in the PageMap example below because page loading is 100% complete). How often to check the value, and how long to wait before giving up, are both specified in the eValid playback preferences.
# AUTOPLAY8==<uj-fs~w)
#
# Recording by eValid(TM) V8
# Copyright (c) 2008 by Software Research, Inc.
# Recording made on: Microsoft Windows 2000 SP3
#
ProjectID "Project"
GroupID "Group"
TestID "prof"
LogID "AUTO"
ScreenSize 1280 1024
FontSize 2
DeleteCache
DeleteCookies
InitLink "http://www.backbase.com/demos/explorer"
# MANUALLY added/edited this syncing script command...
SyncOnSelectedObjProperty 0 723 "innerHTML" "Welcome" "readyState" "co" \
"mplete" ""
Wait 2370
ElementMouseDown 0 281 "" "Modal" ""
Wait 190
ElementMouseUp 0 281 "" "Modal" ""
ElementClick 0 281 83 322 "" "Modal" "" NAV
# Validation command...
ValidateSelectedText 0 770 0 "What was The Godfather about?" ""
Wait 1040
ElementMouseDown 0 770 "" "What was The Godfather about?" ""
Wait 1230
ElementMouseUp 0 770 "" "What was The Godfather about?" ""
FollowLink 0 770 "What was The Godfather about?" "javascript:void(0);" "" NO_NAV
Wait 1000
ElementMouseDown 0 898 "" "The Godfather is a film adaptation of the nov" \
"el of the same name (see The Godfather novel) written by Mario Puzo, dir" \
"ected by Francis Ford Coppola and starring Marlon Brando and Al Pacino. " \
"The film spans ten years from late 1945 to 1955 (after Don Vito Corleone" \
"'s death in 1954)." ""
Wait 1100
ElementMouseUp 0 898 "" "The Godfather is a film adaptation of the novel" \
" of the same name (see The Godfather novel) written by Mario Puzo, direc" \
"ted by Francis Ford Coppola and starring Marlon Brando and Al Pacino. Th" \
"e film spans ten years from late 1945 to 1955 (after Don Vito Corleone's" \
" death in 1954)." ""
ValidateSelectedText 0 898 66 "see The Godfather novel) written by Mario" \
" Puzo, directed by Francis Ford Coppola" ""
# Closeout sequence...
Wait 3525
ElementMouseDown 0 917 "" "Close" ""
Wait 400
ElementMouseUp 0 917 "" "Close" ""
ElementClick 0 917 702 462 "" "Close" ""
Wait 3505
ElementMouseDown 0 56 "" "Welcome" ""
Wait 191
ElementMouseUp 0 56 "" "Welcome" ""
ElementClick 0 56 107 101 "" "Welcome" "" NAV
# End of script.
|