chris-
8 years agoNew Contributor
Threaded test execution
Hi, I'm testing an application where exceptions are caught, then handled in a separate application with a more user-friendly bubble pop-up. We have code that will detect the presence of a the ex...
- 8 years ago
If you want to have a function/routine running on an interval checking for the pop-up every few seconds, you could use a Timer object. Check out https://support.smartbear.com/testcomplete/docs/scripting/timers.html for info.
Note, however, that according to that document, if this pop-up is seen as an "unexpected window", the timer will not execute it's routine.
So, that is actually another way of doing things. There is an event handler for "OnUnexpectedWindow" as well as "OnOverlappingWindow". you could treat that pop-up as one of these. So, check out https://support.smartbear.com/testcomplete/docs/testing-with/running/handling-errors/unexpected-windows.html