Adding and editing test entries for COBOL
Use the toolbar buttons and pop-up menus to add and edit test entries in the Test Case Editor.
About this task
A test entry is a specific test that is run in a test case. A test case program
contains one or more tests to be run when the test case is started. The number of tests that you can
add to a test case is limited to available memory.
Note: For relative record data set (RRDS), empty
record not supported, and you need to input all records sequentially.
Procedure
- To add a test entry, click
Add Test or right-click
in the table and click Add Test.
The editor adds two columns to the table: one column for input data and one column for expected output data.For an input file, the cells in the expected output data column are disabled. For an output file, the cells in the input column are disabled.
- To duplicate a test entry, click
Duplicate Test or right-click a test entry and click Duplicate
Test.
The editor adds the duplicated test to the Tests list.
- To edit a test name or description, click
Edit Test, or right-click in the in the editor and click Edit
Test. Type a new name and description in the Edit Test
window.
- To delete a test entry, click
Delete Test, or right-click in the editor and click Delete
Test. The test is removed from the table. - To add data to an input parameter or expected output parameter
for a test entry, double-click a cell, type the data value in the
cell, and press Enter. You can use the pop-up menu to copy, cut, paste, and delete parameter values.The value is displayed in Value of Selected Field. This field makes it easier to see data values that are too long to display in the table. If you edit a value in Value of Selected Field, it is updated in the table.

- To clear data from a record, a data item, or a cell, select it and click
Clear Data. This action deletes the data from the selected node and from all items in its tree. If you select a record, for example, Clear Data deletes all data in the record. If you select a parameter, it deletes all data in that parameter.