# (c) Copyright 2000-2012 by Software Research, Inc. # Recording made on: Microsoft Windows XP # Updated 11/13/08 # NOTE: This script design to only playback successfully with IE 7.0... ProjectID "Motion" GroupID "Google" TestID "gmail2" LogID "AUTO" ScreenSize 1280 1024 FontSize 0 DeleteCache DeleteCookies DeleteSession # --------------------------------------------------------------------- # Step 1: Start at www.google.com, then navigate to gmail and log in... # Natural timings remain in script here. The password is encrypted. InitLink "http://www.google.com/" Wait 5016 IndexSet 0 IndexFindElement 0 DOWN "innerText" "Gmail" "" IndexFollowLink 0 "" Wait 2079 SyncOnText 0 "Username:" "" Wait 2516 IndexSet 0 IndexFindElement 0 DOWN "id" "Email" "" IndexInputValue 0 "TEXT" "evalidinc" "" "" Wait 2542 IndexFindElement 0 DOWN "id" "Passwd" "" IndexInputValue 0 "TEXT" "«p°㮉»" "" "" Wait 171 IndexFindElement 0 DOWN "name" "signIn" "" IndexSubmitClick 0 "" Wait 2213 SyncOnText 0 "Sign out" "number:3" Wait 2099 SyncOnText 0 "Add Contact" "number:3" Wait 1814 # --------------------------------------------------------------------- # Step 2: Find "Compose Mail" on the screen and click on it...and wait # a short time for the navigation to complete... # IndexSet 0 IndexFindElement 0 DOWN "id" ":r3" "number:3" IndexFollowLink 0 "number:3" Wait 1500 # --------------------------------------------------------------------- # Step 3: Compose the message by finding the correctly named fields # and typing data into them...Short waits between each step # assure that the JavaScript can "keep up". Note we are # sending the email to ourselves. # # Original recorded commands are shown commented out. IndexSet 0 IndexFindElement 0 DOWN "name" "to" "number:3" IndexInputValue 0 "TEXTAREA" "evalidinc@gmail.com" "" "number:3" Wait 1542 IndexSet 0 IndexFindElement 0 DOWN "name" "subject" "number:3" IndexInputValue 0 "TEXT" "Testing Gmail with eValid" "" "number:3" Wait 1560 IndexSetEnd 0 "number:3" IndexFindElement 0 UP "name" "body" "number:3" IndexInputValue 0 "TEXTAREA" "Hello folks," \ "\n\nHere is the test email that is used to demonstrate eValid operation on the " \ "\nGoogle Gmail system." \ "\n\nIn case the Google Gmail anti-spam processes send this email to the Trash rather" \ "\nthan to the InBox area, this playback will fail because there is no message to be deleted." \ "\n\nIn such case eValid will have correctly detected a failure to do a round trip " \ "\ncompose/send/receive/delete test." "" "number:3" # --------------------------------------------------------------------- # Step 4: Go ahead and send the email and get ready to wait for it... # IndexFindElement 0 DOWN "innerText" "Send" "number:3" IndexElementClick 0 "number:3" Delay 2000 # --------------------------------------------------------------------- # Step 5: Wait (synchronize) until "Your message has been # sent." appears on the screen... Wait 1719 SyncOnText 0 "View message" "number:3" Wait 1086 SyncOnText 0 "Your message has been sent." "number:3" Wait 1662 ValidateSelectedText 0 116 0 "Your message has been sent." "number:3" Wait 1534 # --------------------------------------------------------------------- # Step 6: We know it has been sent, now wait until it is received # (by ourselves)... SyncOnText 0 "Testing Gmail with eValid" "number:3" IndexSet 0 IndexFindElement 0 DOWN "innerText" "me" "number:3" IndexMove -3 IndexInputValue 0 "CHECKBOX" "on" "TRUE" "number:3" Wait 2200 # --------------------------------------------------------------------- # Step 7: It's there because we found the incoming message to "me", # so we can go ahead and delete it. IndexSet 0 IndexFindElement 0 DOWN "innerText" "Delete" "number:3" IndexElementClick 0 "number:3" Wait 1818 # --------------------------------------------------------------------- # Step 8: Finally, wait to confirm that the message has been deleted, # confirm that it's gone by the "Undo" appearing visibly on # the screen, and validate that the deletion is complete... SyncOnText 0 "Undo" "number:3" Wait 1806 ValidateSelectedText 0 116 0 "The conversation has been moved to the Tra" \ "sh." "number:3" Wait 2556 # --------------------------------------------------------------------- # Step 9: Sign out and wait (synchronize) until you're ready to sign # in again... IndexSet 0 IndexFindElement 0 DOWN "id" ":pt" "number:3" IndexFollowLink 0 "number:3" Wait 1872 SyncOnText 0 "Sign in to Gmail with your" "" # Note: Playback involves adaptive playback, so there will be Messages in the # event log and you probably will see a "Yellow screen", unless the GMAIL # application itself generated a server side internal navigation error to # document... # Script ends.