Active Topics Memberlist Calendar Search Help | |
Register Login |
One Stop Testing Forum : Testing Tools @ OneStopTesting : WinRunner @ OneStopTesting |
Topic: WR: Capture IE hang state |
|
Author | Message |
sonali
Newbie Joined: 24Apr2007 Online Status: Offline Posts: 39 |
Topic: WR: Capture IE hang state Posted: 24Apr2007 at 11:21pm |
Hello All,
I want to capture IE hang state through WR. The reason I need this is IE crashes in the middle of WR batch run. I havent found any replies for that here or could fetch any reasons myself. The reason I need this capture is I want to write a WR routine that would capture IE hang state and then kill the process and reopen browser to continue batch execution. By IE hang state I mean browser is inoperable and no action could be performed and in this state WR cannot identify any objects on IE, as first IE needs to be forcibly shutdown. Post Resume: Click here to Upload your Resume & Apply for Jobs |
|
IP Logged | |
himadri
Newbie Joined: 25Apr2007 Online Status: Offline Posts: 1 |
Posted: 25Apr2007 at 3:25am |
I got to rephrase my query as issue is losing its track. My issue is IE crashes in the
middle of a batch run. I couldnt figure out the reason. Now till i figure out the problem I want to continue with batch execution without halt. My thought to do this is to make WR capture IE hang state, kill browser and open a new one and continue with the next script. My question is can I make WR capture IE hang state. [bpolitzer]-Each test starts out by closing / killing all browsers then launching a new one. This I didnt want to do and might help me with batch execution but in real time for most apps the user doesnt login and logout for each transaction. I do close all the browsers before WR is initiated so my start and end conditions seem to be stable. Thanks again for the discussion and looking forward to replies. Code: function file_exists(in file) { auto rc = file_open(file,FO_MODE_READ); if(rc == E_OK) file_close(file); return rc; } static Files[] = {"File1.txt", "File2.log","setup.exe"}; New_Location = "C:\\NewLocation\\"; for(iterator in Files) { if(file_exists(New_Location & Files[iterator]) == E_OK) tl_step("Test \"" & Files[iterator] & "\" moved",PASS,"File Exists in new location"); else tl_step("Test \"" & Files[iterator] & "\" moved",FAIL,"File doesn't Exists in new location"); } |
|
IP Logged | |
Forum Jump |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
© Vyom Technosoft Pvt. Ltd. All Rights Reserved.