Tips for Focusing Coverage Data

Related Topics

PureCoverage provides ways to focus data before, during, and after data collection.

Focus data before you start collection by limiting the scope of data collection in one of the following ways:

§          Control the coverage level at which PureCoverage collects data. Collect data at the line level only for the module that contains the code you are testing. Exclude modules for which you do not want to collect data at all.

§          Select specific classes or modules for instrumentation. You can limit instrumentation and data collection to include just your code, or any classes or modules that you select.

§          Use API functions to control data collection programmatically. For Java2-compliant Java code and .NET managed code, use the Rational Pure API functions. For native-compiled code, Visual Basic programs, use the PureCoverage API functions.

Focus data as it is being collected as follows:

§          Use the tools in the Run Control toolbar to pause data recording, clear data, and take a snapshot of the current data while a program is running.

Focus data you have collected using filters, as follows:

§          Use QuickFilters for point-and-click filtering from the Coverage Browser window. Select the items to hide, then right-click and select QuickFilter.

§          Enable and disable filters in the Filter Manager dialog box. You can enable or disable multiple filters at one time. Select the filters, then right-click and select Enable or Disable.

§          Use the Filter Manager dialog box to rename a filter. Right-click the selected filter and select Rename.

§          To save changes you made in the Filter Manager for future runs of the program, click Save Settings. PureCoverage saves the filters in a PureCoverage filter file (.cft). Also click Save Settings after you revert to your most recently saved filters or reset your filters to the global filter defaults.

§          To use filters from the command line or a test script, use the /FilterFiles command-line option along with /SaveTextData.

(C) Copyright IBM Corporation 1993, 2010.