Forum Discussion
3 Replies
- AlexKarasChampion Level 3
Hi Nimish,
At least three options can be suggested. Their applicability to your case depends on your tests architecture.
a) Try/Catch functionality of the given scripting language (if supported);
b) OnLogError/OnTestStop event in TestComplete;
c) If your tests are executed from command line (e.g. when triggered from some CI system like Jenkins), you may use TestComplete exit code and trigger this or that action/program/batch file.
- nimishbhutaFrequent Contributor
Thanks for your reply.
It seems that the 2nd option especially the OnStopTest event will be applicable based on my test architecture.
I have gone through the onStopTest event documentation but did not find any good example to implement it.
Can you let me know, how can I implement it ? I am using Vbscript as my scriping language.
Regards,
Nimish
- AlexKarasChampion Level 3
Hi Nimish,
I believe that this help topic will help: https://support.smartbear.com/testcomplete/docs/testing-with/advanced/handling-events/creating-handlers/for-testcomplete-events.html
Does it?
Related Content
Recent Discussions
- 21 hours agoGane195