socc3rpr0
11 years agoOccasional Contributor
Event Handler(s)
Hello,
I am trying to figure out if there is ONE event handler that covers all the bases such as window not recognize, unable to find object, or manually posting an error to the log (for me it stops execution), or an actual engine error occur, etc..
The problem I have is that in my main function the first thing I do is open a TCP connection to the device under test and then run through all my test scripts, but when they fail I want to be able to close the connection and then post the error. So next time I can start the main function again and reopen the TCP connection and so forth. For example
function main()
{
EstablishConnection();
}
I am trying to figure out if there is ONE event handler that covers all the bases such as window not recognize, unable to find object, or manually posting an error to the log (for me it stops execution), or an actual engine error occur, etc..
The problem I have is that in my main function the first thing I do is open a TCP connection to the device under test and then run through all my test scripts, but when they fail I want to be able to close the connection and then post the error. So next time I can start the main function again and reopen the TCP connection and so forth. For example
function main()
{
EstablishConnection();
}