This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathconfig.py
41 lines (37 loc) · 1.89 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"""Set up all the configuration variables needed for run.py"""
DEFAULT_BASE_URL = "http://www.google.com" # Set this
# This has been set as an array so that we can set multiple environments and run the tests below in a for loop
# to repeat the tests for different operating systems. I have set a mobile capability list and
# desktop capability list to allow the use of either or with a flag. More tests can easily be added. See the
# browser stack website to get more options.
# The below tests IE8, IE9, IE10 and IE11 on windows and then chrome, safari and Firefox on a Mac. Pay attention to
# the version numbers.
DESKTOP_CAP_LIST_CONFIGS = [
{'browser': 'IE', 'browser_version': '11.0', 'os': 'Windows', 'os_version': '7', 'resolution': '1024x768'},
{'browser': 'Chrome', 'browser_version': '39.0', 'os': 'OS X', 'os_version': 'Yosemite',
'resolution': '1024x768'},
{'browser': 'Firefox', 'browser_version': '35.0', 'os': 'OS X', 'os_version': 'Yosemite',
'resolution': '1024x768'},
# Safari is not well supported with selenium
# {'browser': 'Safari', 'browser_version': '8.0', 'os': 'OS X', 'os_version': 'Yosemite',
# 'resolution': '1024x768'},
]
# The below tests an iPhone 5 and Samsung Galaxy S5
MOBILE_CAP_LIST_CONFIGS = [
# {'browserName': 'iPhone', 'platform': 'MAC', 'device': 'iPhone 5'},
# {'browserName': 'android', 'platform': 'ANDROID', 'device': 'Samsung Galaxy S5'},
]
# URLs to black list. This will speed up tests drastically if you block certain external scripts that
# are taking a while to run. These are all regular expressions. Add other URLs that you want to block.
# Will not work with browserstack.
PROXY_BLACKLIST = [
# all images
"(.)*\.jpg.*",
"(.)*\.png.*",
"(.)*\.jpeg.*",
"(.)*\.gif.*",
]
# Default PhantomJS args. These can be any PhantomJS compatible command line arguments
PHANTOMJS_DEFAULTS = [
"--ignore-ssl-errors=true"
]