Using System Flow with Xpediter/CICS. Compuware Code Coverage
تبلیغات
تبلیغات
11-1
Chapter 11.
Using System Flow with Xpediter/CICS
This chapter explains how to use System Flow with Xpediter/CICS and includes the following sections:
• “Preliminary Considerations”.
Notes:
1. All the procedures in this and subsequent chapters assume that Code Coverage has been properly installed and configured in accordance with the Compuware Installer
Mainframe Products SMP/E Installation Guide and the Xpediter/Code Coverage Installation and
Configuration Guide.
2. Xpediter/CICS 8.0 or above is required to collect System Flow data in CICS.
Overview
Using Xpediter/Code Coverage’s System Flow capability with Xpediter/CICS is a twostage process composed of the following:
• Online data collection
• Reporting.
Each stage is discussed in greater detail below, and the entire process is illustrated in
The program preparation steps normally necessary for Code Coverage collection are not required for System Flow. Specifically, this means that the Compuware source listing and
Compuware program inventory files are not necessary to collect System Flow data.
11-2 Xpediter/Code Coverage Mainframe User/Reference Guide
Figure 11-1. Xpediter/Code Coverage’s System Flow Process in a CICS Environment
Online Data Collection
System Flow collection in CICS is a four-stage process:
1. Define the test criteria
2. Start the System Flow data collection
3. Execute the CICS transactions
4. Halt the System Flow collection.
Define the System Flow Test
Using System Flow with Xpediter/CICS 11-3
Figure 11-2. Test Definition Screen
--------------- XPEDITER/Code Coverage - Test Definition (1) --------------C123
COMMAND ==> SCROLL ==> CSR
USERID: ACMJET0
Entry 1 of 4
Available Commands are highlighted:
(S) Specify Collection (H) Halt Collection (V) View Collection Activity
(SC) Start Code Coverage (SF) Start System Flow (SB) Start Both
(E) Extract Entry (ES) Extract System Next Full Extract:
(D) Delete Entry (DS) Delete System Current Time:
(B) Browse (A) Archive
Code System
CMD System Name Test Identifier Owner Status Coverage Flow
---- *************** *************** ******** -----------------------------
__ PAYROLL ACCOUNTING ACMJET0 Incomplete
__ PAYROLL ALL BUT JOE ACMJET0 Available
__ PAYROLL DEVELOPMENT ACMJET0 Incomplete
__ LAYROLL ONLY JOE ACMJET0 Available
__ _______________ _______________
__ _______________ _______________
__ _______________ _______________
__ _______________ _______________
__ _______________ _______________
__ _______________ _______________
PF1 Help PF3 End Extract All (Y/N): N
The Test Definition/Collection Specification screen (Figure 11-3) is used to specify which
users, transactions, programs, and CSECTs should be collected during the System Flow test. Because System Flow is designed for analyzing applications, values specified in the
Tran, Program, and CSECT fields of the Include MASKS portion of the screen should be as generic as possible. If a mask is too specific, the resulting System Flow report will give an incomplete view of application activity. For the same reason, the use of Exclude masks during System Flow testing is not recommended. The status of the test on the Test
Definition screen (Figure 11-2) will be shown as Available after definition and before
starting the test.
Figure 11-3. Test Definition/Collection Specification Screen
-- XPEDITER/Code Coverage - Test Definition/Collection Specification (1) --C123
COMMAND ===>
Userid: ACMJET0
System Name: PAYROLL Testid: ACCOUNTING Owner: ACMJET0
Status: Available User added
Available Line Commands: (D) Delete (V) Validate
--------------------- Include ------------------- | -------- Exclude --------
CMD User CMD User CMD User CMD User | CMD User CMD User
U _ ******** _ ________ _ ________ _ ________ | _ CARTMAN _ KENNY
S _ ________ _ ________ _ ________ _ ________ | _ ________ _ ________
E _ ________ _ ________ _ ________ _ ________ | _ ________ _ ________
R _ ________ _ ________ _ ________ _ ________ | _ ________ _ ________
S _ ________ _ ________ _ ________ _ ________ | _ ________ _ ________
_ ________ _ ________ _ ________ _ ________ | _ ________ _ ________
_ ________ _ ________ _ ________ _ ________ | _ ________ _ ________
_ ________ _ ________ _ ________ _ ________ | _ ________ _ ________
_ ________ _ ________ _ ________ _ ________ | _ ________ _ ________
Tran Program CSECT Tran Program CSECT | Tran Program CSECT
M _ **** ******** ******** _ ____ ________ ________ | _ SPIN SOUTH PARK
A _ ____ ________ ________ _ ____ ________ ________ | _ ____ ________ ________
S _ ____ ________ ________ _ ____ ________ ________ | _ ____ ________ ________
K _ ____ ________ ________ _ ____ ________ ________ | _ ____ ________ ________
S _ ____ ________ ________ _ ____ ________ ________ | _ ____ ________ ________
PF1 HELP PF3 EXIT PF4 Validate All
Note: Unlike Code Coverage, the Collection Specification screen cannot be used to validate that all required System Flow load modules and programs are available within CICS before running the Code Coverage collection. This is because the
Code Coverage validate function requires a Program Inventory member and
11-4 Xpediter/Code Coverage Mainframe User/Reference Guide
Compuware source listings. These two elements are not required for System Flow collection.
Start the Test
Enter the SF line command on the Test Definition screen (Figure 11-2 on page 11-3) to
start System Flow collection. The status of the test on the Test Definition screen is then shown as Collecting.
Execute the CICS Transactions
In this stage, you run the transactions that will cause the programs specified on the Test
Definition/Collection Specification screen to be executed. Xpediter/Code Coverage’s
System Flow keeps track of what transactions and programs are executed. When all the transactions/programs have been run, System Flow collection can be halted.
Halt the Code Coverage Collection
Return to the Test Definition screen to halt the collection. After entering the H (Halt
Collection) line command, the status of the test on the Test Definition panel will initially be shown as Quiescing, then change to Available. A message will be displayed indicating that data extraction is complete. This means that the System Flow data has been written from CICS storage to the Code Coverage extract file. At this point (by default), a batch job will be submitted that will write the System Flow data from the CICS extract file to the Code Coverage repository. The process of writing the System Flow data from the CICS extract file to the Code Coverage repository is known as “hardening”.
Reporting
After the System Flow data has been written to the repository, it can be reported on. On the mainframe, reporting is done using the ISPF System Flow reporting panel. This
process is described in Chapter 4, “Generating System Flow Reports”.
Preliminary Considerations
Before the System Flow feature of Code Coverage can be used under Xpediter/CICS, several considerations must be taken into account:
• You must ensure the value of the Xpediter/CICS global parameter XDCC is set to YES
(the default).
• You must ensure the value of the Xpediter/CICS Code Coverage global parameters
XVCC and XVSC match the transaction codes, which default to XVCC and XVSC.
• You must ensure the load library containing Xpediter/CICS has been added to the
DFHRPL concatenation. This loadlib is provided as XPED.CICS.LOAD.
• You must ensure the load library containing Code Coverage has been added to the
DFHRPL concatenation. The file name is SYS2.XPCOVER.V3R1M0.LOADLIB.
• You must create an Extract dataset (XVTCEXTR) for the intermediary Code
Coverage/System Flow data.
• Optionally, you can create a JCL template dataset (XVTCEXTJ) that contains the JCL to write the intermediary Code Coverage/System Flow data to the Code
Coverage/System Flow repository.
• Optionally, you can create a Save Specifications dataset (XVTCSPEC) to provide an archive for Code Coverage/System Flow test definitions.
Using System Flow with Xpediter/CICS 11-5
• The Test Definition screen (Figure 11-2 on page 11-3) or DBPA entries are used to
name and define an application system (SYSTEM) and individual tests (TESTID). For
more information on DBPA entries, see “DBPA Keywords for Code Coverage and
System Flow” on page 10-24. The Specification Archive screen (Figure 10-13 on page
10-19) may also be used to activate an archived specification.
• It is possible to start the same test definition entries for both Code Coverage and
System Flow data collection. However, it may be more practical to define separate tests. The high level overview of the application system provided by System Flow will be most complete if you define the test broadly. The detailed view of program code provided by Code Coverage may only be needed for a narrower subset of the application system.
Note: Xpediter/CICS 9.4.1 entries, which cause specified programs to be excluded from monitoring by Xpediter, will be honored by System Flow. No System Flow data will be collected for any activity in an excluded program.
11-6 Xpediter/Code Coverage Mainframe User/Reference Guide
دانلود
تبلیغات