Exploring Coverage Analysis Views > Exploring the Coverage Browser >  Understanding the Data in the Coverage Browser  

Understanding the Data in the Coverage Browser

Data in the Coverage Browser is presented in terms of misses; that is, the classes, methods, lines of code, and conditions (if the snapshot contains condition coverage data) that were missed by your test case. The Coverage Browser is divided into two areas. In the upper area, called the Application Tree, your application’s packages and classes are organized in a tree format. When you select a package or class in the tree, the Method Detail table displays data for each of its methods.

You can filter the methods displayed in the lower table using the Show Only Methods with Missed fields. You can filter by the percentage of missed lines of code or by the percentage of missed conditions; only methods that exceed the percentage are displayed. For example, if you select Lines >50%, the only methods displayed are the ones where over half of the lines of code in the method were missed by the test case.

A Closer Look at Data in the Application Tree

The following table describes the values in the tree.

  

Column Name

Description

% Missed Classes

= Missed Classes / Total Classes

Missed Classes

If the snapshot contains baseline snapshot data, this column states the number of classes that were missed. Otherwise, this column will be zero.

Total Classes

If the snapshot contains baseline snapshot data, you see the total number of classes in your application (taking filters into account). Otherwise, you see the total number of classes with methods that were called by your test case (taking filters into account).

% Missed Methods

= Missed Methods / Total Methods

Missed Methods

Number of methods missed by the test case.

Total Methods

Total number of methods in the class/package/application (taking filters into account).

% Missed Lines

= Missed Lines / Total Lines

Missed Lines

Number of lines of code missed by the test case.

Total Lines

Total lines of code in the class/package/application (taking filters into account).

% With Line Data

Percentage of lines of code that have line data.

% Missed Conditions

= Missed Conditions / Total Conditions

Missed Conditions

Number of condition outcomes missed by the test case.

Total Conditions

Total number of possible condition outcomes in the class/package/application (taking filters into account).

% With Condition Data

Percentage of lines of code with condition data.

For the Missed and Total columns, data is rolled up the tree. Values for the package represent the sum of all classes in the package, while the values attributed to the application represent the sum of all its packages.

A Closer Look at Data in the Method Detail Table

The following table describes the columns in the method detail table.

 

Column Name

Description

Method

Name of the method.

Method Missed

States whether or not the method was missed.

% Missed Lines

= Missed Lines / Total Lines

Missed Lines

Number of lines in the method that were missed by your test case.

Total Lines

Total number of lines of code in the method.

% Missed Conditions

= Missed Conditions / Total Conditions

Missed Conditions

Number of condition outcomes in the method that were missed by your test case.

Total Conditions

Total number of possible condition outcomes in the method.

Class

Name of the class containing the method.