Purpose: Test that in each layer, the layer name is mapped into the Name element.
Prerequisites
Test method
-
Send a getCapabilities request to the service endpoint. Into the response:
-
For each named Layer element:
-
Check that exactly one Layer Name element is provided and it has a non-empty value.
-
Check that Layer Name is unique.
-
-
Reference(s):
Test type: Automated
Notes
The multiplicity of this element is 1 for each named Layer.
A Layer that contains a Named child element is a 'named Layer'.
Contextual XPath references
The namespace prefixes used as described in README.md.
Abbreviation | XPath expression (relative to /wms:WMS_Capabilities) |
---|---|
Layer | wms:Capability/*/wms:Layer |
Layer Name | wms:Capability/*/wms:Layer/wms:Name |