Show TOC

Resetting Coverage Analyzer StatisticsLocate this document in the navigation structure

Use

Use this function to reset all current code coverage statistics - including all current counters and cumulative counters- for any of the following:

  • A test group

  • One or more selected programs

  • One or more selected packages

  • All programs in the system.

Note

The Coverage Analyzer automatically does more limited resets. These affect only the current counters of the affected processing blocks.

The Coverage Analyzer resets current counters whenever a processing block is changed. The change may be a direct edit to a processing block in a development system. Or the change may be the result of an import of changed code into a test system.

You can also reset current counters by hand from the Detail Display. In this case, the cumulative counters are not affected.

Data saved in Coverage Analyzer histories is not affected by resets.

When to Reset Statistics:

  • In a development system, you may want to do complete resets on an individual, as-needed basis. As long as you are not doing system-wide monitoring of code coverage statistics, you don't need a set policy on doing resets.

    When a developer wants to check the code coverage of a test, he or she simply resets the statistics for the affected programs. After the developer runs the test, he or she can then view the uncontaminated code coverage results of the test in the Detail Display.

Doing a Complete Reset

To do a complete reset of Coverage Analyzer statistics, do the following:

  1. Start transaction SCOV, the Coverage Analyzer, and choose Start of the navigation path Coverage Analyzer Next navigation step Administration Next navigation step Reset End of the navigation path.

  2. Enter the test group, programs or packages/users to reset. Leave the selection screen empty to reset all statistics. Confirm the deletion.

The reset of the statistics is visible immediately in the Detail Display and after the next run of the history job in the Global Display.

You may want to create a new code coverage history to accompany the reset.

Resetting Current Counters Only

To reset only the current counters of selected programs, while leaving cumulative counters untouched, do the following:

  1. In transaction SCOV, the Coverage Analyzer, use the Detail Display to display the programs whose current counters you want to reset.

  2. Mark the program entries and choose the Reset function in the tool bar.

The Detail Display shows the effects of the reset (current counters are all set to 0) right away.

Seeing New Test Results After A Reset

To see fresh results from any tests you run after a reset, you can either:

  • Wait for the next run of the data collection job (Detail Display) or history job (Global Display); or

  • Display the programs in the Detail Display and choose the Refresh function. The Coverage Analyzer will gather the new code coverage data and display it to you.

  • Display the packages in the Global Display and choose the Update Analysis function. The job for recording history data will be started in the background processing system.