Sample Programs

A number of sample programs and source code comes with the Functional Test and are installed as part of the Compuware Enterprise Common Components (ECC) installation. The default source library is hlq.SLCXCNTL and the default load library is hlq.SLCXLOAD. It can be beneficial to define a System called Functional Test samples with these values, and then add each sample program to the repository by referencing the system. Sample programs using Db2 will not work out of the box.

Available Sample Programs

 

Program

Description

XAPGMTST

Uses a complex input/output data structure with most types. Echoes input data and generates current time and date in the output.

XADB2TST

Db2 CRUD program that operates on an Employee table.

XAMOCTST

Program that calls XADB2TST as a sub module. The program can be used to test the stub/virtualization feature.

XAPGMCAL

Calculates the number of minutes and seconds until midnight based on an input timestamp.

XDPGMBT1

Main batch program that uses JCL to setup input and output dataset. The program reads from an input file, looks up data in Db2 and writes the rows to an output dataset. The program can be used to test features related to main batch program testing.

XARISCAL

Demo program that calculates a risk factor from an input age.

XARISCA2

Calls XARISCAL 1-5 times with different ages. Used for illustrating sub module virtualization and sub module recording.

XARISCA3

Calls XARISCAL and uses a condition to either approve or reject thr customer request. Used for demonstrating sub module virtualization.

XADGTIME

COBOL wrapper to the Assembler program XADTSTMP.

XADTSTMP

Assembler program that generates a timestamp.

XADPTRS1

Pointer example with both Functional Test and program assigned memory.

XADENCOD

Program that takes parameters in UTF16 and ENCDIC format.

XADRETRN

Program that as a Returning parameter and several redefines. Used to demonstrate Returning and how to use Functional Test with redefines.

XADCICC1

CICS program using commarea. Can get information about a program on CICS. By default it returns info about itself.

XADCICC2

CICS program using ts storage queue. Does the same as XADCICC1.

XADCICC3

CICS program using ts storage queue and containers. Does the same as XADCICC1.

XADCICC4

Component registered as CICS transaction that will excecute XARISCAL through a transaction.

XADCICC5

CICS program that calls XARISCAL by using TWA memory.