Creating/modifying a test case for a local source file
Use the Create/modify a test case window to create a ZUnit test case for a Enterprise COBOL or Enterprise PL/I source file on the local workstation.
Before you begin
To create/modify a test case for a remote source file, see Creating/modifying a test case for COBOL or Creating/modifying a test case 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.
Tip: When you create/modify a test case for a source program file in a local project, you can
use the Test Case Generation Configuration File window to specify a combined
configuration file, which includes the Test Case Generation Configuration File (XML), the Test Data
File (XML), and the Data Schema File (XSD) in a single .json file.
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)