Technical experts from the IBM Transaction Processing Facility (TPF) Development Lab share knowledge and information about the TPF product set - including z/TPF, z/TPF Database Facility (z/TPFDF), TPF Operations Server, and the TPF Toolkit.
Building on the z/TPF automated test framework that was provided by APARs PJ45488 and PJ43782, this APAR provides support for you to test more complex application code and automate more of your testing by using overrides and intercepts.
PJ45801 provides the following support:
The TPF_TC_OVERRIDE macro overridesthe call to a user function, system function, ora 4-character program name.An override redirects the call back to a function that is defined within the test case logic. You can also pass data to the override function in the test case logic and limit the scope in which the function is overridden.
The TPF_TC_INTERCEPT macro intercepts the call to a function, return from a function, or whenever a call is made froma function. Both user and system functions are supported as well as 4-character program names. An intercept redirects the call, return, or call from a function that is defined within the test case logic before calling the intended target. You can also pass data to the intercept function in the test case logic and limit the scope in which the function is intercepted.
The TPF_TC_COMPLETE macro completesa test case. Use this macro with intercept routines to limit the scope of the application that you are testing and for call and exit or call and drop program models.
The C/C++ compiler option -D TPF_PRD_BLD eliminates testcase code in an object when building the code for use on a production system.
For more information about PJ45801, see the APEDIT.