You can produce serialized test
data from your DFDL schemas by using the DFDL Test Perspective.
Before you start:
Create or open a DFDL schema file.
You can use the DFDL Test Perspective to test-serialize
sample data against your selected DFDL message to verify that the
DFDL schema is correct.
- Open the DFDL schema that you want to test.
- In the DFDL schema editor, expand the Messages section.
- Select the message that you want to test.
- Click Test serialize model, or right-click
the message that you want to test and click Test serialize
model. The Test Serialize Model window
opens.
- In the Serializer Input section,
select the location of the logical instance data that you want to
test-serialize:
- If you have a populated 'DFDL Test - Logical Instance' view, select Content
from 'DFDL Test - Logical Instance' to test-serialize
the data that is displayed there.
- If you do not have a populated 'DFDL Test - Logical Instance'
view:
- Select Content from a logical instance file.
- In the Input file name field, enter the
location of your file of logical instance data, or click Browse to
locate it.
- Enter Runtime encoding options as
required.
- Optional: Select Validate data against
schema to check for validation errors.
- If prompted, confirm that you want to open the DFDL Test Perspective.
- 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.