[GIS] Solution for Test Automation for web gis/mapping application

browserleafletopenlayers-2testing

I've to find a solution for test automation for web gis/mapping application that using OpenLayers 2.x or Leaflet as javascript libraries.

I'm oriented on evaluate Selenium WebDriver (or other similar tools, suggestion? …): are there somewhere examples / tutorials / experiences or similar?

Best Answer

I've solved using Selenium Web Driver and OpenLayers 2.13.

For those that could be interested you can find some code examples here

https://github.com/cesaregerbino/TestSeleniumWebDriverOpenLayers (in italian)

The examples are the follow:

  • InterActiveZoomIn
  • MeasureAreaOpenLayers
  • IdentifyOpenLayers
  • GetFeatureInfoWMS
  • EditingOpenLayers
  • AreaProject

and, for each, there is the code and the buildfile.

You can find also a short video that shown the result.

I hope that this stuff could be useful.....