RomanParamonov
3 years agoRegular Visitor
Event listener in TC script for the events fired from the TestedApp code
Hi!
Is it possible to create an event listener in Test Complete scripts for the events that are fired from the app we are testing?
The use case is - we have a warning window appearing when users perform different action and we want to handle the moment when that window appears. So, how can we handle any actions in TC when the event is fired in the tested app for this window? I tried using OnUnexpectedWindow for this, but TC doesn't seem to consider this window as unexpected for some reason.
Thanks in advance!
You can create your own event handler
https://support.smartbear.com/testcomplete/docs/testing-with/advanced/handling-events/about.html