OpenTP1 Version 7 Tester and UAP Trace User's Guide

[Contents][Index][Back][Next]

10.6 Simulating OpenTP1 functions

The offline tester provides simulation functions which replace and have the same names as the functions provided by TP1/Server Base. These simulation functions can be used by linkage with the UAP.

The user can set the return values of the OpenTP1 functions in a function return value file. This facility enables set information to be returned to the UAP at completion of a simulation function. The facility operates if no error is detected when the offline tester performs the argument check. If an error is detected, the return code for the error is returned to the UAP.

For DAM and TAM-related functions, error return values set by the user are returned to the UAP. When a simulation function completes normally, however, the actual processing result is returned, not the set return value. That is, a return value set by the user is returned only if an error occurs during test processing.

For the tpsend and tprecv functions which use the XATMI interface, event names can be set in the function return value file. For TP1/Multi functions (function names beginning with dc_adm_get_xxx), the user can also set the output data (node ID and server name).

See Chapter 14. Simulation Functions in this part of the manual for details on the return values that can be set for each simulation function.

When using a function provided by TP1/Shared Table Access, be sure to specify an IST table used by the function in the offline tester environment definition at offline tester startup.