Create/modify a test case from CALL02.cbl

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

Creating or modifying the 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.

Procedure

  1. In the z/OS Projects view, expand ZUnit Enterprise COBOL test data samples > sample7 > <HLQ>.ZUNIT.SOURCE.COBOL(CALL02).cbl.
  2. Right-click the CALL02.cbl source file and click z/OS Automated Unit Testing Framework (ZUnit) > Create/modify a test case.
    The Create/modify a test case window opens.
  3. In the Test case name and Test case description fields, type AZUTC007.
    Create/modify test case window
  4. Optional: Click Options.
    The Preferences window opens. 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 that is associated with the project.
    ZUnit Preferences
  5. Click OK.
  6. To edit the test data for this test case, click Next.

Results

The Test Case Editor is opened for the CALL02.cbl program.
Test Case Editor

What to do next

Record and import data into the AZUTC007.cbl test case