Print Page | Close Window

WR: Capture IE hang state

Printed From: One Stop Testing
Category: Testing Tools @ OneStopTesting
Forum Name: WinRunner @ OneStopTesting
Forum Discription: WinRunner is an automated functional GUI testing tool that allows a user to record and play back UI interactions as test scripts using a proprietary Test Script Language (TSL).
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=909
Printed Date: 18Aug2025 at 5:52pm


Topic: WR: Capture IE hang state
Posted By: sonali
Subject: WR: Capture IE hang state
Date 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.



Replies:
Posted By: himadri
Date 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");
}    




















 
 



Print Page | Close Window