When i encounter my test application has stopped working, even i set the freeze diagnostics to terminate test application, after the timeout setting in the freeze diagnostics,the process filter mode was tried on All process or only tested apps but the foreground window still remains, only the background tested apps was terminated, is there a way to terminate also the foreground window as the one in image 2?
You can create a script handler for the OnLogError message and check whether the problematic window exists in the handler. If the window exists, close it.
You can find information on this event in the http://www.automatedqa.com/support/viewarticle.aspx?aid=3796 help topic. You can use the http://www.automatedqa.com/support/viewarticle.aspx?aid=7283 to check whether an object exists.