Forum Discussion

alanclk's avatar
15 years ago

How TestComplete detects dialog or message box?

Hi,



I'm trying to develop a script to perform functional test, during the transaction or parameter input, it may has dialog box prompted, how TestComplete could detect these dialog boxes?


As there are many dialog box prompted in the function, I would like to centralize its handling in a separate procedure. For example, in main script, it has some kind of "listener" to detect if there is any dialog box prompted, if yes, it'll pass the object of dialog box to another script and then determine what kind of dialog box is (error? warning? or success? etc.) Could it done by TestComplete?


Thanks.

3 Replies

  • Hi,



    I have a similar situation to Alan - while our tested application is being developed, SOME functional areas will produce an error message or something similar. In this situation I just want to close the error, and proceed with the next bit of the script.



    I have tried adding a handler for OverlappingWindow, and UnexpectedWindow - neither handler is triggered.



    Please note: our script has been almost entirely "manually" written - ie, not recorded. As such, I'm not overly surprised OnUnexpectedWindow doesn't fire - however, I would have expected OnOverlappingWindow to fire - but it doesn't.



    Advice please?
  • What kind of application you are testing? If this is the web application then dialog boxes may be not real windows, that is why TestComplete does not recognize them. Try to catch the dialog using Finder and see what kind of object it is in Object Browser.