Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 2.29 KB

A.40.IR67.IR68.language.affects.capabilities.md

File metadata and controls

38 lines (26 loc) · 2.29 KB

A.40.IR67.IR68.language.affects.capabilities

Purpose: The user must be able to select one of the supported languages. This language selection must be reflected in the provided capabilities document.

Prerequisites

Test method

  • Let the value of GetCapabilities OnlineResource be getcapabilities-url.
  • For each SupportedLanguage codes as lang-code:
    • Create a GetCapabilities HTTP request by adding the parameters SERVICE=WMS, REQUEST=GetCapabilities, VERSION=1.3.0 and LANGUAGE= + lang-code to the getcapabilities-url
    • Execute the request. If the returned resource can be parsed as a valid XML document and if the document passes tests A.03.IR05.schema.validation and A.06.IR08.language.node:
      • Check that the ResponseLanguage code equals the lang-code. If it does not, fail the test for this language.
    • Otherwise fail the test.
  • If the test for any of the languages failed, fail the test. Otherwise pass the test.

Reference(s):

Test type: Automated

Notes

Contextual XPath references

The namespace prefixes used as described in README.md.

Abbreviation XPath expression
SupportedLanguage codes /wms:WMS_Capabilities/wms:Capability/inspire_vs:ExtendedCapabilities[1]/inspire_common:SupportedLanguages/inspire_common:SupportedLanguage/inspire_common:Language
ResponseLanguage code /wms:WMS_Capabilities/wms:Capability/inspire_vs:ExtendedCapabilities[1]/inspire_common:ResponseLanguage/inspire_common:Language
GetCapabilities OnlineResource /wms:WMS_Capabilities/wms:Capability/wms:Request/wms:GetCapabilities/wms:DCPType/wms:HTTP/(wms:Get|wms:Post)[1]/wms:OnlineResource/@xlink:href