Testing an Operation

You can test an operation and its parameters to ensure that all components are functioning properly before you make the operation available to the clients.

Once an operation is exported you can test it. If the test fails and editing is required to fix the operation, you do not have to unexport the operation prior to editing.

The operation test window allows you to test previously defined operations to verify their function against the service implementation. The window contents are based on the number and type of parameters the operation expects. If an operation has multiple parameters and cannot be viewed on one screen, a scrollbar displays to navigate through the parameters.

Figure 3-31 Test Operation Window

Table 3-8 Test Operation

Field Description

Operation

The name of operation that you selected to be tested.

TUXEDO Service

The name of the associated BEA TUXEDO service.

Input Buffer and Output Buffer

All buffer types are supported.

VIEW - a C-structure and 16-bit integer field. Contains subtypes that have a particular structure.

VIEW32 - similar to VIEW, except 32-bit FML field identifiers are associated with VIEW32 structure elements.

CARRAY - an array of interpreted binary data that is neither encoded nor decoded during transmission; it may contain null characters. X_OCTET is equivalent.

FML - a type in which each field carries its own definition.

FML32 - similar to FML, except 32-bit field identifiers are associated with FML32.

STRING - a character array terminated by a null character that is encoded or decoded.

NONE - placeholder indicating that no input or output is required.

Parameter text fields

The parameter information text entry field. The fields that display in the test window are dependent on the operation you are testing. Based on the passing mode, these fields are writable or read-only. Fields are disabled if read-only.

OK

Runs the operation.

Clear

Clears all fields and resets the scrollbar to the top (if a scrollbar is present).

Cancel

Exits the window.

Guidelines for Inputting Data

Test Operation Instructions

To test an operation:

  1. Select the operation to test.

  2. Choose Edit -> Test from the menu bar

    Or

    Click on the Test toolbar button.

  3. Input data in the Operation test window parameter text field.

  4. Click OK. The message, "Test Complete," displays if the test passes. If the test fails, a message displays in the Alert window.

    Follow the instructions below if editing is required to pass the test.

    1. Return to the main window and select the operation, parameter, struct or element that requires editing.

    2. Choose Edit->Modify from the menu bar.