Can I recover from an unexpected window popup from .NET program?
I am using QTP 6.5 and I cannot seem to get the recovery manager to do this.
I am testing an application written in .NET winforms and our QTP has .NET add-in. Whenever there is a crash, a window with the title "Microsoft .NET Framework" pops up with call stack details. I want to capture this text, close this popup and possibly move on, thereby recovering from this crash. The problem is that I cannot get recovery manager to detect this popup window. The script just tries to find the next object (which is now disabled because of the .NET popup window) and complains about it via QTP error message dialog.
Another related question is, is there also a way to recover from the QTP-generated error message dialg that result from a failed step?
Thank you so much for your help!
Re: Can I recover from an unexpected window popup from .NET program?
I figured it out.. I needed to add the popup window to the object repository so that it could be recognized and thus have the recovery manager triggered on it.
From there I did something like
SwfWindow("MasterController").SwfWindow("Microsoft .NET").SwfEditor("SwfEditor").GetROProperty("text" ) to retrieve the text of the call stack and reported to the Reporter object.