1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +00:00

replace casperjs with selenium

This commit is contained in:
Chilledheart
2014-08-27 11:08:39 +08:00
committed by lins05
parent 863d053e08
commit a882caec03
15 changed files with 214 additions and 84 deletions

24
tests/common/common.py Normal file
View File

@@ -0,0 +1,24 @@
import os
if os.getenv('CI_BASE_URL'):
BASE_URL = os.getenv('CI_BASE_URL')
else:
BASE_URL = u'http://127.0.0.1:8000'
if os.getenv('CI_USERNAME'):
USERNAME = os.getenv('CI_USERNAME')
else:
USERNAME = u'test@test.com'
if os.getenv('CI_PASSWORD'):
PASSWORD = os.getenv('CI_PASSWORD')
else:
PASSWORD = u'testtest'
def getBaseUrl():
return BASE_URL
def getUserName():
return USERNAME
def getPassword():
return PASSWORD