Executing a function when user stops a QTP Script
Whenever a user manually stops QTP Script Execution I want to execute a function. How do I do this.?
I need this because, I do some XML Logging as Script gets executed. When the script executes till the last step, the XML File gets generated. But if script fails to execute till the end, then I dont get that XML file.
When some fatal exception occurs, We dont want to discard them and continue the script. At the point, a user will click on the stop button.
Re: Executing a function when user stops a QTP Script
You don't need user intervention, what you need is some decent error handling.