add server/url to config.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8568 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -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]
|
[ie6-winxp]
|
||||||
host=208.80.142.184
|
host=208.80.142.184
|
||||||
browserCmd=iexploreproxy C:\Program Files\MultipleIEs\IE6\iexplore.exe
|
browserCmd=iexploreproxy C:\Program Files\MultipleIEs\IE6\iexplore.exe
|
||||||
|
|||||||
@@ -15,8 +15,13 @@ c.read(filename)
|
|||||||
|
|
||||||
targets = {}
|
targets = {}
|
||||||
|
|
||||||
|
server = c.get('config', 'server')
|
||||||
|
url= c.get('config', 'url')
|
||||||
|
|
||||||
sections = c.sections()
|
sections = c.sections()
|
||||||
for s in sections:
|
for s in sections:
|
||||||
|
if s == 'config':
|
||||||
|
continue
|
||||||
targets[s] = dict(c.items(s))
|
targets[s] = dict(c.items(s))
|
||||||
targets[s]['name'] = s
|
targets[s]['name'] = s
|
||||||
|
|
||||||
@@ -32,10 +37,10 @@ else:
|
|||||||
if 1:
|
if 1:
|
||||||
for b in browsers:
|
for b in browsers:
|
||||||
print "Running %s on %s" % (b['name'], b['host'])
|
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()
|
s.start()
|
||||||
try:
|
try:
|
||||||
s.open("/dev/tests/run-tests.html?run=all")
|
s.open(url)
|
||||||
|
|
||||||
count = 0
|
count = 0
|
||||||
while count == 0:
|
while count == 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user