Setting options for creating/modifying test case files

Use the ZUnit category in the property group editor to set options for creating/modifying test case files for a COBOL or PL/I program.

Before you begin

The z/OS Automated Unit Testing Framework (ZUnit) > Create/modify Test Case action stores the files it generates as partitioned data set members. Before you can create/modify test case files, you must allocate these partitioned data sets on the remote system where the COBOL or PL/I source program is. These data set names are the default data sets for test case generation. You can modify them on the property group page.
<HLQ>.ZUNIT.AZUGEN
Contains test case generation configuration files. This file stores the options that you specify in the Create/modify a test case window, and the settings generated internally by ZUnit for generating, building, and running a ZUnit test case. Each time you request the Generate Test Case action for a specific COBOL program, these options are loaded from this partitioned data set member. Allocate a partitioned data set with record format VB or VBA.
<HLQ>.ZUNIT.COBOL
Contains test case programs. This file contains the test case program and stub programs that are generated to test a COBOL source file. Allocate a partitioned data set with record format F or FB to contain the test cases and stub programs.
<HLQ>.ZUNIT.PLI
Contains test case programs. This file contains the test case program and stub programs that are generated to test a PL/I source file. Allocate a partitioned data set with record format F or FB to contain the test cases and stub programs.
<HLQ>.ZUNIT.AZUSCH
Contains test data layout files. The format of the test data layout file is the schema (XSD) for the test data. Allocate a partitioned data set with record format VB or VBA.
<HLQ>.ZUNIT.AZUTDT
Contains test data files. This file contains the test data XML files for running a test case with test data. Allocate a partitioned data set with record format VB or VBA and record length 16383.

About this task

The ZUnit category of the property group editor contains options for creating/modifying test case files for a COBOL or PL/I program. Set these options before you use the z/OS Automated Unit Testing Framework (ZUnit) > Generate Test Case action.

Procedure

  1. In the property group editor, select the Category tab and click z/OS Automated Unit Testing Framework (ZUnit).
    A ZUnit tab is added to the property group editor.
  2. Select the ZUnit tab.
  3. To set options for creating/modifying test case files, select Generation Options.
    The Generation Options page opens.
  4. You can set these options for generated files:
    Tip: Click Check Data Sets to check that data sets specified in the fields are on the remote system. If a data set name contains the <HLQ> variable substitution, Check Data Sets substitutes the high-level qualifier of the resource. To browse the remote system for a data set, click Browse.

    Test case generation configuration file: The location where options that you specify on the Create/modify a test case window and Test Case Editor, and information generated by ZUnit source program analysis, are saved.

    COBOL test case program: The location where generated test case programs, stub programs, and the programs to generate the stub COBOL data file for file I/O simulation are stored.

    PL/I test case program: The location where generated test case programs, stub programs, and the programs to generate the stub PL/I data file for file I/O simulation are stored.

    Test data layout: The location where test data schema files are stored.

    Test data: The location where test data files are stored.

  5. Close the property group editor and save the property group.