Forum Discussion
Hi Pankhuri,
Described behavior corresponds to the description from the documentation: https://support.smartbear.com/testcomplete/docs/reference/events/onstoptestcase.html#description
- pankhuri4 years agoOccasional Contributor
Thank you Alex for replying.
So, for testing this event handler, do I always have to run my test from TestItems section?
For OnStopTest handler, we have a similar description but I am able to execute the code for this handler even if I run the test from Keyword/Script section.
Not sure if I am making sense, I am just wondering why it works for OnStopTest and not for OnStopTestCase.
Thanks,
Pankhuri
- AlexKaras4 years agoChampion Level 3
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.
- pankhuri4 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
Related Content
- 12 months ago
Recent Discussions
- 2 days ago