Creating and applying a filter
To create and apply a filter, perform these steps:
- Do one of the following:
- On the Apply Filters page, which appears after clicking Next on the Code Coverage Report Criteria page, click New.
- In the Code Coverage view, click
. - In the Code Coverage view, right-click Report Filters and select New.
- In the Code Coverage view, from the View menu (
), select Create a New Filter. The Create Filter dialog box appears.
- In the Name field, enter a name for the filter.
- Click Add. The Add Filter Criteria dialog box appears so individual filter criteria for the new filter can be specified.
In the Type box, select one of the following:
- Critical
- Exclude
- In the Scope box, select one of the following types of masks.
- Line
- Block
- Enter the details of the mask:
- For a line mask, type the text string to search for in the Begin mask field, the starting column position in the Start field, and the ending column position in the End field.
- For a block mask, type the starting text string to search for in the Begin mask field, type the ending text string in the End mask field, and enter starting and ending column positions in which to search.
Select the matching option to use:
- Select Within start/end range to find the text string anywhere it occurs between the start and end columns.
- Select Exactly at start position to find the text string when it starts at the starting column position.
- Optionally, select the Whole word check box to find the text string of a line mask only when it occurs as a whole word, not when it is embedded within other words. This option only applies to line masks.
When you have finished creating the filter criteria, click OK. The new filter criteria is added to the Create Filter dialog box.
- To add more filter criteria for this filter, click Add and repeat the steps above.
- Click OK. The new filter and its filter criteria appear on the Apply Filters dialog box.
- In the Filters box, select the check boxes for each of the filters to be applied to the Code Coverage report. The criteria for each filter appears in the Filter criteria box.
- Click Finish. A message appears asking whether to run the report now.
- Click Yes or No. If the report is run now, the report view (indicated by the report name as the title) appears.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*