Forum Discussion
Here's the documentation for OnStopTestCase
https://support.smartbear.com/testcomplete/docs/reference/events/onstoptestcase.html
If it doesn't fit where you would like it to, at the bottom of the article, you'll see a link to Handling Events
https://support.smartbear.com/testcomplete/docs/testing-with/advanced/handling-events/index.html
You can use that to create your own event handlers.
- dhundley3 years agoRegular Contributor
i have been looking at both those articles for quite a while now and still not "getting" it. When i used testcomplete a couple of years ago (i could be wrong but) i don't remember there being an execution plan in the project with all those checkboxes. were "test cases" identified somehow differently in the past? in the article found at
it doesn't even show the two handlers for test cases only for tests. is that article outdated because my testcomplete lists both of them under Test Engine Events.
The first linked article you posted says this about OnStopTestCase:
Description
Occurs when TestComplete stops running a test case:
- When the execution of any project test item marked as a test case is stopped (regardless of whether you run individual test items or the entire project).
Well, i have marked SignInOut as a test case in my execution plan. all the test items are children of it. i would think that when the last child completes the parent testcase is complete (stops running).
as for the second link in your reply aren't you still restricted to use only the event handlers that appear in the "available events" list?
Examples would really be helpful here. thanks!
- dhundley3 years agoRegular Contributor
Marsha,
When you say "You can use that to create your own event handlers."
are you suggesting that i can somehow create a javascript event handler that can be "added" to the list of existing event handlers (such as onstoptest, onstarttest, etc.) that appear under Events -> GeneralEvents and in the Available Events list of either General or Test Engine Events (as shown in the screen shot i attached named Generate Events.png)? if not, please elaborate on what you mean by creating my own event handlers and how that would work.
thanks!
Related Content
- 5 years ago
Recent Discussions
- 22 hours ago
- 23 hours ago
- 5 days ago