|
Description of Script
This AUTOPLAY script illustrates eValid Yahoo! Login steps.
Script Playback
The script shown in the table below is can be copied and pasted into the
Script Dialog for playback by eValid:
Important Note: This script is an example and may not work with your environment or setup. You may need to re-record a similar script to get correct resultes.
| Example Script |
# AUTOPLAY8=;;uj-cpzs* # eValid AutoDemo: Yahoo! Demonstration Script # # Recorded by eValid V8 # (c) Copyright 2000-2012 by Software Research, Inc. # # This script illustrates basic eValid features by logging into a Yahoo! # account, checking contents on certain pages, and then closing the login. ProjectID "Demos" GroupID "Autoplay1" TestID "11" LogID "AUTO" # Go to the Yahoo! site... #Set PlayValues PlayValue _PC 20000 PlayValue _PM 1.0 PlayValue _PT 80000 ScreenSize 1024 768 FontSize 1 # Reposition Screen to upper right corner WindowPos 0 270 0 753 696 # MessageWindow "MESSAGE" [seconds [x y w h]] - display # MESSAGE in a new browser window... MessageWindow "<LINK REL="stylesheet" type="text/css" " \ "href="http://www.e-valid.com/Parts/newevalid.css">" \ "<TABLE CELLSPACING=0 CELLPADDING=10 BGCOLOR=lightyellow " \ "WIDTH=220 BORDER=1><TR><TD VALIGN=TOP>" \ "<IMG SRC="http://www.e-valid.com/Images/eV_white_top_30x25.gif" " \ "ALIGN=LEFT WIDTH=30 HEIGHT=25>This is a typical " \ "<font color=red>eValid</font> "script.evs" file in " \ "<font color=green><b>Playback</b></font> mode. " \ "<br><br>From eValid's browser, we will go to our " \ "Yahoo account, log-in, and then send an eMail " \ "message.</TD></TR></TABLE>" \ "" 0 1 2 269 392 GotoLink 0 "http://www.e-valid.com/Products/Demos.5/images/yahoo.box1.gif" "" Wait 3500 InitLink "http://www.yahoo.com/" Wait 5000 GotoLink 0 "http://mail.yahoo.com" "" MessageWindow "<LINK REL="stylesheet" type="text/css" " \ "href="http://www.e-valid.com/Parts/newevalid.css">" \ "<TABLE CELLSPACING=0 CELLPADDING=10 BGCOLOR=lightyellow " \ "WIDTH=220 BORDER=1><TR><TD VALIGN=TOP>" \ "<IMG SRC="http://www.e-valid.com/Images/eV_white_top_30x25.gif" " \ "ALIGN=LEFT WIDTH=30 HEIGHT=25>Navigating to " \ "the Login page and logging-in... <br><br>" \ "<font color=green><b> Name = evalidbrowser / Password " \ "= ****** </b></font> <br><br>Is entered below..." \ "</TD></TR></TABLE>" \ "" 0 1 2 269 392 Wait 6000 # Sign on with the evalidbrowser/eValid account name... InputValue 0 171 "TEXT" "login" "evalidbrowser" "" "" InputValue 0 175 "TEXT" "passwd" "eValid" "" "" SubmitClick 0 183 ".save" "Sign In" "" NAV MessageWindow "<LINK REL="stylesheet" type="text/css" " \ "href="http://www.e-valid.com/Parts/newevalid.css">" \ "<TABLE CELLSPACING=0 CELLPADDING=10 BGCOLOR=lightyellow " \ "WIDTH=220 BORDER=1><TR><TD VALIGN=TOP>" \ "<IMG SRC="http://www.e-valid.com/Images/eV_white_top_30x25.gif" " \ "ALIGN=LEFT WIDTH=30 HEIGHT=25>Waiting for the " \ "eMail page to finally load... <br><br>Remember, " \ "<font color=red>eValid</font> checks for " \ "<font color=green><b>all</b></font> form " \ "fields on a Webpage.</TD></TR></TABLE>" \ "" 0 1 2 269 392 Wait 3000 ValidateSelectedText 0 219 0 "Welcome, Software!" "" Wait 3000 ButtonClick 0 114 "" "Check Mail" "" NAV # ValidateSelectedText 0 268 2 "This folder has no messages." "" ValidateSelectedText 0 236 0 "View: All" "" Wait 3000 ButtonClick 0 117 "" "Compose" "" NAV Wait 1000 MessageWindow "<LINK REL="stylesheet" type="text/css" " \ "href="http://www.e-valid.com/Parts/newevalid.css">" \ "<TABLE CELLSPACING=0 CELLPADDING=10 BGCOLOR=lightyellow " \ "WIDTH=220 BORDER=1><TR><TD VALIGN=TOP>" \ "<IMG SRC="http://www.e-valid.com/Images/eV_white_top_30x25.gif" " \ "ALIGN=LEFT WIDTH=30 HEIGHT=25>We're now filling " \ "out the required fields and sending the eMail " \ "message.</TD></TR></TABLE>" \ "" 0 1 2 269 392 Wait 2000 # Compose and send an email to evalid@sr-corp.com... InputValue 0 206 "TEXT" "To" "evalidbrowser@yahoo.com" "" "" InputValue 0 238 "TEXT" "Subj" "Auto-Run Script Example" "" "" InputValue 0 260 "TEXTAREA" "Body" "Please register me for your next training seminar in San Francisco. Testing..." "" "" Wait 2000 # ButtonClick 0 138 "" " Send " "" NAV FollowLink 0 89 "Mail" "http://us.rd.yahoo.com/mail_us/pimnav/mail/*http://mail.yahoo.com" "" Wait 2000 # Sign out completely... FollowLink 0 111 "Sign Out" "http://us.f523.mail.yahoo.com/ym/Logout?YY=14900&YY=14900" "" Wait 2000 GotoLink 0 "http://www.e-valid.com/Products/Demos.5/playdemo.phtml" "" # MessageWindow "MESSAGE" [seconds [x y w h]] - display MESSAGE in a new browser window... MessageWindow "<LINK REL="stylesheet" type="text/css" " \ "href="http://www.e-valid.com/Parts/newevalid.css">" \ "<TABLE CELLSPACING=0 CELLPADDING=10 BGCOLOR=lightyellow " \ "WIDTH=220 BORDER=1><TR><TD VALIGN=TOP>" \ "<IMG SRC="http://www.e-valid.com/Images/eV_white_top_30x25.gif" " \ "ALIGN=LEFT WIDTH=30 HEIGHT=25><b>Playback</b> is now " \ "complete. <ul><li> Try another AUTOPLAY script if you " \ "like.<li> Or if you want to learn more about eValid's " \ "testing, QA, loading or WebSite Analysis Capacities, " \ "try the PowerPoint Tutorial scripts.</ul> " \ "</TD></TR></TABLE>" \ "" 0 1 2 269 392 Wait 3000 # End of Script. |
Additional Notes
The scripts eValid creates use one command per line.
In the script example shown some long lines have been folded for readability.
The line foldings used are respected by eValid.