Refreshing the Browser
As you test your application, you may need to explicitly refresh the Code Coverage Browser to reflect the current state of the applications being tested. Select Applications > Refresh to refresh the browser.
Ignoring Components
It is possible that some of your methods are never executed during the course of running your test suites. For example, test cases validating API for adding and removing from a collection might not test the initialization of the class itself. Class initialization might be tested as part of a test suite to verify the correct installation and removal of a class from the image.
The Code Coverage Browser lets you ignore methods, classes, or applications that your test cases are not intended to test. This lets you reduce the amount of information presented in the browser and letsyou focus on the main problem of identifying the incomplete areas of your test suites.
To ignore the methods in a component, select the component (application, class, or method) and select a menu option:
| |
an application | ensure the application’s hierarchy is expanded (that is, ... does not follow the application name) and select: Applications > Ignore Application |
an application and its subapplications | ensure the application’s hierarchy is collapsed (that is, ... follows the application name) and select: Applications > Ignore Application... |
a class hierarchy | Classes > Ignore > Class Hierarchy... |
methods | Methods > Ignore/Restore |
all implementors of a method | Methods > Ignore All Implementors... |
Table 21 — Ignoring methods in a component.
To view all methods (including those that have been ignored), select Methods > Show All. Ignored methods are prefixed with a minus sign (-).
To view only those methods that need to be tested, select Methods > Hide Ignored. Ignored methods are hidden. Classes and applications that do not have any remaining methods are also removed, unless they have subclasses or subapplications that still contain untested methods
Last modified date: 05/19/2020