-
Notifications
You must be signed in to change notification settings - Fork 795
/
cloud.conf.js
67 lines (62 loc) · 1.59 KB
/
cloud.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
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: '8',
os: 'windows',
os_version: '7',
viewports: [[1280, 1024]]
},
{
browser: 'safari',
browser_version: '8'
},
{
browser: 'iPhone',
device: 'iPhone 6',
deviceOrientation: 'portrait'
},
{
browser: 'iPad',
device: 'iPad 4th',
deviceOrientation: 'landscape'
},
{
browser: 'android',
device: 'Samsung Galaxy S5',
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'] || '1600x1200';
}
}
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
}
};