|
Configuration
Suppose that this test is to be run 12 times a day,
every 2 hours at 20 minutess past the
hour: e.g. 00:20, 02:20, 04:20, ... ,10:20.
The script will involve the monitoring of a mailbox which
requires eValid to login to an account,
perform a basic validation in the page, and then
to check whether any new mail has arrived.
Script Description
The script below uses WaitHH and WaitMM commands to wait for the
time specified until commencing the test.
Remember to have eValid "Run Forever" by selecting
eValid:
Playback >
Control Playback >
Run Forever
[Ctrl+F9]
Run the script, if an error occurs, another command is utilized to handle such cases. Setting the Overtime Alarm to automatically send an email message when the time specified in the Timer Alarm has been surpassed therefore prompting eValid to send an email or inform the user through a dialog box.
Set the Timer Alarm during recording by selecting eValid: Record > Timer > Set Alarm [Ctrl+A] and enter the URL of the CGI given below as well as the email address of the person you want to send the email to.
Note: If you use this script, please check for folded lines within the script and unfold them so there is one eValid command per line.
# # Recording by eValid V9 # Recording made on: Microsoft Windows 2000 # ProjectID "Project" GroupID "Group" TestID "wait_cmd1" LogID "AUTO" # These commands force the script to wait until the desired time... WaitHH 02 WaitMM 20 ResetTimer InitLink http://www.yahoo.com/ Wait 2500 GotoLink "http://mail.yahoo.com/" "" InputValue 111 "TEXT" "login" "evalidXXXX" "" "" Wait 6800 TabKey InputValue 116 "TEXT" "passwd" "evalidXXXS" "" "" Wait 5037 TabKey InputValue 120 "CHECKBOX" ".persistent" "y" "FALSE" "" Wait 951 TabKey Wait 791 InputValue 111 "TEXT" "login" "evalidXXXX" "" "" InputValue 116 "TEXT" "passwd" "evalidXXXX" "" "" InputValue 120 "CHECKBOX" ".persistent" "y" "FALSE" "" PostURL "http://login.yahoo.com/config/login?618mbeuuk4j8d" ".tries=&.src=ym&.last=&promo=&.intl=us&.bypass=&.partner=& amp;.u=1slogfotno0cq&.v=0&hasMsgr=1&.chkP=Y&.done=&login=evalid94107& amp;passwd=evalid" SubmitClick 124 "Sign In" "" NAV ValidateSelectedText 80 0 "Unread Messages (0)" "wmailmain" Wait 2500 FollowLink 132 "Sign Out" "http://us.f137.mail.yahoo.com/ym/Logout?YY=52434" "wmailmenu" Wait 2704 InputValue 72 "TEXT" "passwd" "" "" "" FollowLink 89 "Sign out completely" "http://login.yahoo.com/config/login? logout=1&.intl=us&.src=ym&.partner=& amp;.done=http%3a//login.yahoo.com/config/mail%3f.intl=us%26.lg=us" "" Wait 1763 FollowLink 17 "Yahoo!" "http://www.yahoo.com/" "" ElapsedTime # Note: Although there is a provided CGI page in this script, it is advisable to use your # own CGI scripts in order to track the events more accurately. OvertimeAlarm 35000 "Alarm Message " http://www.e-valid.com/Cgi-Bin/evalid.alarm.cgi yourname@domain.com 2 Wait 360000 |