Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20990

How to write event for unexpected window

$
0
0

HI,

I am getting unepxcted network error...some times, do i wrote a unexpected window event handler as below, but its not working all the time, any improvement in the code?


Sub AssetsOnlineServerError_OnUnexpectedWindow(Sender, Window, LogParams)


aqutils.Delay(2000)
Log.Warning("Application is Going to terminate as Asset Online Server Occured")
Sys.Process("Client*").Terminate
Log.Warning("Application Terminated")
aqutils.Delay(1000)
Call ReturnToBaseState
Log.Warning("Application returned to Base State and ready for Next test case to execute")


End Sub


Viewing all articles
Browse latest Browse all 20990

Trending Articles