Setup instructions for ZUnit test case

Before you use the Enterprise COBOL TOURFILE.cbl sample, modify property group for ZUnit and change preference settings.

Before you begin

Ensure that the AZUDRCOB property group is listed in the Property Group Manager view by following Setup instructions for TOURFILE.cbl.

Procedure

  1. In the Property Group Manager, select the remote system that contains the ZUnit data sets and open the AZUDRCOB property group to modify the specified properties in the following categories. If you modified your HLQ in Sample JCL to allocate ZUnit data sets, you must also change your PDS settings in the property group.
    Category > Page Property Value
    Info Name AZUDRCOB
      Description Property group for the ZUnit COBOL samples running on Dynamic Test Runner
    JCL JCL job card Specify any JCL statements required for the z/OS system. You might need to add a JCLLIB statement to call ELAXF* remote build procedures. For more information, see ELAXF* remote build procedures.
    Link > Procedures and Steps ELAXFLNK-LINK link options REUS
      ELAXFLNK-LINK load module location <HLQ>.ZUNIT.LOAD
    COBOL > Procedures and Steps
    ELAXFCOC-COBOL Compiler options
    SOURCE LIB
     
    ELAXFCOC-COBOL
    Debug data set
    <HLQ>.COBOL.SYSDEBUG
      ELAXFCOC-COBOL object deck data set <HLQ>.COBOL.OBJ
     
    ELAXFCOC-COBOL
    SYSLIB
    Specify the data set prefix for the *.*.SBZUSAMP partitioned data set. Contact your system administrator for the data set name.
     
    ELAXFCOC-COBOL
    Support Error Feedback
    Select this check box and specify this data set qualifier for compiler errors: <HLQ>.ERRCOB
    ZUnit > Procedures and Steps BZUPPLAY-REPLAY User Libraries <HLQ>.COBOL.LOAD
  2. Click Windows > Preferences > ZTest > ZUnit (z/OS Automated Unit Testing Framework). Confirm that the Capture file I/O option is checked.
    For more information about the Capture file I/O option, see Setting ZUnit preferences.

Results

The following properties are updated in your workspace.
Figure 1. Property group editor with a property group created for the Enterprise COBOL test data samples on Dynamic Test Runner
Property group editor with a property group created for the Enterprise COBOL test data samples on Dynamic Test Runner
Figure 2. ZUnit preferences
ZUnit preferences

What to do next

Create/modify a test case from TOURFILE.cbl