|
Summary
This page presents eValid's initial demonstration
of functional/regression testing for the SkyDrive PowerPoint application.
The scripting was done by recording "from life" followed by manual
script adjustment by use of eValid structural (index/motion) commands.
The scripts below are organized as follows:
Scripts
Here is the complete set of scripts used in this example.
# # Recording by eValid™ V9 Build #292, Build Date: (Oct 20 2009) # Copyright © 2009 by Software Research, Inc. # Recording made on: Microsoft Windows Vista Service Pack 1 (IE 7.0.6001.18000), HostName "aruba" # Recording started at: <2009/12/07 13:40:31> # ProjectID "Project" GroupID "microsoft" TestID "goALL" LogID "AUTO" CallScript "login.evs" CallScript "newppt.evs" CallScript "signout.evs" |
# # Recording by eValid™ V9 Build #292, Build Date: (Oct 20 2009) # Copyright © 2009 by Software Research, Inc. # Recording made on: Microsoft Windows Vista Service Pack 1 (IE 7.0.6001.18000), HostName "aruba" # Recording started at: <2009/12/09 12:15:56> # ProjectID "Project" GroupID "microsoft" TestID "login" LogID "AUTO" ScreenSize 1440 900 FontSize 2 DeleteCache DeleteCookies InitLink "http://login.live.com/login.srf?" SyncOnText 0 "Sign in" "" # # Modified to INDEX MOTION to avoid different login id session assignments... # #Wait 1576 #FollowLink 0 137 "Sign in" "http://login.live.com/login.srf?wa=wsignin1.0&rpsnv=11&ct=1260402405&rve" \ # "r=5.5.4177.0&wp=MBI&wreply=http:%2F%2Fskydrive.live.com%2Fwelcome.aspx&l" \ # "c=1033&id=250206&mkt=en-US" "" # # Added Sync to await login screen... # SyncOnText 0 "E-mail address:" "" # # Input login details and submit... # InputValue 0 92 "TEXT" "i0116" "login" "evalid2009@live.com" "" "" ElementBlur 0 92 "i0116" "" "" Wait 1884 InputValue 0 107 "TEXT" "i0118" "passwd" "evalid+test" "" "" Wait 2018 InputValue 0 97 "RADIO" "i0138" "LoginOptions" "3" "TRUE" "" Wait 2304 SubmitClick 0 80 "i0011" "SI" " Sign in " "" NAV Wait 2493 FollowLink 0 58 "More ?" "https://account.live.com/#" "" NO_NAV Wait 2761 FollowLink 0 68 "SkyDrive" "http://g.live.com/9uxp9en-us/hdr_more2??su=http://shared.live.com/Live.A" \ "ccountManagement" "" # Recording stopped at: <2009/12/09 12:16:38> |
# # Recording by eValid™ V9 Build #292, Build Date: (Oct 20 2009) # Copyright © 2009 by Software Research, Inc. # Recording made on: Microsoft Windows Vista Service Pack 1 (IE 7.0.6001.18000), HostName "aruba" # Recording started at: <2009/12/09 12:33:33> # ProjectID "Project" GroupID "microsoft" TestID "newppt" LogID "AUTO" # # Click on Public folder... # FollowLink 0 244 "Public" "http://cid-636721b33b1d7b0a.skydrive.live.com" \ "/browse.aspx/.Public" "" Wait 1878 # # Click on New drop-down list... # FollowLink 0 152 "New ?" "http://cid-636721b33b1d7b0a.skydrive.live.com/" \ "browse.aspx/.Public#" "" NO_NAV Wait 1172 # # Click on Web App Selection... # FollowLink 0 159 "Microsoft PowerPoint presentation" "http://cid-636721b33b1d7b0a.skydrive.live.com/newdocument.aspx/.Public?x" \ "t=pptx&ref=1" "" Wait 1486 # # Accept the default file name and Click Create... # SyncOnText 0 "New Microsoft PowerPoint presentation" "" SubmitClick 0 166 "actionPageSubmit" "Create" "Create" "" NAV # # Sync to wait for Microsoft PowerPoint Web App to fully appear (load)... # SyncOnText 0 "Loading" "number:0" SyncNotOnElementProperty 0 "innerText" "Loading..." "number:0" # # Click to add title... # IndexSet 0 IndexFindElement 0 DOWN "id" "svdiv" "number:0" Wait 1000 IndexFindElementEx 0 DOWN "name:id" "value:1" "name:tagName" "value:DIV" "name:innerHTML" "value:<IMG " "number:0" Wait 1000 IndexElementClick 0 "number:0" Wait 1000 # #KeyText 0 "HELLO WORLD!" => REPLACED by INDEX MOTION sequences... # IndexSet 0 IndexFindElement 0 DOWN "tagName" "HTML" "number:0>>number:0" Delay 100 IndexFindElement 0 DOWN "tagName" "BODY" "number:0>>number:0" ValueSet "HELLO WORLD!" Delay 100 ValuePutElement 0 "innerText" "number:0>>number:0" Delay 100 ValuePutElement 0 "innerHTML" "number:0>>number:0" # # Remove focus by clicking outside area... # IndexSet 0 IndexFindElement 0 DOWN "id" "SlideBorder" "number:0" IndexElementClick 0 "number:0" Wait 1000 # # Click to add subtitle... # IndexSet 0 IndexFindElement 0 DOWN "id" "svdiv" "number:0" Wait 1000 IndexFindElementEx 0 DOWN "name:id" "value:1" "name:tagName" "value:DIV" "name:innerHTML" "value:<IMG " "number:0" Wait 1000 IndexElementClick 0 "number:0" Wait 1000 IndexFindElement 0 DOWN "id" "svdivAutoCleanup" "number:0" Delay 100 IndexFindElement 0 DOWN "id" "editTextDialog" "number:0" Wait 1000 IndexFindElementEx 0 DOWN "name:id" "value:2" "name:tagName" "value:DIV" "value:<IMG " "number:0" # #KeyText 0 "eValid Testing" => REPLACED by INDEX MOTION sequences... # IndexSet 0 IndexFindElement 0 DOWN "tagName" "HTML" "number:0>>number:0" Delay 100 IndexFindElement 0 DOWN "tagName" "BODY" "number:0>>number:0" ValueSet "eValid Testing" Delay 100 ValuePutElement 0 "innerText" "number:0>>number:0" Delay 100 ValuePutElement 0 "innerHTML" "number:0>>number:0" # # Remove focus by clicking outside area... # IndexSet 0 IndexFindElement 0 DOWN "id" "FishBowlPanel" "number:0" IndexMove +10 IndexElementClick 0 "number:0" Wait 1000 # # Click to add notes... # IndexFindElement 0 DOWN "id" "EditingNotesPanel" "number:0" IndexElementClick 0 "number:0" Wait 1000 IndexFindElementEx 0 DOWN "name:id" "value:editTextDialog_ta" "name:tagName" "value:TEXTAREA" "number:0" # #KeyText 0 "Testing Test - Hello ...." => REPLACED by INDEX MOTION sequences... # IndexSet 0 IndexFindElement 0 DOWN "tagName" "BODY" "number:0>>number:0" ValueSet "Testing Test - Hello ..." Delay 100 ValuePutElement 0 "innerText" "number:0>>number:0" Delay 100 ValuePutElement 0 "innerHTML" "number:0>>number:0" Wait 10000 #Breakpoint # Recording stopped at: <2009/12/09 12:34:24> |
# # Recording by eValid™ V9 Build #292, Build Date: (Oct 20 2009) # Copyright © 2009 by Software Research, Inc. # Recording made on: Microsoft Windows Vista Service Pack 1 (IE 7.0.6001.18000), HostName "aruba" # Recording started at: <2009/12/09 15:45:22> # ProjectID "Project" GroupID "microsoft" TestID "signout" LogID "AUTO" # Simple recorded "Sign out" actions... # Wait 2617 FollowLink 0 62 "sign out" "http://login.live.com/logout.srf?ct=1260402302&rver=5.5.4177.0&lc=1033&i" \ "d=250206&ru=http:%2F%2Fcid-636721b33b1d7b0a.skydrive.live.com%2Fedit.asp" \ "x%2F.Public%2FPresentation11.pptx%3Fnd%3D1&mkt=en-US" "" Wait 2651 ElementBlur 0 92 "i0116" "" "" # # Can use the following to verify/validate signing out... # #Wait 3058 #ValidateSelectedText 0 72 0 "Sign in" "" #Wait 4852 SyncOnText 0 "Sign in" "" # Recording stopped at: <2009/12/09 15:45:47> |
# # Recording by eValid™ V9 Build #292, Build Date: (Oct 20 2009) # Copyright © 2009 by Software Research, Inc. # Recording made on: Microsoft Windows Vista Service Pack 1 (IE 7.0.6001.18000), HostName "aruba" # Recording started at: <2009/12/10 13:31:56> # ProjectID "Project" GroupID "microsoft" TestID "delete" LogID "AUTO" ScreenSize 1440 900 FontSize 2 DeleteCache DeleteCookies # # Call login.evs script file actions, to get Signed in... # CallScript "login.evs" Wait 1000 # # Go to the "Public" folder... # FollowLink 0 245 "Public" "http://cid-636721b33b1d7b0a.skydrive.live.com" \ "/browse.aspx/.Public" "" Wait 4276 #FollowLink 0 309 "Presentation1" "http://cid-636721b33b1d7b0a.skydrive.l" \ # "ive.com/self.aspx/.Public/Presentation1.pptx" "" # # Replaced the above with INDEX MOTION sequences, need to be flexible with # Presentation# file(s)... # IndexSet 0 IndexFindElementEx 0 DOWN "name:title" "value:stuff" "name:tagName" "value:IMG" "" IndexMove +1 IndexFindElement 0 DOWN "tagName" "A" "" IndexMove +1 IndexFindElement 0 DOWN "tagName" "A" "" IndexFollowLink 0 "" # # Added Synchronization to await opening of the options panel before trying # to Delete... # Wait 2317 SyncOnElementProperty 0 "id" "c_PageTitle" "" ElementFocus 0 352 "" "" "" Wait 1350 # # Added a "NO_NAV" to this out-of-box recorded script command so that eValid # will not await javascript navigation complete signals, that may or may not # arrive... # FollowLink 0 160 "Delete" "javascript:void(0)" "" NO_NAV # # Relying on default Settings to automatically CLOSE out modal confirmation # delete pop-up window, otherwise the following script command alternatives # modal actions necessary... # #ModalDialogWait 1000 #ModalDialogEnter 0 Wait 4856 FollowLink 0 130 "sign out" "http://login.live.com/logout.srf?ct=1260480729&rver=5.5.4177.0&lc=1033&i" \ "d=250206&ru=http:%2F%2Fcid-636721b33b1d7b0a.skydrive.live.com%2Fbrowse.a" \ "spx%2F.Public&mkt=en-US" "" # Recording stopped at: <2009/12/10 13:32:45> |
Screen Shots
Here are screen shots that show the progress of the playback of
the goALL.evs script and the scripts it calls.
All of the images show up in a separate window.
Additional Notes