This test suite validates KML 2.2 documents according to the following specifications:
Three conformance levels are defined, where each level builds upon the lower level by adding additional constraints. Level 2 extends Level 1, and Level 3 is based on Level 2. A conforming implementation must produce documents that validate at level 1 in order to obtain an OGC compliance certificate.
The test suite implements the test cases defined in the abstract test suite (ATS). The Java implementation classes generally correspond to a logical theme. For example the TemporalElementTests class realizes the following test cases:
All of the test cases are described in the ATS. More details about the implementation are explained in the next section.
The TestNG suite definition file (testng.xml) is located in the root package, org.opengis.cite.kml22. A conformance class corresponds to a <test> element; each test element includes a set of test classes that contain the actual test methods. The essential structure of the test suite is shown in Table 1.
|Conformance class||Test classes|
The Javadoc documentation provides more detailed information about the test classes and test methods that comprise the suite.
The test suite may be run in any of the following environments:
The test run arguments are summarized in Table 2. The value domain is expressed in terms of XML Schema datatypes for convenience. The Obligation descriptor can have the following values: M (mandatory), O (optional), or C (conditional).
|iut||anyURI||M||A URI that refers to the instance document under test. Ampersand ('&') characters must be percent-encoded as '%26'.|
|ics||positiveInteger||O||Indicates which conformance level (1-3) will be used to validate the instance document. If not specified, the lowest conformance level will be checked (ics=1).|