Micro Focus QTP (UFT) Forums
Skip button using Script - 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: Skip button using Script (/Thread-Skip-button-using-Script)

Pages: 1 2


RE: Skip button using Script - Ankesh - 08-01-2012

Hey i too work on SAP and QTP.

Whenever i see object error, i do a check with err number. Something like

Code:
On Error REsume NExt
//Some operation on object which throws error
If Err.Number<>0 Then
REporter.reportevent, micFail,"Error","Error description is :"&Err.Description
//exit the test iteration
End IF

Plz check and let me know if this works for u.

Regards,
Ankesh
My Blog - SAP & QTP