Record and import data into the ZUnit test case of CALL02.cbl
In the Test Case Editor, you can record data from a COBOL batch application, and import the data into a test case, and then generate, build, and run the test case of CALL02.cbl to see the test results for the imported data.
Recording and importing data
Before you begin
This procedure uses a sample program included with IBM® Developer for z/OS®. It also uses a
z/OS project that was created by the sample setup procedure.
Before using this procedure:
- Set up the sample files by using the instructions in Setup instructions for CALL02.cbl and Setup instructions for ZUnit test case.
- Create/modify a test case for the sample file and open the Test Case Editor by using the instructions in Create/modify a test case from CALL02.cbl.
Procedure
Results
The ZUnit test runner starts and runs TEST1 and TEST2. When it completes, the ZUnit
Runner Results view opens and shows that TEST1 passed the run and TEST2 failed the
run.
