-
Notifications
You must be signed in to change notification settings - Fork 802
/
cloud-all.conf.js
173 lines (168 loc) · 3.72 KB
/
cloud-all.conf.js
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
var privateConfig = require('./private.conf.js').config;
var testUrl = '/test/page/test.html',
viewports = [[1280, 1024], [640, 480], [320, 640]];
var capabilities = [
{
browser: 'ie',
browser_version: '11',
os: 'windows',
os_version: '10'
},
{
browser: 'ie',
browser_version: '10',
os: 'windows',
os_version: '7'
},
{
browser: 'ie',
browser_version: '9',
os: 'windows',
os_version: '7'
},
{
browser: 'ie',
browser_version: '8',
os: 'windows',
os_version: '7',
viewports: [[1280, 1024]]
},
{
browserName: 'chrome',
os: 'windows',
os_version: '8'
},
{
browserName: 'firefox',
os: 'windows',
os_version: '8'
},
{
browser: 'safari',
browser_version: '8'
},
{
browser: 'safari',
browser_version: '7.1'
},
{
browser: 'safari',
browser_version: '6.2'
},
{
browser: 'iPhone',
device: 'iPhone 6',
deviceOrientation: 'portrait'
},
{
browser: 'iPhone',
device: 'iPhone 6',
deviceOrientation: 'landscape'
},
{
browser: 'iPhone',
device: 'iPhone 5S',
deviceOrientation: 'portrait'
},
{
browser: 'iPhone',
device: 'iPhone 5S',
deviceOrientation: 'landscape'
},
{
browser: 'iPhone',
device: 'iPhone 4S',
deviceOrientation: 'portrait'
},
{
browser: 'iPhone',
device: 'iPhone 4S',
deviceOrientation: 'landscape'
},
{
browser: 'iPhone',
device: 'iPhone 5S',
deviceOrientation: 'portrait'
},
{
browser: 'iPhone',
device: 'iPhone 5S',
deviceOrientation: 'landscape'
},
{
browser: 'iPad',
device: 'iPad 4th',
deviceOrientation: 'portrait'
},
{
browser: 'iPad',
device: 'iPad 4th',
deviceOrientation: 'landscape'
},
{
browser: 'iPad',
device: 'iPad 3rd',
deviceOrientation: 'portrait'
},
{
browser: 'iPad',
device: 'iPad 3rd',
deviceOrientation: 'landscape'
},
{
browser: 'iPad',
device: 'iPad 2nd',
deviceOrientation: 'portrait'
},
{
browser: 'iPad',
device: 'iPad 2nd',
deviceOrientation: 'landscape'
},
{
browser: 'android',
device: 'Samsung Galaxy S5',
deviceOrientation: 'portrait'
},
{
browser: 'android',
device: 'Samsung Galaxy S5',
deviceOrientation: 'landscape'
},
{
browser: 'android',
device: 'Samsung Galaxy Tab 4 10.1',
deviceOrientation: 'portrait'
},
{
browser: 'android',
device: 'Samsung Galaxy Tab 4 10.1',
deviceOrientation: 'landscape'
}
];
for (var i = 0; i < capabilities.length; i += 1) {
var capability = capabilities[i];
capability['browserstack.debug'] = true;
capability['urls'] = capability['urls'] || [testUrl];
if (!capability['deviceOrientation']) {
capability['viewports'] = capability['viewports'] || viewports;
capability['resolution'] = capability['resolution'] || '1680x1050';
}
}
exports.config = {
user: privateConfig.user,
key: privateConfig.key,
capabilities: capabilities,
specs: [
'./test/specs/webdriver.spec.js'
],
logLevel: 'silent',
coloredLogs: true,
waitforTimeout: 60000,
framework: 'jasmine',
reporter: 'spec',
pauseOnFail: false,
jasmineNodeOpts: {
defaultTimeoutInterval: 60000
}
};