Software Technology Tips

It is possible to Control what types of steps are written to the test results using the following statements.

Reporter.Filter=<Filter value>
The <Filter value> must use one of the following QTP built-in variables.
1-rfEnableAll- Report all steps.This is the default setting

2-rfEnableErrorsAndWarnings- Only report error(failed)and warning steps.

3-rfEnableerrorsOnly- Only report error steps.

4-rfDisableAll- Does not report any steps.
The following code shows how to suppress a single checkpoint's Pass/Fail status:
'Store the Old filter value'
'Disable reporting of all events'
Set op=Browser("Browser").Page("page")
if chkStatus Then
  Msgbox "Passed"
  Msgbox "Failed"
End if.

Related Tags:


Author: Jyoti Acharya


Let us Connect!

Awards and Achievements

Red Herringcolor DeloitteFast50 DB ZInnov1   Nascome  DB Stpi

This site uses cookies. We respect your privacy.copyright (c) Mindfire Solutions 2007-2015. Login