-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py_example
210 lines (205 loc) · 7.64 KB
/
settings.py_example
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
# This one is convenience to use later on the settings
# saucelab = 'http://YOUR_SAUCE_USERNAME:[email protected]:80/wd/hub'
saucelab = 'http://username:[email protected]:80/wd/hub'
missie = 'http://missie:4444/wd/hub'
# Saucelabs
# Maximum Test Duration
# As a safety measure to prevent broken tests from running indefinitely,
# Sauce limits the duration of tests to 30 minutes by default. You can
# adjust this limit on per-job basis. The value of this setting is given
# in seconds. The maximum test duration value allowed is 10800 seconds.
# maxDuration
# integer "maxDuration":1800
# Command Timeout
# As a safety measure to prevent Selenium crashes from making your tests
# run indefinitely, Sauce limits how long Selenium can take to run a
# command in our browsers. This is set to 300 seconds by default. The
# value of this setting is given in seconds. The maximum command timeout
# value allowed is 600 seconds.
# commandTimeout
# integer "commandTimeout":300
# Idle Test Timeout
# As a safety measure to prevent tests from running too long after
# something has gone wrong, Sauce limits how long a browser can wait for
# a test to send a new command. This is set to 90 seconds by default and
# limited to a maximum value of 1000 seconds. You can adjust this limit
# on a per-job basis. The value of this setting is given in seconds.
# idleTimeout
# integer "idleTimeout":90
sites = {
'somesite': {
'staff': {
'url': 'https://someurl/',
'username': 'username',
'password': 'password',
'blockHosts': '192.168.1.10,192.168.4.14',
'blockPorts': 443,
},
'client': {
'url': 'https://someurl/',
'blockHosts': '192.168.1.10,192.168.4.14',
'blockPorts': 443,
},
},
}
browsers = {
"local_firefox": "Firefox",
"local_chrome": "Chrome",
#"local_ie": "IE",
#"local_opera": "Opera",
#"local_safari": "Safari",
"missie_firefox": {
"caps": {'browserName': "firefox",
'platform': "Linux"},
"executor": missie
},
"missie_chrome": {
"caps": {'browserName': "chrome",
'platform': "Linux"},
"executor": missie
},
"w7_ie10": {
"caps": {'browserName': "internet explorer",
'platform': "Windows 7",
'version': "10.0"},
"executor": saucelab
},
"w81_ie11": {
"caps": {'browserName': "internet explorer",
'platform': "Windows 8.1",
'version': "11.0"},
"executor": saucelab
},
"w10_ie11": {
"caps": {'browserName': "internet explorer",
'platform': "Windows 10",
'version': "11.0"},
"executor": saucelab
},
"w10_edge20": {
"caps": {'browserName': "MicrosoftEdge",
'platform': "Windows 10",
'version': "20.10240"},
"executor": saucelab
},
"w10_chrome47": {
"caps": {'browserName': "chrome",
'platform': "Windows 10",
'version': "47.0"},
"executor": saucelab
},
}
tests = {
'10s_client_drop_client_types': {
'runner': 'broken_connection',
'client_browser': 'local_chrome',
'staff_browser': 'missie_chrome',
'client_disconnect': 'DROP',
'staff_disconnect': None,
'disconnect_time': 20, # seconds
'reconnect_time': 5, #seconds
'client_send_during_disconnect': True,
'staff_send_during_disconnect': False,
'staff_initiates_close': True,
},
'10s_client_reject_client_types': {
'runner': 'broken_connection',
'client_browser': 'local_chrome',
'staff_browser': 'missie_chrome',
'client_disconnect': 'REJECT',
'staff_disconnect': None,
'disconnect_time': 20, # seconds
'reconnect_time': 5, #seconds
'client_send_during_disconnect': True,
'staff_send_during_disconnect': False,
'staff_initiates_close': True,
},
'10s_client_drop_staff_types': {
'runner': 'broken_connection',
'client_browser': 'local_chrome',
'staff_browser': 'missie_chrome',
'client_disconnect': 'DROP',
'staff_disconnect': None,
'disconnect_time': 20, # seconds
'reconnect_time': 5, #seconds
'client_send_during_disconnect': False,
'staff_send_during_disconnect': True,
'staff_initiates_close': True,
},
'10s_client_reject_staff_types': {
'runner': 'broken_connection',
'client_browser': 'local_chrome',
'staff_browser': 'missie_chrome',
'client_disconnect': 'REJECT',
'staff_disconnect': None,
'disconnect_time': 20, # seconds
'reconnect_time': 5, #seconds
'client_send_during_disconnect': False,
'staff_send_during_disconnect': True,
'staff_initiates_close': True,
},
'60s_client_drop_client_types': {
'runner': 'broken_connection',
'client_browser': 'local_chrome',
'staff_browser': 'missie_chrome',
'client_disconnect': 'DROP',
'staff_disconnect': None,
'disconnect_time': 60, # seconds
'reconnect_time': 5, #seconds
'client_send_during_disconnect': True,
'staff_send_during_disconnect': False,
'staff_initiates_close': True,
},
'60s_client_reject_client_types': {
'runner': 'broken_connection',
'client_browser': 'local_chrome',
'staff_browser': 'missie_chrome',
'client_disconnect': 'REJECT',
'staff_disconnect': None,
'disconnect_time': 60, # seconds
'reconnect_time': 5, #seconds
'client_send_during_disconnect': True,
'staff_send_during_disconnect': False,
'staff_initiates_close': True,
},
'60s_client_drop_staff_types': {
'runner': 'broken_connection',
'client_browser': 'local_chrome',
'staff_browser': 'missie_chrome',
'client_disconnect': 'DROP',
'staff_disconnect': None,
'disconnect_time': 60, # seconds
'reconnect_time': 5, #seconds
'client_send_during_disconnect': False,
'staff_send_during_disconnect': True,
'staff_initiates_close': True,
},
'60s_client_reject_staff_types': {
'runner': 'broken_connection',
'client_browser': 'local_chrome',
'staff_browser': 'missie_chrome',
'client_disconnect': 'REJECT',
'staff_disconnect': None,
'disconnect_time': 60, # seconds
'reconnect_time': 5, #seconds
'client_send_during_disconnect': False,
'staff_send_during_disconnect': True,
'staff_initiates_close': True,
},
'local_chrome_chat': {
'runner': 'just_chat',
'client_browser': 'local_chrome',
'staff_browser': 'local_chrome',
'staff_initiates_close': True,
}
}
tests_to_run = ['local_chrome_chat']
#tests_to_run = ['10s_client_drop_client_types']
#tests_to_run = ['10s_client_reject_client_types']
#tests_to_run = ['10s_client_drop_staff_types']
#tests_to_run = ['10s_client_reject_staff_types']
#tests_to_run = ['60s_client_drop_client_types']
#tests_to_run = ['60s_client_reject_client_types']
#tests_to_run = ['60s_client_drop_staff_types']
#tests_to_run = ['60s_client_reject_staff_types']
#tests_to_run = "ALL"