There are few scenarios which i can expect during my execution, I would like to understand the best practices of handles such run time errors.
One more question, is it worth to load all the recovery scenarios during the load of the functions or handle the exception with in the functions itself.
Kindly suggest the best practices and why you suggest we need to go for that.
In my experience with QTP, it’s best to handle known exception scenarios directly in your functions, and leave the exception handling mechanism for unknown or unexpected exceptions. Recovery scenarios use additional machine resources and can slow down your tests, so only use them in a limited fashion for catching truly exceptional scenarios.