Applying FIX dictionaries to messages

Once your FIX dictionary is added to HCL OneTest™ API, you can apply the FIX dictionary to messages in applicable test actions (that is, to text nodes).

About this task

To apply an existing FIX dictionary to a message, follow these steps:

Procedure

  1. Create a test in an operation that contains a reference to a transport that supports text messages.
  2. Add an outbound or inbound messaging action to the Test Steps phase of the test (for example, Publish, Send Request).
    A Send Request message is added to the Test Steps.
  3. Open the messaging action for editing.
  4. Select a transport and Text formatter.
  5. In the message area, right-click the text (String) element and select Schema from the pop-up menu.
  6. In the Schema Selector window, Schema Type field, select Business & Finance > FIX Dictionary. A list of schemas and roots is displayed, based on FIX schemas that have been previously imported into the Schema Library.
  7. No Formatter Properties are used with FIX dictionaries.
  8. In the Content Options section, select or clear the following options as needed:
    Retain existing content
    Select this option to apply a schema or expand a field without losing the original data. If the attempt to use the original data fails, the data is displayed with red Xs. If you clear this option, data is cleared before the new schema is applied. In cases where the data is assumed to be retained, this option is not displayed.
    Include Text nodes
    Select this option to generate Text nodes with the message.
    Include optional nodes
    If the schema includes optional fields, select this option to add them to the message.
    Before HCL OneTest™ API version 8.7, additional options were displayed when you applied a schema to a message:
    • Accept fields in any order
    • Ignore missing fields in received message
    • Ignore additional fields in received message
    • Enable validation of time-based fields

    These options can be set in the project preferences. Click Project > Preferences > Message.

  9. Click OK. The schema is applied to the original message, including the structure and content that is defined in the selected dictionary and root.
    The message with the FIX dictionary applied
    For more information, see Applying schemas and formats to messages.
Feedback