|
Example Description
This example illustrates how eValid can test the Google Docs
application as it processes a regular document.
The eValid script for this example is given below the screenshots,
which explain the script step by step.
The script was "recorded from life" except where noted.
Example Script
# eValid V9 Copyright (c) 2009 by Software Research, Inc. # Recording made on: Microsoft Windows Vista Service Pack 1 # ProjectID "Project" GroupID "GOOGLE" TestID "ss4" LogID "AUTO" ScreenSize 1440 900 FontSize 0 DeleteCache DeleteCookies ## ## This script logs in and creates a new document, then logs out. ## InitLink "http://docs.google.com" Wait 6723 # Screenshot #1... InputValue 0 100 "TEXT" "Email" "Email" "evalid" "" "" Wait 5561 InputValue 0 108 "TEXT" "Passwd" "Passwd" "«”󥔤éŒá¶…»" "" "" Wait 109 # Screenshot #2... SubmitClick 0 121 "" "signIn" "Sign in" "" NAV IndexSet 0 IndexFindElement 0 DOWN "innerText" "Create new" "" IndexMove +3 IndexElementMouseDown 0 "" IndexElementClick 0 "" # Screenshot #3... Wait 4000 IndexSet 0 IndexFindElement 0 DOWN "innerText" "Document" "" IndexMove +4 IndexElementMouseDown 0 "" IndexElementMouseUp 0 "" # Screenshot #4... ##SubFrameSet 1 "http://docs.google.com/DocAction?action=newdoc&hl=en" Wait 2712 #InputValue 1 "wys_frame" "TEXT" "" "hello" "number:0" # Screenshot #5... KeyText 1 "hello" EnterKey 1 11 "wys_frame" "number:0" Wait 5773 # Screenshot #6... WindowClose 1 Wait 8861 # Screenshot #7... FollowLink 0 59 "Sign out" "http://docs.google.com/logout?hl=en_US" "" # Screenshot #8... # End of script.