Nag
Answered On : Oct 15th, 2007
This is used for handling Run time errors. If you use this statement in the script then it will close any kind of run error dialogs while running the script.
Login to rate this answer.
On Error Resume Next is used when you are sure about the step at which error
occurs in QTP. Based on that you can use an if statement to close that error
box.
For Eg.
if error.exist then
error.close
endif
Whereas recovery scenarios will only come in picture when the error are
unpredictable or uncertain.
Login to rate this answer.