diff --git a/tests/selenium/remotecontrol/config.cfg b/tests/selenium/remotecontrol/config.cfg index ef2103b168..4ede868a34 100644 --- a/tests/selenium/remotecontrol/config.cfg +++ b/tests/selenium/remotecontrol/config.cfg @@ -1,3 +1,12 @@ +[config] +server=http://openlayers.org/ +url=/dev/tests/run-tests.html?run=all + +[safari] +host=localhost +browserCmd=safari +comment=Safari 3 on OS X 10.5 + [ie6-winxp] host=208.80.142.184 browserCmd=iexploreproxy C:\Program Files\MultipleIEs\IE6\iexplore.exe diff --git a/tests/selenium/remotecontrol/test_ol.py b/tests/selenium/remotecontrol/test_ol.py index dc750bbf04..a616c9d2ce 100644 --- a/tests/selenium/remotecontrol/test_ol.py +++ b/tests/selenium/remotecontrol/test_ol.py @@ -15,8 +15,13 @@ c.read(filename) targets = {} +server = c.get('config', 'server') +url= c.get('config', 'url') + sections = c.sections() for s in sections: + if s == 'config': + continue targets[s] = dict(c.items(s)) targets[s]['name'] = s @@ -32,10 +37,10 @@ else: if 1: for b in browsers: print "Running %s on %s" % (b['name'], b['host']) - s = selenium(b['host'], 4444, "*%s" % b['browsercmd'], "http://openlayers.org/") + s = selenium(b['host'], 4444, "*%s" % b['browsercmd'], server) s.start() try: - s.open("/dev/tests/run-tests.html?run=all") + s.open(url) count = 0 while count == 0: