W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2003

XML Schema Unit Test (SUT)

From: <Gavin.Kingsley@energy.invensys.com>
Date: Mon, 24 Mar 2003 09:55:15 +1200
To: xmlschema-dev@w3.org
Message-ID: <OF5A6DB09A.EA2AFE9B-ONCC256CF2.007791A7@psd.invensys.com>

Schema Unit Test (SUT) introduces a framework for testing XML Schema. It is
free, open source, and available at http://sut.sourceforge.net/.

This framework has two parts.

The first is a namespace and vocabulary for embedding test cases into
sample XML documents, designed to highlight what is legal and what is not
legal in the vocabulary defined in the schema under test. This aspect is
independent of what schema language is used and can in theory be applied to
any schema language with automatic validation tools.

The second part is a Java implementation using JUnit for testing a W3C
Schema with embedded Schematron schema. This implementation reads SUT test
suite descriptions written in XML with embedded test cases as described
above and then creates a JUnit test suite that can be executed inside JUnit
in the usual way. Although SUT is written to use JUnit, no specialise Java
or JUnit knowledge is required to run SUT test suites.

An example is provided based on the purchase order schema from the W3C

Gavin Kingsley.

Gavin Kingsley
Software Engineer
Invensys Energy Systems (NZ) Limited, 39 Princess St, PO Box 11-188
Christchurch 8030, New Zealand
Phone: (++64) 3 343-3314, Fax: (++64) 3 343-5100
E-mail: gavin.kingsley@energy.invensys.com
Website: http://www.powerware.com/New_Zealand/
Received on Sunday, 23 March 2003 17:04:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:09 UTC