Forum Discussion
Hi pankhuri -
I would suggest running the revert script as the last test case in your workflow. I don't believe this has to be handled as part of an event handler.
- pankhuri4 years agoOccasional Contributor
Hi ebarbera,
Thank you for replying.
I was doing same thing earlier what you suggested. But that piece of code or line will only get executed when test is passed successfully.
If in between (before that revert code), the test fails, the system will be not in proper state as the changes i did while test execution, it would still be there. Because of this reason, i was trying to use OnStopTestCase event handler, so that i could revert the changes irrespective of test passed or failed.
Let me know if there is any alternative way to do this. I have used Selenium before and in that we have option to do teardown. I was hoping similar kind of thing would be present in TestComplete.
Thanks,
Pankhuri
Related Content
- 3 years ago
- 5 years ago
Recent Discussions
- 2 days ago