Unit Test Options tab
When clicking on the Unit Test Options tab the Record Test dialog opens displaying the Unit Test Options tab. The Unit Test Options dialog for CICS programs is slightly different and you find its description here.
All options changed in the Unit Test Options tab will be persisted and next time the dialog opens it remembers settings from last recording. This is also true after has been restarted.
Stubs
The dialog contains the following fields under the Stubs heading.
Record sub-program stubs
Check the Record sub-program stubs checkbox to indicate that a Program stub will be added to the scenario for each program call in the program. The stub name will reflect the sub-program name.
Only uncheck the checkboxes if stubs aren't needed. For more information on stubs refer to Stubs.
Remember: For Program stubs to be created, the sub-program(s) must be called while Code Debug is gathering the data to send to . In order for Code Debug to get call data, the call parameters and results data must actually execute the sub-program during the captured debug session.
Create assert condition for data passed into sub-programs
Check (default) the Create assert condition for data passed into sub-programs checkbox for to generate sub-program assertions for sub-program stubs. Sub-program assertions validate all of the data that is being passed into a sub-program call just like a Write Assertion validates all the data that is passed into a Write I/O call. Useful if I/O is done inside of sub-program and can't be validated by write assertions.
Uncheck if assert conditions should NOT be created.
Maximum number of calls to capture per program
Update the Maximum number of calls to capture per program. Initial default is 1000.
Record I/O stubs
Check the Record I/O stubs checkbox to indicate that I/O stubs will be added to the scenario as selected with the following Data Types checkboxes. An I/O stub will be added to the scenario for each QSAM or VSAM DD READ or WRITE in the program. The stub data includes the first record read for each DD, unless you specify a value greater than one (1) in the Maximum number of I/O records to capture per file. The stub will have the same name as the DD.
When unchecked, I/O stubs will NOT be generated.
Data Types
Check the Data Types checkboxes, QSAM and VSAM, for which to generate I/O stubs. I/O stubs will only be generated for the checked data types.
Maximum number of I/O records to capture per file:
Update the Maximum number of I/O records to capture per file. Initial default is 1000.
Record DB2 stubs
Check the Record DB2 stubs checkbox to indicate that Db2 statement stubs will be added to the scenario for Db2 SQL call in the program. Calls for Db2 SQL statements using a cursor are grouped into a single stub by cursor name, and the stub will have the same name as the cursor name. Calls for all other Db2 SQL statements are grouped by individual statement, and each stub will have a name identified by SQL statement type.
Only uncheck the checkbox if Db2 stubs aren't needed. For more information on stubs refer to Stubs.
Maximum number of SQL calls to capture per statement or cursor:
Update the Maximum number of SQL calls to capture per statement or cursor. Initial default is 1000.
Record IMS stubs
Check the Record IMS stubs checkbox to indicate that IMS DL/I statement stubs will be added to the scenario for IMS DL/I calls in the program. Calls for IMS DL/I statements are grouped into a single stub by PCB name associated with the call, and the stub will have the same name as the PCB name.
Only uncheck the checkbox if IMS DL/I stubs aren't needed. For more information on stubs refer to Stubs.
Maximum number of IMS calls to capture per PCB:
Update the Maximum number of IMS calls to capture per PCB. Initial default is 1000.
Processing Options
The dialog contains the following fields under the Processing Options heading.
Overwrite existing stubs
Check the Overwrite existing stubs checkbox if you want to replace the contents of previously created, same named, stubs with the data to be collected from this unit test data collection.
If left unchecked, will create a copy of the same named stubs, and identify each new set of Data Stubs with a 2 digit set identifier, for example:
Existing stub: CWXTCOB_EMPFILE_READ.stub
New stub: CWXTCOB_EMPFILE_01_READ.stub
OK
After filling out all fields and setting the desired settings in the dialog, click OK to create the test case.
Cancel
Click Cancel to close the dialog without initiating creation of the test case.