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?
-
are you trying to test the clients (OpenLayers/Leaflet) or the Server?Ian Turton– Ian Turton2015年06月12日 15:59:37 +00:00Commented Jun 12, 2015 at 15:59
-
@iant this is definitely about browser-based testing.blah238– blah2382015年06月12日 21:31:17 +00:00Commented Jun 12, 2015 at 21:31
-
1Related: gis.stackexchange.com/questions/129505/…blah238– blah2382015年06月12日 21:39:33 +00:00Commented Jun 12, 2015 at 21:39
-
@iant: I need to test clients ...Cesare– Cesare2015年06月13日 19:08:08 +00:00Commented 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 usefulCesare– Cesare2015年06月13日 19:11:19 +00:00Commented Jun 13, 2015 at 19:11
1 Answer 1
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.....
-
1From 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?a1an– a1an2016年07月26日 14:33:50 +00:00Commented 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...Cesare– Cesare2016年07月26日 16:13:50 +00:00Commented Jul 26, 2016 at 16:13
Explore related questions
See similar questions with these tags.