06 November 2017

Error handling in UFT / VBScript

'Will Returns the Error.no and corresponding Error description


OnErrorResumeNext

For i = 1To10

    Err.Raise i
    MsgBox"Err no: = " & Err.Number & "  Desc: = " & Err.Description


Next


...

No comments:

Post a Comment

AOM - Automation Object Model

'Creating QuicTest Object Set  qtapp =  createobject ( "QuickTest.Application" ) 'Launching the Application If  qtapp...