Active TopicsActive Topics  Display List of Forum MembersMemberlist  CalendarCalendar  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin


 One Stop Testing ForumTesting Tools @ OneStopTestingWinRunner @ OneStopTesting

Message Icon Topic: WR: Capture IE hang state

Post Reply Post New Topic
Author Message
sonali
Newbie
Newbie
Avatar

Joined: 24Apr2007
Online Status: Offline
Posts: 39
Quote sonali Replybullet 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 IP Logged
himadri
Newbie
Newbie
Avatar

Joined: 25Apr2007
Online Status: Offline
Posts: 1
Quote himadri Replybullet 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 IP Logged
Post Reply Post New Topic
Printable version Printable version

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



This page was generated in 0.188 seconds.
Vyom is an ISO 9001:2000 Certified Organization

© Vyom Technosoft Pvt. Ltd. All Rights Reserved.

Privacy Policy | Terms and Conditions
Job Interview Questions | Placement Papers | Free SMS | Freshers Jobs | MBA Forum | Learn SAP | Web Hosting