OpenTP1 Version 7 Tester and UAP Trace User's Guide
By creating a test data definition file, the user can easily create tester files using the tester file creation facility.
A test data definition file can have any name. The following tester files can be created from a test data definition file:
To create a test data definition file:
# comment ...........1. start tester-file-identifier tester-file-type output-file-name ...........2. keyword = input-data ...........5. keyword = input-data sep ...........3. keyword = input-data : : : : keyword = input-data end ...........4. |
Note that the italicized numbers above correspond to the numbers under (3) Explanation below.
Enables tester files to be created by tester file creation command from the test data defined in the definition file.
One line in the definition file can be up to 512 bytes in length, including the line feed code.
The formats of user input data are described below.
Set the data length of user data as fixed-information data in the following format:
data_len=bytes |
If the user data exceeds the value set in data_len, the message is truncated at output. If the user data is less than the value set in data_len, no further data can be set.
Example:
Use the tester file creation command to initialize the user data in the specified data length.
Set character data in the following format:
data='data' |
Do not add a null character to the end of character data.
Example:
Set binary data in the following format:
data=data |
Data can be written in decimal and hexadecimal notation, as follows:
Binary data is set as the int datatype.
Line feed codes, tab codes, null characters, apostrophes ('), and the \ symbol are handled as special characters in character data. Specify these characters as follows:
Special character | Coding format |
---|---|
Line feed code | \n |
Tab code | \t |
Null character | \0 |
' | \' |
\ | \\ |
To load user data from a file, set the data in the following format:
data=(file) file-pathname |
User data can be set from any position, using the following format:
data=[offset-from-start-of-user-data] data |
Example:
When using two or more data types, set the user data in the following format:
data=data =data : : |
When different data types are specified, the tester file creation command automatically sets the second data at the boundary of the first data. However, boundary alignment is not performed when:
Example:
The following tables list the keywords and formats of the corresponding input data for each tester file.
For details about the type of information to be specified, see the description of each tester file in Section 3.3 User-created files.
Table 3-5 Keywords and input data formats for RPC request data files
Keyword | Information | Explanation |
---|---|---|
out_len | Response area length | Length of the response area for the dc_rpc_call function. Specify a decimal or hexadecimal. Set before data. |
data_len | Data length | Length of the user data to be passed to the server UAP by the dc_rpc_call function. Specify a decimal or hexadecimal. Set before data. |
data | Data | User data to be passed to the server UAP by the dc_rpc_call function. |
Table 3-6 Keywords and input data formats for XATMI request data files
Keyword | Information | Explanation |
---|---|---|
call_kind | Call type | Type of service request function. Set one of the following character strings:
|
buff_type | Buffer type | Set one of the following character strings:
|
sub_type | Buffer subtype | Specify a string of up to 16 characters.
|
flag | Flags | One or more flags to be passed to the service function. Set any of the following character strings and delimit with vertical lines (|):
|
data_len | Data length | Length of the user data to be passed to the server UAP by the tpcall, tpacall, or tpconnect function. Specify a decimal or hexadecimal. Set before data. |
data | Data | User data to be passed to the server UAP by the tpcall, tpacall, or tpconnect function. |
Table 3-7 Keywords and input data formats for RPC response data files
Keyword | Information | Explanation |
---|---|---|
data_len | Data length | Length of the user data to be returned to the client UAP at completion of a service. Specify a decimal or hexadecimal. Set before data. |
data | Data | User data to be returned to the client UAP at completion of a service. |
Table 3-8 Keywords and input data formats for XATMI response data files
Keyword | Information | Explanation |
---|---|---|
buff_type | Buffer type | Set one of the following character strings:
|
sub_type | Buffer subtype | Specify a string of up to 16 characters.
|
rval | Service termination code | Specify one of the following character strings:
|
rcode | Return code | Specify a decimal or hexadecimal. Set before data. |
data_len | Data length | Length of the user data to be returned to the client UAP at completion of a service. Specify a decimal or hexadecimal. Set before data. |
data | Data | User data to be returned to the client UAP at completion of a service. |
Table 3-9 Keywords and input data formats for XATMI receive data files
Keyword | Information | Explanation |
---|---|---|
buff_type | Buffer type | Set one of the following character strings:
|
sub_type | Buffer subtype | Specify a string of up to 16 characters.
|
event | Event flag | Event flag to be passed to the tprecv function. Specify one of the following character strings:
|
data_len | Data length | Length of the user data to be passed to the tprecv function. Specify a decimal or hexadecimal. Set before data. |
data | Data | User data to be passed to the tprecv function. |
sep | sep statement | Write at the end of the data for one service when coding data for a number of services. Do not set at the end of the final data. |
Table 3-10 Keywords and input data formats for asynchronous receive message files
Keyword | Information | Explanation |
---|---|---|
termname | Input/output logical terminal name | Name of the I/O logical terminal to be passed to the dc_mcf_receive function. Specify a string of up to 8 characters. Set before data. |
mapname | Map name | Map name to be passed to the dc_mcf_receive function. Specify a string of up to 8 characters. Set before data. |
seg_kind | Segment type | Segment type to be passed to the dc_mcf_receive function. Specify one of the following characters:
|
data_len | Message length | Length of the user data in the segment to be passed to the dc_mcf_receive function. Specify a decimal or hexadecimal. Set before data. |
data | Message | User data in the segment to be passed to the dc_mcf_receive function. |
Table 3-11 Keywords and input data formats for synchronous receive message files
Keyword | Information | Explanation |
---|---|---|
termname | Input/output logical terminal name | Name of the I/O logical terminal to be passed to the dc_mcf_recvsync and dc_mcf_sendrecv functions. Specify a string of up to 8 characters. Set before data. |
mapname | Map name | Map name to be passed to the dc_mcf_recvsync and dc_mcf_sendrecv functions. Specify a string of up to 8 characters. Set before data. |
seg_kind | Segment type | Segment type to be passed to the dc_mcf_recvsync and dc_mcf_sendrecv functions.Specify one of the following characters:
|
data_len | Message length | Length of the user data in the segment to be passed to the dc_mcf_recvsync or dc_mcf_sendrecv function. Specify a decimal or hexadecimal. Set before data. |
data | Message | User data in the segment to be passed to the dc_mcf_recvsync or dc_mcf_sendrecv function. |
sep | sep statement | Write at the end of the data for one message when coding data for a number of messages. Do not set at the end of the final data. |
Table 3-12 Keywords and input data formats for operating command result data file
Keyword | Information | Explanation |
---|---|---|
status_code | Operating command result code | Specify a result code returned from the operating command in decimal or hexadecimal. Set before data. |
outsize | Message length for standard output | Length of the message output by operating command to standard output. Specify a decimal or hexadecimal. Set before data. |
errsize | Message length for standard error output | Length of the message output by operating command to standard error output. Specify a decimal or hexadecimal. Set before data. |
data | Character string for standard output | Message output by operating command to standard output. Set character data. |
data | Character string for standard error output | Message output by operating command to standard error output. Set character data. |
sep | sep statement | Write at the end of the data for one command when coding data for a number of commands. Do not set at the end of the final data. |
All Rights Reserved. Copyright (C) 2006, 2010, Hitachi, Ltd.