09-17-2011, 03:03 AM
Hi All,
How to make script run at normal speed when "If condition" is inserted in script?
I mean, I have script like:
Now at starting of "IF Condition" it takes 5 seconds or sometimes 10 seconds to check whether window exists.
I dont want QTP to wait for 10 seconds. How to avoid it?
Above I posted sample code but in real time I work on other applications and it has several If loop and my script waits for more time.
How to overcome this wait time and make qtp to execute script at normal time?
Pls help
How to make script run at normal speed when "If condition" is inserted in script?
I mean, I have script like:
Code:
If Window("Flight Reservation").Exist then
Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"
DataTable.Value("Act_Res")="Pass"
Reporter.ReportEvent 0,"Login Details","Valid Values"
else
Dialog("Login").Activate
Dialog("Login").WinButton("Cancel").Click
DataTable.Value("Act_Res")="Fail"
Reporter.ReportEvent 1,"Login Details","Invalid Values"
End If
Now at starting of "IF Condition" it takes 5 seconds or sometimes 10 seconds to check whether window exists.
I dont want QTP to wait for 10 seconds. How to avoid it?
Above I posted sample code but in real time I work on other applications and it has several If loop and my script waits for more time.
How to overcome this wait time and make qtp to execute script at normal time?
Pls help