Revision History | |
---|---|
Revision 0.1 | 2007-12-14 |
Draft containing abstract test cases for WFS-XLink conformance. |
Overview
This document is an abstract test suite (ATS): a compendium of test assertions pertaining to implementations of the Web Feature Service (WFS) specification, version 1.1. It provides a basis for developing an executable test suite (ETS) to verify that the implementation under test (IUT) conforms to all applicable functional specifications.
The assertions (abstract test cases) are gleaned from a set of specification documents; the dependencies among these specifications are shown in Figure 1, “WFS 1.1 dependencies”, where each specification is represented as a UML package.
The abstract test cases are organized into test groups (conformance levels) that reflect distinct sets of capabilities. Three conformance levels are distinguished:
WFS-Basic (required) - Provides facilities for searching and retrieving feature data
WFS-Transaction - Provides facilities for managing (inserting, updating, deleting) feature data
WFS-XLink - Provides facilities for resolving links between related resources.
Source documents
Table of Contents
Table 1. GetGmlObject request
Test case identifier | http://www.opengis.net/wfs/1.1/atc/xlink/GetGmlObject |
Test purpose | Confirm that the GetGmlObject request has been implemented if the IUT claims to support XLink resolution. |
Test method | Pass if the GetGmlObject request is implemented using POST or GET methods; fail otherwise. |
Reference |
|
Test type | Capability |
Table 2. GetGmlObject - Exceptions
Test case identifier | http://www.opengis.net/wfs/1.1/atc/xlink/GetGmlObject-Exceptions |
Test purpose | Verify that exceptions arising while processing GetGmlObject requests are correctly reported. An exception must be returned in response to any of the following situations: |
Test method | Pass if all of the identified cases yield an exception report; fail otherwise. |
Reference |
|
Test type | Capability |
Table 3. XLink resolution
Test case identifier | http://www.opengis.net/wfs/1.1/atc/xlink/XLinkResolution |
Test purpose | Verify that an XLink reference has been resolved correctly. All of the following conditions must be true after successfully resolving an XLink reference:
|
Test method | An XLink reference is resolved if the expected target resource is retrieved and inserted; otherwise an exception must be reported (see Target resource not found). |
Reference |
|
Test type | Capability |
Table 4. XLink resolution - Depth
Test case identifier | http://www.opengis.net/wfs/1.1/atc/xlink/XLinkResolution-LinkDepth |
Test purpose | Verify that links are resolved to the correct depth. XLink references must be resolved to a depth corresponding to one of the following cases: |
Test method | Pass if all assertions are satisfied; fail otherwise. |
Reference |
|
Test type | Capability |
Table 5. XLink resolution - Domain
Test case identifier | http://www.opengis.net/wfs/1.1/atc/xlink/XLinkResolution-Domain |
Test purpose | Confirm that links in supported domains are processed. An XLink reference is processed only if its domain (as indicated by the authority component of the @xlink:href value) is supported; otherwise an exception is reported (see Unsupported URI domain). |
Test method |
The capabilities document must indicate whether local and/or remote
domains are supported using the |
Reference |
|
Test type | Capability |
Table 6. GetFeature - Non-selective XLink resolution
Test case identifier | http://www.opengis.net/wfs/1.1/atc/xlink/GetFeature-NonSelectiveXLinkResolution |
Test purpose | Confirm that non-selective XLink resolution is supported for the
GetFeature request. All XLink elements in a GetFeature response are
resolved according to the value of the traverseXlinkDepth
request parameter (see XLink resolution - Depth) |
Test method | Pass if the assertion is satisfied; fail otherwise. |
Reference |
|
Test type | Capability |
Table 7. GetFeature - Selective XLink resolution
Test case identifier | http://www.opengis.net/wfs/1.1/atc/xlink/GetFeature-SelectiveXLinkResolution |
Test purpose | Verify that selected link elements are processed as requested in a
GetFeature response. An XLink element (feature property) specified by the
value of the <wfs:XlinkPropertyName> element is processed according
to the values of the traverseXlinkDepth and traverseXlinkExpiry
parameters specified either (1) for this feature property, or (2)
globally for the request as a whole. |
Test method | Pass if XLink properties are selectively resolved in a GetFeature request context; fail otherwise. |
Reference |
|
Test type | Capability |