This example consists of six files: three COBOL programs (MFUT_TESTFLYER_FILE.cbl, GetFlyerLevel.cbl, and GetFlyerLevel.cpy), one .csv file (FrequentFlyerFile.csv), and two other files that contain additional data under test (lorem.txt and gettysburg.txt). The source code/text for all of these files can be found in the appendix.
This example is similar to a conventional data-driven test, except that the .csv file under test references some additional data in two other files. As long as these files are loaded, using MFU_GET_FILE, prior to the tests being run, the Micro Focus Unit Testing Framework acts as if the data is part of the .csv file.
cbllink -D MFUT_TESTFLYER_FILE.cbl GetFlyerLevel.cbl
mfurun -verbose:true MFUT_TESTFLYER_FILE.dll
The output should be similar to that shown below, indicating that the test passes. If FrequentFlyerFile.csv had embedded the additional information referenced using the @lorem.txt and @gettysbury.txt syntax, the tests would have exceeded permitted size limits, and failed.