This repository has been archived by the owner on Jan 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
protractor.conf.ios.js
executable file
·69 lines (59 loc) · 2.21 KB
/
protractor.conf.ios.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
/**
* Protractor configuration to use for iOS testing
*
* @example
* npm protractor-test-ios
*/
var merge = require('deepmerge');
var baseConf = require('./protractor.conf.base');
exports.config = merge(baseConf.config, {
// Please see: https://github.com/SeleniumHQ/selenium/wiki/DesiredCapabilities
capabilities: {
browserName : '',
// Absolute Path to application .app file
app : '[APPLICATION_APP_FILE]',
bundleId : '[APPLICATION_BUNDLE_ID]',
automationName: 'Appium',
deviceName : '[TEST_DEVICE_NAME]',
udid : '[TEST_DEVICE_UDID]',
platformName : 'iOS',
platformVersion : '[iOS_VERSION]',
autoWebview : true,
autoWebviewTimeout: 20000,
autoAcceptAlerts : true
},
jasmineNodeOpts: {
defaultTimeoutInterval: 1200000
},
onPrepare: function () {
// Set the timestamp of the report directory
var today, timeStamp;
today = new Date();
timeStamp = today.getMonth() + 1 + '-' + today.getDate() + '-'
+ today.getFullYear() + '-' + today.getHours() + 'h-'
+ today.getMinutes() + 'm';
// Configuration of the terminal reporter
jasmine.getEnv().addReporter(new specReporter({
displayStacktrace : true,
displaySpecDuration: true,
displaySuiteNumber : true
}));
// Configuration of HTML reporter
jasmine.getEnv().addReporter(
new Jasmine2HtmlReporter({
savePath : './testReports/e2e' + timeStamp + '/',
filePrefix : 'e2e',
takeScreenshots : true,
takeScreenshotsOnlyOnFailures: true,
consolidate : true,
consolidateAll : true
})
);
// Set some browser properties
browser.manage().timeouts().pageLoadTimeout(10000);
browser.manage().timeouts().implicitlyWait(10000);
browser.sleep(2000);
},
// Here can be stored any global parameters and their values in a MAP based format
params: {}
});