|
Background
This example shows the ease with which eValid can
confirm basic viability of multiple search engines.
Script Description
This example playback script uses eValid "motion commands" to
run and confirm the search.
The search engine used here is Google, but it could be any other search engine.
The activity is expressed parametrically, as follows: run a search on webpage $HOME for the specified search $SEARCH and then, after the search completes, confirm that the expected result, $TARGET, appears on the first page of the search. The key parts of the input.evs script are as follows:
Here is how this script works when interpreted by eValid:
Running Multiple Tests
This script is specified parametrically,
so you can conveniently run this kind of sequence:
. . .
CallScript "input.evs" "$HOME=www.google.com $SEARCH=Apple $TARGET=ipod"
CallScript "input.evs" "$HOME=www.google.fr $SEARCH=Apple $TARGET=ipod"
CallScript "input.evs" "$HOME=www.google.de $SEARCH=Apple $TARGET=ipod"
. . .
Each invocation of input.evs substitutes values as indicated.
In this case we are trying out three of Google's country-dependent top pages.
Results
The screenshot below shows the actual playback times for 15 different countries'
playbacks.
In the above image the 5th column shows the total elapsed time for each script; in this particular run all 15 scripts required 37.453 msec total to run. The elapsed time figures are ONLY for the interval between ResetTimer and ElapsedTime (see script below).
Scripts
Here are the actual scripts used:
# eValid Script: input.evs # Recording by eValid V9 ProjectID "Motion" GroupID "Google1" TestID "input" LogID "AUTO" ScreenSize 1280 1024 DeleteCache DeleteCookies ResetTimer InitLink "http://$HOME/" IndexFindElement 0 DOWN "name" "q" "" IndexInputValue 0 "TEXT" "$SEARCH" "" "" IndexFindElement 0 DOWN "name" "btnG" "" IndexFollowLink 0 "" MatchString 0 "$TARGET" 0 ElapsedTime "$HOME" # End of script.
# eValid Script search.evs # Recording by eValid V9 ProjectID "Motion" GroupID "Google1" TestID "search" LogID "AUTO" CallScript "input.evs" "$HOME=www.google.com $SEARCH=Apple $TARGET=ipod" CallScript "input.evs" "$HOME=www.google.fr $SEARCH=Apple $TARGET=ipod" CallScript "input.evs" "$HOME=www.google.de $SEARCH=Apple $TARGET=ipod" CallScript "input.evs" "$HOME=www.google.cn $SEARCH=Apple $TARGET=ipod" CallScript "input.evs" "$HOME=www.google.it $SEARCH=Apple $TARGET=ipod" CallScript "input.evs" "$HOME=www.google.be $SEARCH=Apple $TARGET=ipod" CallScript "input.evs" "$HOME=www.google.no $SEARCH=Apple $TARGET=ipod" CallScript "input.evs" "$HOME=www.google.ru $SEARCH=Apple $TARGET=ipod" CallScript "input.evs" "$HOME=www.google.jp $SEARCH=Apple $TARGET=ipod" CallScript "input.evs" "$HOME=www.google.in $SEARCH=Apple $TARGET=ipod" CallScript "input.evs" "$HOME=www.google.es $SEARCH=Apple $TARGET=ipod" CallScript "input.evs" "$HOME=www.google.bg $SEARCH=Apple $TARGET=ipod" CallScript "input.evs" "$HOME=www.google.pl $SEARCH=Apple $TARGET=ipod" CallScript "input.evs" "$HOME=www.google.pt $SEARCH=Apple $TARGET=ipod" CallScript "input.evs" "$HOME=www.google.fi $SEARCH=Apple $TARGET=ipod" # End of script.