Previous Topic: End a Source Listing Backtrace SessionNext Topic: Replacement, Protection, and Special Options


Set the Code Counting/Coverage Option

CA InterTest for CICS has many options for specialized testing needs. The code coverage option enables you to see the number of times an Assembler statement was executed.

The initial setting for Code Counting is OFF, which is the default. However, you can use the Source Listing Profile screen to turn Code Counting ON or OFF again at any time after you have selected monitoring for a program.

How the counts are displayed or not displayed is handled by the primary line command COUNTS and its associated parameters.

This feature causes overhead during program monitoring and should be turned off as soon as it is not longer needed.

To change the setting for Code Coverage, perform the following steps:

  1. Type profile on the command line and press Enter, or press PF4 to access the Profile screen from any Source Listing Screen. The Code Counting= field shows the current setting.
  2. Overtype the current value with one of the following values:

YES

Enables code counting and turns on the COUNTER display feature

NO

Removes the COUNTER display and stops the counting feature

  1. Press Enter to process the new setting(s) and to return to the Source Listing Display.

    The following screen shows the Code Coverage feature:

    CA InterTest for CICS Release 9.1.00 - PROTSYM FILE SOURCE LISTING BREAKPOINT COMMAND ===> Program= ASMDEMO Option # Stmt # Displacement= Margin= 01 Search= ---------+---------------| COUNTER |------------------------------------------- LOC OBJECT CODE ADDR1 ADDR2 STMT SOURCE STATEMENT _ 00003E 58B0 D05C | 0000001 | 1212+ L DFHEIBR,DFHEIBP R:B | | 1213+ USING DFHEIBLK,DFHEIBR | | 1214+*********************************** | | 1215+* END OF PROLOG CODE F | | 1216+*********************************** | | 1218 PRINT NOGEN _ 000042 4160 0232 | 0000001 | 1219 LA R6,HDRLEN _ 000046 4060 23A2 | 0000001 | 1220 STH R6,OUTLEN _ 00004A D203 D180 B008 | 0000001 | 1221 MVC TSQTRAN,EIBTRNID _ 000050 D203 D184 B010 | 0000001 | 1222 MVC TSQTERM,EIBTRMID _ 000056 956D B01A | 0000001 | 1223 CLI EIBAID,DFHCLEAR _ 00005A 4780 2300 | 0000001 | 1224 BE ENDMSG _ 00005E 95F2 B01A | 0000001 | 1225 CLI EIBAID,DFHPF2 _ 000062 4780 399C | 0000001 | 1226 BE EXPANDEM _ 000066 95C2 B01A | 0000001 | 1227 CLI EIBAID,DFHPF14 _ 00006A 4780 399C | 0000001 | 1228 BE EXPANDEM _ 00006E 95F2 D188 | 0000001 | 1229 CLI TSSWITCH,DFHPF2