Creating/modifying a test case
Use the Create/modify a test case window to create a ZUnit test case with test data for a remote Enterprise COBOL or Enterprise PL/I source file.
Before you begin
To create/modify a test case for a local file, see Creating/modifying a test case for a local source file for COBOL or Creating/modifying a test case for a local source file for PL/I.
For information about known limitations for creating/modifying test cases, see COBOL Limitations or PL/I Limitations.
- Create a property group and associate it with the source program for which you want to generate a test case. Set property group options as described in Setting property group options for a test case (COBOL) or Setting property group options for a test case (PL/I).
- If the version of the ZUnit API that you use is earlier than V14.1.0:
- In the Preferences window, select .
- To create/modify a test case that is compatible with an earlier product version, select Generate API AZUASTFM.
- The test case generation configuration file is created with the test source file name by default. To change the test case generation configuration file, select the Prompt to change the test case generation configuration file preference on the z/OS Automated Unit Testing Framework (ZUnit) Preferences window.
About this task
The Create/modify a test case window specifies options for creating/modifying a test case file. The generated test case file is a COBOL or PL/I program that provides a framework in which you can write tests. You can add multiple test entries to a test case. The framework provides the logic that is required to set up, run, and tear down the tests and calls the test runner programs that run the test case.
Procedure
What to do next
- Editing test cases (COBOL)
- Adding data to test entries (PL/I)