Testing the Serializer

In the Test Message tab, test the performance of the serializer by serializing test data into a wire format message. The serializer test data can be obtained simply by testing the parser or by opening the results of a previous parse test.

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

    1. To create test data using the Test Parser frame:

      In the Test Message tab, test the parser to generate data to serve as serializer input.

    2. To use test data stored in a file:

      In the Test Serializer frame, click Browse to open one of the following:

      • A serialized Java schema object (*.jso file) saved from a parse test.

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

    Note

    You can save parse test results by clicking Save in the Test Parser frame.

  2. In the Test Serializer frame, select the Trace Performance check box if you want to display performance data for the serializer logic (Optional).

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

  4. Click Test.

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

    Explanation of test statistics

    Performance MetricExplanation

    Message size (bytes)

    For example, 105 bytes.

    Elapsed time (milliseconds)

    For example, 21 milliseconds.

    Number parsed

    For example, 100 iterations.

    Rate (messages per second)

    For example, 4762.0 at log level SEVERE.

    Note

    Open Window|Preferences|Sybase, Inc.|Message Designer|Miscellaneous preferences and select Logging levels to change the default logging level used for testing.

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

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

  7. Click the Performance Report tab to view the test performance results. You can select and copy text out of the Performance Report tab.

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