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:
|
Mode |
Description |
|---|---|
|
0 or rfEnableAll |
All events are displayed in the Test Results. Default. |
|
1 or rfEnableErrorsAndWarnings |
Only events with a warning or fail status are displayed in
the Test Results. |
|
2 or rfEnableErrorsOnly |
Only events with a fail status are displayed in the Test
Results. |
|
3 or rfDisableAll |
No events are displayed in the Test Results.
|
Reporter.Filter = rfDisableAll
Reporter.Filter = rfEnableAll
Reporter.Filter = rfEnableErrorsOnly
Reporter.Filter = rfEnableErrorsAndWarnings
MyVar=Reporter.Filter
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/16792402/viewspace-567256/ ,如需转载,请注明出处,否则将追究法律责任。