From 8624b3f7fbb51d78124685e9e19db06b076194a5 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Sat, 27 Dec 2008 11:49:48 +0000 Subject: [PATCH] add server/url to config. git-svn-id: http://svn.openlayers.org/trunk/openlayers@8568 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/selenium/remotecontrol/config.cfg | 9 +++++++++ tests/selenium/remotecontrol/test_ol.py | 9 +++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) 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: