You can use the Report.Filter method to determine which steps or types of steps are included in the Test Results.
You can completely disable or enable reporting of steps following the statement, or you can indicate that you only want subsequent failed or failed and warning steps to be included in the report.
You can also use the Report.Filter method to retrieve the current report mode.
The following report modes are available:
- To disable reporting of subsequent steps, enter the following statement in your QTP script:
- To re-enable reporting of subsequent steps, use the below code:
- To instruct QuickTest to include only subsequent failed steps in the Test Results, use the below code:
- To instruct QuickTest to include only subsequent failed or warning steps in the Test Results, use the below code:
- To retrieve the current report mode, use the below code:
Reporter.Filter = rfDisableAll
Reporter.Filter = rfEnableAll
Reporter.Filter = rfEnableErrorsOnly
Reporter.Filter = rfEnableErrorsAndWarnings
MyVar=Reporter.Filter
No comments:
Post a Comment