Automated Testing - Group home

Usability Improvements in ZUnit with IDz 16.0

  
Today, I am happy to talk about the new ZUnit test features that are available with the latest version of IBM Developer for z/OS, made generally available on Oct 14.

1. We have been looking at ways to simplify workspace setup. ZUnit now eliminates the need to set Dynamic Test Runner libraries in Preferences. We offer an option to automatically resolve the necessary libraries based on the RSE connection to z/OS. This option is turned on by default. For more information of configuration , see zee.env - the environment configuration file

2. There are times when the program being tested invokes the same sub program multiple times but with different sets of parameters for each call. ZUnit now allows you to select the parameter combination for each call. ZUnit identifies CALL statements in recording test data. If you see the data imported in multiple Call Lines, you can select Call Line for each record as well as sub system call statements.

3. With 15.0.2, it is possible to record and stub out QSAM files for COBOL programs. In 15.0.3, we have extended file support to VSAM KSDS files. Now you can turn on/off the functionality of using recorded file data for each test case without switching the Dynamic Test Runner libraries. File I/O capture must be turned off if you'd like to enter manual data for files without the recording feature.

4. When you run a testcase, the number of output records will be compared with that of captured records as well as output data value. If you skip evaluation for the specific expected output record, the difference of the record count would not be detected. This helps detect any variations in the code that cause a different number of records in the output. Let's say, we have three records for SUB1A in TEST1. You'll create TEST2 by duplicating TEST1 and set input data leading to SUB1A to be executed two times. With skip evaluation for Record3 of SUB1A, record count would not be compared for SUB1A in TEST2 and you'll see RC=0 in running the testcase.

We are looking to hear from you about these changes.
Finally, if you want to more learn about ZUnit, please visit Automated testing