I am working on web based application which uses excel file to store userid/pwd combinations.
I have created one Recovery Secenario which closes the IE and stops QTP on any 'test run error'. But this is not sufficient to handle the errors in file read/write operations. eg. If file path is wrong, QTP displys an error saying path is wrong.
So how to build a Recovery Scenarion to handle both test run error and File I/O errors ?
file.open 'open a specified file
if err.number <> 0 then 'an error occured deal
reporter.reportevent 1, "The followng Error occurred", err.description
'release any objects and clean up here
end if</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">you get the idea I hope.