opengeospatial / ets-wms13

Repository for the Exectutable Test Suite for WMS 1.3.0
Apache License 2.0
2 stars 4 forks source link

Issues about the Compliance Testing #77

Closed zssai closed 3 years ago

zssai commented 4 years ago

I publish a WMS service, and test it with the online Team Engine, however, I can't get the image. By checking the requests, I find that the parameter LAYERS passed to the getMap operation is empty. you can test it with the service: https://ags.geoq.cn/arcgis/services/test/CiteWMS/MapServer/WMSServer?request=GetCapabilities&service=WMS&version=1.3.0 Why the value of the LAYERS is empty? Requests

dstenger commented 4 years ago

Thank you for reporting.

@keshav-nangare Can you please analyze the reported behavior?

keshavnangare commented 4 years ago

@dstenger

The reported request is submitted for basic:basic-polygons-sanity-check test and layers are extracted from the service using //wms:Layer[wms:Title = 'cite:BasicPolygons']/wms:Name XPath. It fails to get value as the given service contains the layer title in the CDATA element as you can see below.

image

Is it a valid way to define and please guide me on this?

dstenger commented 4 years ago

@keshav-nangare Can you please check if wms:Name can be used to identify the layer instead as the name must not be CDATA? If this is possible, please create a fix and pull request.

keshavnangare commented 4 years ago

@dstenger

I have updated XPath to identify layer using wms:Name and tested these changes successfully on my machine. Please find the changes in #78 PR.