Testing the Parser

After creating test data, test the performance of the parser. When finished, you can use the resulting parse test results to test the serializer, if necessary.

  1. Save the message definition by clicking Save Ctrl+S or pressing Ctrl+S.

  2. In the Test Message tab, in the Enter Sample Data frame, click Browse to specify the test message file.

  3. In the Test Parser frame, select the Trace Performance check box if you want test results (see Performance Metrics table below) output to the log (Optional).

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

  5. Click Test.

    If successful, the structured data is displayed in the Parse Tree, along with the following statistics:

    Performance MetricExplanation

    Message size (bytes)

    For example, 113 bytes.

    Elapsed time (milliseconds)

    For example, 30 milliseconds.

    Number parsed

    For example, 100 parse iterations.

    Rate (messages per second)

    For example, 3334.0 at log level SEVERE.

    Note

    Open Message Designer|Miscellaneous preferences and select Logging levels to change the log level used for testing.

  6. Save the parse results for later use in Testing the Serializer, if applicable, by clicking Save in the Test Parser frame.

    If you are immediately using the unedited parse results to test the serializer, you do not need to save the parse results.

    1. To save the parse results as an XML document, select Save as XML. Save as XML only if you you need to open the data in a different application.

    2. To save as a serialized data object, select Save as serialized data object. Save as a serialized data object unless you need to open the data in a different application.

      The file is saved with a .jso suffix.

Next: Test the serializer, if your application requires one.

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