When testing an app, is there any way for WinRunner to regain control of the app?
I am executing a test script which causes an application message to pop up thus causing the application to remain busy until the the OK button on the message window is clicked. The problem is that this cause WinRunner to freeze on the line of code that generated the apps message and not continue on.
If the question is only to get rid of the error dialog, it can be handled through Exception Handling. You can create an exception whose type is "Pop-Up". And you can specify "Press Enter" or "Press Ok" in the "Handle Function Action".
By doing this whenever in the application, if such dialog appears it presses "Enter" of "Ok" button automatically based on the earlier selection and test continues. However this is reflected in the Test Results, so you can identify that the dialog was appeared.