-
Notifications
You must be signed in to change notification settings - Fork 22
/
conf.js
60 lines (53 loc) · 1.8 KB
/
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
exports.config = {
seleniumAddress: 'http://localhost:4723/wd/hub',
specs: ['spec.js'],
/**
* Available on my developer laptop:
*
* "iPad 2 (8.2 Simulator),
* "iPad Air (8.2 Simulator),
* "iPad Retina (8.2 Simulator)",
* "iPhone 4s (8.2 Simulator)",
* "iPhone 5 (8.2 Simulator)",
* "iPhone 5s (8.2 Simulator)",
* "iPhone 6 (8.2 Simulator)",
* "iPhone 6 Plus (8.2 Simulator)"
*
* You'll find your own ... if and when the process fails, it will tell
* you what's actually available for you in its logs.
*/
// Reference: https://github.com/appium/sample-code/blob/master/sample-code/examples/node/helpers/caps.js
capabilities: {
browserName: 'safari',
'appium-version': '1.0',
platformName: 'iOS',
platformVersion: '8.2',
deviceName: 'iPad Air',
orientation: 'LANDSCAPE'
},
baseUrl: 'https://mppulkit1.localtunnel.me',
onPrepare: function () {
// Override the timeout for webdriver.
browser.manage().timeouts().setScriptTimeout(60000);
// configuring wd in onPrepare
// wdBridge helps to bridge wd driver with other selenium clients
// See https://github.com/sebv/wd-bridge/blob/master/README.md
var wd = require('wd'),
protractor = require('protractor'),
wdBridge = require('wd-bridge')(protractor, wd);
wdBridge.initFromProtractor(exports.config);
},
// ----- Options to be passed to minijasminenode -----
jasmineNodeOpts: {
// onComplete will be called just before the driver quits.
onComplete: null,
// If true, display spec names.
isVerbose: false,
// If true, print colors to the terminal.
showColors: true,
// If true, include stack traces in failures.
includeStackTrace: true,
// Default time to wait in ms before a test fails.
defaultTimeoutInterval: 60000
}
};