WinRunner Question:
Download Questions PDF

How to break infinite loop

WinRunner Interview Question
WinRunner Interview Question

Answer:

set_window("Browser Main Window",1);
text="";
start = get_time();
while(text!="Done")
{
statusbar_get_text("Status Bar",0,text);
now = get_time();
if ( (now-start) == 60 )
# Specify no of seconds after which you want
break
{
break;
}
}

Download WinRunner Interview Questions And Answers PDF

Previous QuestionNext Question
Text Field ValidationsUser-defined function that would write to the Print-log as well as write to a file