Flow of input and expected output data

Understand how data in the Input and Expected output columns of the Test Case Editor flows between main programs and subprograms.

The test entry Input and Expected output columns represent the flow of data into and out of the main program, that is, the program being tested by ZUnit. When data is added to these columns in a subroutine, the flow of data is:
  • Input: data passed into the main program: that is, what is passed to the main program when the subroutine completes execution.
  • Expected output: data passed out of the main program: that is, what is passed to the subroutine when it is called by the main program.
The following example shows test entry data that is defined for a subprogram called SORTCHAR. Data in the Input column of the WORD_BUF_1 and WORD_BUF_2 parameters indicates the value set by the SORTCHAR subroutine that is input to the main program. It does not indicate input data to SORTCHAR. Data in the Expected column of the WORD_BUF_1 and WORD_BUF_2 parameters indicates data passed to SORTCHAR from the main program.
Test Case Editor with data in SORTCHAR records