Testing a Message Definition Serializer

After you create test data for a message definition, you can test the performance of its serializer using the Test Message tab of the Message Definition Editor. The output of this process is a serialized data file that contains the test data. The serializer test data can be obtained by testing the parser or by opening the saved results of a parser test.

To test the serializer:

  1. In the WorkSpace Navigator, double-click the message definition you want to work with.

    The message definition opens in the Message Definition Editor.

  2. Select the Test Message tab.

  3. To create test data, do one of the following:

    • Test the parser to create data to serve as serializer input.

    • Load test data from a file:

      1. In the Test Serializer section, click Browse.

      2. Open one of the following:

        • A .jso file saved from a previous parser test.

        • An XML instance document saved from a previous parser test.

          Note

          To save parser test results, click Save in the Test Parser section.

  4. (Optional) In the Test Serializer section, select the Trace Performance check box to display performance data for the serializer logic.

  5. (Optional) In the Number of iterations field, enter the number of test iterations, for example, 1000.

  6. Click Test.

    If successful, the serialized data is displayed in the results box with the following statistics.

    Test statistics

    FieldExample

    Message size (bytes)

    105 bytes

    Elapsed time (milliseconds)

    21 milliseconds

    Number parsed

    100 iterations

    Rate (messages per second)

    4762.0 at log level SEVERE.

    Note

    Open miscellaneous preferences and select Logging Levels to change the default logging level used for testing.

  7. (Optional) Use the arrow buttons to navigate within the test results.

  8. (Optional) Click Save to save the serialized wire format data to a text file.

  9. Select the Performance Report tab to view the test performance results.

  10. (Optional) To copy and paste text from the performance report, select text in the Performance Report tab and select Edit|Copy from the main menu bar.

Setting Miscellaneous Message Designer Preferences

Editing a Message Definition

Developing Custom Classes for Transforming Message Definition Fields

Custom Wire Formats

Troubleshooting Custom Wire Formats

Supported Character Sets

Supported Datatypes

Supported Datatypes for HL7 Messages

Supported Date and Time Format Codes

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com