Before you begin
The
Compiled Code Coverage Results view will
automatically open in the current perspective when the code coverage
report is generated. It can also be opened by navigating to and then selecting . Alternatively, accessing the Code Coverage pulldown on the toolbar

,
select
Show Compiled Code Coverage Results View.The
Compiled Code Coverage Results view
contains the name, status, coverage, level, analysis date and additional information for all previous
code coverage results. From this view, you can work with your code coverage results.
About this task
The following information describes the activities available
in the Compiled Code Coverage Result view.
- Adding a result location.
By default the Code Coverage Results view contains
the local default location so that you may view your previously generated code coverage results. You can add new result locations
in order to access results that have been generated elsewhere.
To add a new result location:
- From the toolbar in the view, click on the Add result button
. Alternatively, right-click for the context menu in the view
and select the Add result location menu option.
- In the Add Result Location dialog
- Optionally specify a name for your location.
- Specify the result location by either:
- Typing the result location in Location field in the dialog
- Using the Remote Systems button to select a location on a remote system
- Using the Local File System button to select a location on the local file system
- Press Ok to add the location to the Compiled Code Coverage Results view.
- Removing a result location.
To remove a result location: Right-click on a result location, and select the
Remove menu action. Alternatively,
select the remote location to remove, and press the Delete key
- Refreshing a result location.
With the exception of the Local default
location, result locations are not automatically refreshed.
To ensure that the list of results is in sync with the remote location:
Right-click on a result location, and select the Refresh menu action. Alternatively,
select the remote location to refresh, and press the F5 key
Note: The
Refresh button in the view toolbar

can be used to refresh all the locations simultaneously.
- Determining whether a result met the code coverage threshold
criteria.
The Compiled Code Coverage Results view
lists the results of your code coverage results and displays their
name, status, coverage, level, analysis date and any additional information.
The
status icon shown in the second column indicates whether the report
meets the coverage thresholds set in the code coverage preferences
page. A green check mark indicates that the threshold criteria was
met, an exclamation mark on a red background indicates that one or
more of the acceptance thresholds was not met, and the question mark
icon conveys that the state is unknown. A state becomes unknown as
a result of changing the threshold level, until the computation of the
reports contents completes, or if there is some unknown error with the
report. The state of a remote result location may be unknown if the
result has not been opened.
- Sorting results.
The results can
be sorted by status, name, level, or analysis date. To sort the result, click
on the header of the desired column in the Compiled Code Coverage
Results view to toggle the sort order. The preceding screen
capture shows a sort by date with the most recent result shown first.
Note: Results are only sorted within their result location.
- Opening a code coverage report for a previous result.
To open a code coverage report for a previous result, right-click
and select the Open Report action or double-click on the result.
To open an HTML report, right-click
and select the Open As > HTML report action.
If the report was not previously generated, it will be generated before being opened.
To open a PDF report, right-click
and select the Open As > PDF report action.
If the report was not previously generated, it will be generated before being opened.
- Comparing code coverage results.
To compare two code coverage results, right-click
and select the Compare action.
To open an HTML comparison report, right-click
and select the Compare As > HTML report action.
The report will be generated then opened.
To open a PDF comparison report, right-click
and select the Compare As > PDF report action.
The report will be generated then opened.
- Generating a code coverage report from a result.
To generate a code coverage report from a result,
see Generating customized code coverage reports.
- Rename a result from the workbench.
To
rename a result from the workbench, select the result
to rename, right-click and select the Rename action.
Specify the new name in the Rename dialog.
- Delete a result from the workbench.
To
delete one or more results, select one or more results to delete, then right-click and select the Delete action.
The data files corresponding to the results will be deleted.
Alternatively, select the desired results and press the Delete key.
- Import a code coverage result into the workbench.
To
import a result from the workbench, on the Local defauly location, right-click and select the Import action.
Alternatively, press the Import toolbar button
.
The Import dialog appears to allow you to specify the import location.
- Export results from the workbench.
To
export one or more results from the workbench, select the result to export, then right-click and select the Export action.
The Export dialog appears to allow you to specify the export location.
- View result properties.
To view a result properties,
select the result, then right-click and select the Properties action.
The Properties dialog appears with the result properties. You can also use the
Properties view to view a result's properties.
- Link the editor selection with the Compiled Code Coverage Results View.
To have the reports in th editor area linked to the selection in the Compiled Code Coverage Results View,
go to the view menu and select Link with Editor
- Opening the Code Coverage Preferences page.
To open the code coverage preferences page, go to the view menu and select
Preferences....