Testing a DFDL schema by serializing test output data
You can produce serialized test data from your DFDL schemas 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-serialize are displayed in the DFDL Test - Serialize 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.
- You can change the following settings, and then test-serialize
again by clicking the Run Serializer button
in the DFDL Test - Serialize view.
- In the DFDL Test - Serialize view, you can change the logical instance and encoding.
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-parse sample data against your DFDL schemas, see Testing a DFDL schema by parsing test input data.
- You can change the following settings, and then test-serialize
again by clicking the Run Serializer button
in the DFDL Test - Serialize view.
- In the DFDL Test - Serialize view, you can change the logical instance and encoding.
- 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 output.
- The DFDL Test - Serialize 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.