Purpose: Test that each style has a unique identifier mapped to Identifier element and if a human-readable name is included, it is mapped to Title element.
Prerequisites
Test method
-
Send a getCapabilities request to the service endpoint. Into the response:
-
Check that the layer styles are mapped into the Style element.
-
For each Style element:
- Check that the Unique Identifier is mapped to the Identifier element.
- Check that the unique identifier is unique within the style elements of the layer.
If a human-readable name is mapped to Title element:
- Check that Title element has a non-empty value.
- Check that the Unique Identifier is mapped to the Identifier element.
-
Reference(s):
- TG VS, Chapter 5.2.3.3.4.8, Requirement 90
Test type: Automated
Notes
The multiplicity of the Identifier element is 1 in each style. The multiplicity of the Title element is 0 or more in each style.
Contextual XPath references
The namespace prefixes used as described in README.md.
Abbreviation | XPath expression (relative to /Capabilities) |
---|---|
Style | Contents/Layer/Style |
Title | Contents/Layer/Style/ows:Title |
Identifier | Contents/Layer/Style/ows:Identifier |