10

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?

blah238
35.9k8 gold badges97 silver badges204 bronze badges
asked Jun 12, 2015 at 13:44
8
  • are you trying to test the clients (OpenLayers/Leaflet) or the Server? Commented Jun 12, 2015 at 15:59
  • @iant this is definitely about browser-based testing. Commented Jun 12, 2015 at 21:31
  • 1
    Related: gis.stackexchange.com/questions/129505/… Commented Jun 12, 2015 at 21:39
  • @iant: I need to test clients ... Commented Jun 13, 2015 at 19:08
  • @blah238 your link refers suggestions about ESRI JS API that is not my solution. I'll read it anyway could be that there is something that could be useful Commented Jun 13, 2015 at 19:11

1 Answer 1

2

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.....

answered Jan 8, 2016 at 12:40
2
  • 1
    From a quick look at your code, it seems there is no automated test outcome verification. In other words a tester has to sit in front of the screen to verify correct behavior, right? Commented Jul 26, 2016 at 14:33
  • Yes. Note that my code is only a "sample code" useful to show the principles.In a "real" code you can implement all the behaviours you like: in my code I just write something in my cmd console (and note that all the tests are ok ....), but I could implement something like send an email to someone, write the results of each action in a database, ecc... Commented Jul 26, 2016 at 16:13

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.