# # Recording by eValid™ V9 Build #302, Build Date: (Jul 6 2010) # Copyright © 2010 by Software Research, Inc. # Recording made on: Microsoft Windows Vista Service Pack 1 (IE 7.0.6001.18000), HostName "aruba" # Recording started at: <2010/10/21 15:06:10> # ProjectID "Project" GroupID "work" TestID "getsession" LogID "AUTO" ScreenSize 1440 900 FontSize 2 DeleteCache DeleteCookies # Go to an Example URL1... # InitLink "http://www.w3schools.com/ASP/asp_examples.asp" Wait 5071 # Click on the link to return a user's Session ID number... # ##FollowLink 0 329 "Return session id number for a user" "http://www.w3schools.com/ASP/showasp.asp?filename=demo_sessionid" "" ##(Alternative "FollowLink...") - Equivalent INDEX MOTION sequences applied due to dynamic index element... IndexSet 0 IndexFindElement 0 DOWN "innerText" "Return session id number for a user" "" IndexFollowLink 0 "" SubFrameSet 1 "Tryit v1.4 - Show ASP" # Wait (Sync) on results... # Wait 1835 SyncOnText 1 " Output Result:" "" # NOW, find the Session ID output results... # IndexSet 0 IndexFindElement 1 DOWN "className" "result_output" "" Wait 1000 IndexFindElement 1 DOWN "tagName" "BODY" "number:2" ValueGetElement 1 "innerText" "number:2" # Save the Session ID value to a file and process Create.bat for a ($NAME=$VALUE) parameterized assignment... # ValueSave "idnumber.txt" Wait 2000 SaveMessage "name.txt" "$idVALUE=" SystemCallWait "create.bat" # Close the child window 1... # WindowClose 1 # Subsequently, Call another script to read and apply the Session ID saved... # CallScript "putsession.evs" # Recording stopped at: <2010/10/21 15:06:41>