Pages

Wednesday

Schema Lightener undergoes heavy testing

The Xml Schema Lightener is coming along quite nicely. I've been gathering as many test cases as I can to put a significantly updated version through trials. It is designed to lighten a schema (some call it "prune" or "filter" or "creating a view of") based on an xml instance. Here are the test cases I've run:
  • 127 test cases ... HR-XML (Human Resources Xml) v. 2_5
  • 58 test cases ... HR-XML (Human Resources Xml) v. 3.0 (draft)
  • 494 test cases ... OAGi (Open Applications Group) v. 9.2
  • 141 test cases ... STAR (Standards for Technology in Automotive Retail) v. 5.1.4
  • 56 test cases ... CIDX (Chemical Industry Data eXchange) v. 4.0
  • 96 test cases ... ACORD (Insurance Data Standards) v. 2.9
  • 289 test cases ... OTA (Open Travel Alliance) v. 2003-05
  • 41 test cases ... TWIST (Transaction Workflow Innovation Standards Team) v 3.1
In total, that is 1,302 test cases. All of them are lightened correctly. All of them result in valid xml schemas. All of the original test xml validates against the resulting schema. 100%!

This process has really helped me increase the quality of this tool. It is a great resource for removing components that are never used from an xml schema.

2 comments:

  1. One thing that should be done in this pipeline transformation is to make sure that the input XML is first valid against the Original unlightened schema, and generate a sample xml from the lightened schema and make sure it still validates against the original. Otherwise there are potential interoperability issues.

    Great to see that the STAR 5.1.4 schemas were included in the tests.

    ReplyDelete
  2. Thanks Dave. I have validated the original xml against the original schema. There are no problems there. As for generating xml from the result and validating against the original schema, I have done spot checking on this and no problems have arisen. I don't have it automated so that all cases are checked, but the hand checking I've done have shown no problems.
    Thanks for your comments.

    ReplyDelete