Selecting Specific Classes for Instrumentation (Coverage Monitoring)

Related Topics

You can use selective instrumentation to have PureCoverage instrument and collect coverage data for just those Java or .NET managed classes that you specify.

To use selective instrumentation for coverage monitoring:

1.           Open the Default Settings or Executable Settings dialog box, or click Settings in the Run Program dialog box.

2.           Select the PowerCheck tab.

3.           Click Configure... in the Java/Managed group to open the Class Instrumentation dialog box.

4.           In the Class Instrumentation dialog box, select the type of instrumentation you want to perform in the Classes to Instrument group:

§  select All Classes to specify classes to exclude from data collection. All other classes are included.

§  select Selected Classes to specify classes to include in data collection. All other classes are excluded.

5.           In the Pattern Tree, specify and select (enable) character string patterns that you want PureCoverage to compare against fully qualified class names at runtime.

6.           Click OK. The current Pattern Tree is automatically saved in an .ini file. For details about .ini files and their locations, click images\shortcut.gif.

Notes:

§                  Use the File menu to save (export) Pattern Trees to .ini files, or load (import) previously saved Pattern Trees.

§                  You can use the /CoverageClassesExcludeMust and /CoverageClassesIncludeMust command line options in scripts and from the command line to selectively instrument Java and .NET classes.

§                  To use selective instrumentation patterns and settings that you save from the PureCoverage user interface in the command line, use the /ExeIniFileName command line option.

(C) Copyright IBM Corporation 1993, 2010.