Micro Focus QTP (UFT) Forums
QTP VB script error handling - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: QTP VB script error handling (/Thread-QTP-VB-script-error-handling)



QTP VB script error handling - JJ66 - 12-22-2008

I am running a batch of QTP (test automation tool) scripts written in vb script overnight. Could some one send me an error handling vb script code snippet that I may insert in each script which automatically exists any script that encounters an environmental or any other error in it's run, writes a line to a log file to the efftect "This....script encountered an error in it's run and and has not been run fully", and moves to the execution of the next script in the batch? Thanks.