Solved
Forum Discussion
AlexKaras
5 years agoCommunity Hero
Hi,
> why it works for OnStopTest and not for OnStopTestCase.
Because not every test is test case.
Test is, actually, any code that has been executed either as a Test Item or just as a function.
Test case is the code that either is marked as test case in the Execution Plan tree or is surrounded by the aqTestCase.Start/Stop calls.
Read documentation for OnStopTest and OnStopTestCase for details to understand the difference between them.
pankhuri
5 years agoOccasional Contributor
Hey Alex,
Thank you for clarifying. Though I have one more question- is OnStopTest handler getting deprecated sometime soon? I just want to be more careful before using OnStopTest handler.
Thanks,
Pankhuri
- brumazz5 years ago
Alumni
The Event Handler should not be going anywhere in future releases of TestComplete.