Create/modify a test case from TOURFILE.cbl

Use the Create/modify test case window to create/modify a test case from the TOURFILE.cbl sample program.

Creating or modifying a test case

Before you begin

This procedure uses a sample program included with IBM® Developer for z/OS®. It also uses a remote z/OS project that was created by the sample setup procedure. Before using this procedure, set up the sample file and project by using the instructions in Setup instructions for TOURFILE.cbl.

Procedure

  1. In the z/OS Projects view, expand ZUnit Enterprise COBOL test data samples > tourfile > <HLQ>.COBOL.SOURCE.COBOL(TOURFILE).cbl.
  2. Right-click the TOURFILE.cbl source file and click ZUnit (z/OS Automated Unit Testing Framework) > Create/modify test case.
    The Create/modify test case window opens.
    Create/modify test case window
  3. Click Options. The Preferences window opens. Confirm that the Capture file I/O option is checked.
    The Data set name, Test data layout, and Test data fields are populated with default data set names that are defined in the property group AZUDRCOB that is associated with the project.
    Preferences window
  4. Click OK after you finish checking the preferences.
  5. To edit the test data for this test case, click Next.

Results

The test case editor is opened for the TOURFILE.cbl program. You should confirm that the value for Capture file I/O is true in the Properties view.
Test case editor
Properties view

What to do next

Record and import data into the ZUnit test case of TOURFILE.cbl