Wednesday 17 July 2013

QTP - How to skip the Errors/Warning in the Test Results

User can use Reporter object in QTP to skip the Errors/Warning - Just before statement put this code

                 Reporter.Filter = Desired Mode

'Desired mode' is what you expect reporter Object to do. In your case 1 (rfEnableErrorsOnly) would do.

0 or rfEnableAll: This is the default mode. All reported events are displayed in the Test Results.

1 or rfEnableErrorsAndWarnings: Only those events with a warning or fail status are displayed in the Test Results.

2 or rfEnableErrorsOnly: Only those events with a fail status are displayed in the Test Results.

3 or rfDisableAll: All events in the Test Results are disabled.

No comments:

Post a Comment