Create/modify a test case from ANAGRA2.pli

Use the Create/modify a test case window to create/modify a test case from the ANAGRA2.pli sample program.

Creating or modifying a test case

Before you begin

This procedure uses a sample program included with the product. It also uses a remote z/OS® project that was created by the sample setup procedure. Before using this procedure, set up the sample file and project by using the instructions in Setup instructions.

Procedure

  1. In the z/OS Projects view, expand ZUnit Enterprise PL/I test data samples > sample > <HLQ>.ZUNIT.PLI.
  2. Right-click the ANAGRA2.pli source file and click z/OS Automated Unit Testing Framework (ZUnit) > Generate Test Case.
    The Create/modify a test case window opens.
    Create/modify Test Case window
  3. In the Test case name and Test case description fields, type AZUTC005.
  4. Optional: Click Options.
    The Preferences window opens. The Data set name, Test data layout, and Test data fields are populated with default data set names that are defined in the property group that is associated with the project.
  5. Click OK.
  6. Click Next.
  7. To edit the test data for this test case, click Next.
    The Create/modify a test case window closes and the Test Case Editor opens. It displays the data records defined in the ANAGRA2.pli source file and columns for input data and expected output data for the TEST1 test.
    Test Case Editor

Results

The Create/modify a test case wizard generates the following generation configuration and test data layout (XSD) files and stores them in the locations that are defined in the property group:
  • ANAGRA2.xml: The test case generation configuration file stores information that you enter into the Generate a test case window, information that you enter in the Test Case Editor, and information about files that are generated by ZUnit.
  • *.xsd: Test data layout files define the XML schema for the test data files that are generated when you enter test data into the Test Case Editor.
Generation configuration and test data schema files

What to do next

Add data to the AZUTC005.pli test case