|
Summary
This page outlines the procedure in eValid to make a recording that
reliably plays back a file upload.
Explanation
For example, from Yahoo Mail we can attach a file/image into an @yahoo.com email account.
# # Recording by eValid(TM) # Copyright © 2010 by Software Research, Inc. # Recording made on: Microsoft Windows 2000 # ProjectID "Temp" GroupID "mgrtest" TestID "upload" LogID "AUTO" ScreenSize 1280 1024 FontSize 3 DeleteCache DeleteCookies # Make sure that Modals not suppressed... PlayValue _PS 1 InitLink "http://www.yahoo.com/" Wait 3069 ######Step 1: GotoLink 0 "http://mail.yahoo.com/" "" Wait 5089 InputValue 0 74 "TEXT" "username" "login" "evalidbrowser" "" "" Wait 5319 InputValue 0 79 "TEXT" "passwd" "passwd" "«¤éŒá–…»" "" "" Wait 5672 SubmitClick 0 84 "" ".save" "Sign In" "" NAV Wait 7806 ######Step 2: IndexSet 0 IndexFindElement 0 DOWN "id" "addAfolder" "" IndexMove +5 IndexElementClick 0 "" Wait 8932 ######Step 3: Wait 2512 SubmitClick 0 195 "global_compose_top" "" "New" "" NO_NAV Wait 1419 FollowLink 0 473 "Email Message" "http://us.mc353.mail.yahoo.com/mc/welcome?.gx=0&.tm=1254341182&.rand=8t0" \ "i3s5i7cf7e#" "" Wait 7722 ######Step 4: ElementClick 0 214 "toid" "tofield" "" "" "" Wait 6890 InputValue 0 214 "TEXTAREA" "toid" "to" "evalidbrowser@yahoo.com" "" "" Wait 1402 InputValue 0 229 "TEXT" "Subj" "Subj" "test" "" "" Wait 3024 InputValue 0 250 "TEXTAREA" "compose_editorArea" "Content" "hello....." "" "" EnterKey 0 250 "bodyfield" "" Wait 2994 ButtonClick 0 240 "attachFiles" "action_compose_attach" "" "" NAV ######Step 5: # NOTE: Please create this dummy file... Wait 6646 WindowPos 0 15 13 1140 572 clLClick 0 321 228 0 ModalDialogWait 4407 ModalDialogText "C:\\Temp\\message.txt" ModalDialogWait 3733 ModalDialogTab 0 0 ModalDialogWait 2293 ModalDialogTab 0 0 ModalDialogWait 5267 ModalDialogEnter 0 Wait 4220 ######Step 6: ButtonClick 0 155 "attach_button_top" "action_upload_attachment" "" "" NAV Wait 6906 ######Step 7: ##ButtonClick 0 155 "" "Continue to Message" "" "" NAV ##Wait 6980 ######Step 8: ButtonClick 0 154 "send_top" "Send" "" "" NAV Wait 4707 ElementMouseOut 0 84 "" "" "Mail" "" ElementMouseOver 0 83 "" "" "Mail | " "" ElementMouseOut 0 83 "" "" "Mail | " "" Wait 1482 ######Step 9: ButtonClick 0 117 "global_check_mail_top" "Check Mail" "" "" NAV Wait 5718 ElementMouseOver 0 83 "" "" "Mail" "" ElementMouseOut 0 83 "" "" "Mail" "" ElementMouseOver 0 82 "" "" "Mail | " "" ElementMouseOut 0 82 "" "" "Mail | " "" Wait 1222 ButtonClick 0 116 "global_check_mail_top" "Check Mail" "" "" NAV Wait 5067 IndexSet 0 IndexFindElement 0 DOWN "innerText" "Sign Out" "" IndexElementMouseDown 0 "" IndexMove +1 IndexSubmitClick 0 "" # End of script. |