Testing a Message Definition Serializer

After you create test data for a message definition, you can test the performance of its serializer.

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.

  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:
    Option Action
    To create data to serve as serializer input Test the parser.
    To 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.
    3. 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.
    Table 1. Test statistics
    Field Example
    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 the text in the Performance Report tab, then select Edit > Copy from the main menu bar.
Related concepts
Custom Wire Formats
Related tasks
Editing a Message Definition
Testing a Message Definition Parser
Developing a Custom Class to Transform a Message Definition Field
Related reference
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 Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.