Testing a Message Definition Parser

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

You can use the parser test results to test the serializer, if necessary.

  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. In the Enter Sample Data section, click Browse to specify the test message file.
  4. (Optional) In the Test Parser section, select the Trace Performance check box if you want test results output to the log.

    For details, see the test statistics table in step 6.

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

    For example: 1000

  6. Click Test.

    If successful, the test data is displayed in the Parse Tree with the following statistics.

    Table 1. Test statistics
    Field Example
    MessageSize (bytes) 113 bytes
    Elapsed time (milliseconds) 30 milliseconds
    Number parsed 100 parse iterations
    Rate (messages per second) 3334.0 at log level SEVERE
    Note: Open miscellaneous preferences and select Logging Levels to change the default log level used for testing.
  7. (Optional) Save the parser test results for later use in testing the serializer.
    1. Click Save in the Test Parser section.

      The Save Parse Test Results dialog box opens.

    2. Enter or select the parent folder.
    3. Enter the file name.
    4. Choose one of the following from the Save file as XML or serialized data object (*.jso) menu:
      Note: If you are immediately using the unedited parse results to test the serializer, you do not need to save the parse results.

      • Save as XML to save the parse test results as an XML document.

        Save as XML only if you need to open the data in an application other than Sybase WorkSpace.

      • Save as serialized data object to save the parse test results as a serialized data object.

        Always save as a serialized data object unless you need to open the data in an application other than Sybase WorkSpace.

      The parse test results file is saved with a .jso extension.
    5. Click OK.
Related concepts
Custom Wire Formats
Related tasks
Entering Message Definition Test Data
Testing a Message Definition Serializer
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.