Skip to content

Latest commit

 

History

History
39 lines (22 loc) · 1.51 KB

at47-getcapabilities-layer-style-legend-url.md

File metadata and controls

39 lines (22 loc) · 1.51 KB

Layer Style Legend URL

Purpose: Test that a legend is provided into LegendURL element for each style and supported language defined in the View Service.

Prerequisites

Test method

  • Send one getCapabilities request to the service endpoint for each supported language. Each request has its corresponding language parameter. Into each response:

    • For each Style element:

      • Check that zero or one LegendURL element exists. If a legend is provided,

        • Check that the node has an 'OnlineResource' child element with a 'xlink:href' attribute.

          • Send a request to the url pointing to the legend.

            • Check that the reponse is a valid image.
  • Check manually that the provided legend is in the correct language.

Reference(s):

  • TG VS, Chapter 4.2.3.3.4.8 and 4.2.3.3.4.9, Requirement 47

Test type: Automated / Manual

Notes

The multiplicity of this element 0 or 1 for each style and each supported language.

Contextual XPath references

The namespace prefixes used as described in README.md.

Abbreviation XPath expression (relative to /wms:WMS_Capabilities)
Style wms:Capability/*/wms:Layer/*/wms:Style
LegendURL wms:Capability/*/wms:Layer/wms:Style/wms:LegendURL