Testing a DFDL schema by parsing test input data
You can test-parse sample data against your DFDL message model by using the DFDL Test Perspective.
Before you begin
About this task
Procedure
Results
- The DFDL Test Perspective opens, and the results of your test-parse are displayed in the DFDL Test - Parse view.
- You can view a log of parser actions in the DFDL Test - Trace view.
- You can view the logical instance in the DFDL Test - Logical Instance view, as a tree, or as XML.
What to do next
Next:
- You can continue to edit your DFDL schema by using the DFDL schema editor.
- You can generate a structural preview of a message from your DFDL schema; see Testing a DFDL schema by creating a logical instance.
- You can test-serialize data from your DFDL schema, see Testing a DFDL schema by serializing test output data.
- You can change the following settings, and then test-parse again
by clicking the Run Parser button in the DFDL
Test - Parse view.
- In the DFDL Test - Parse view, you can change the input data and encoding.
- In the Editor, you can select a different message to be test-parsed.
- If the DFDL schema is complete, you can add it to a BAR file for deployment; see Creating a BAR file.
Debugging
About this task
- An error message is displayed. The message summarizes the problem, and contains links to view the trace and partial logical instance that was created.
- The DFDL Test - Parse view shows the location of the error in the data. At the top of this view is a hyperlink that opens the DFDL Test - Trace view.
- The object in error is marked in the Editor with the following marker: . The error marker has hover help that provides information about the error. To clear the error marker, correct the model and then parse the data again. The error marker is also removed when you close the DFDL editor.
- The DFDL Test - Logical Instance view shows the infoset parsed up to the error.