protractor.config.js
954 Bytes
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
/* global browser */
var config = {};
if (process.env.SAUCE_USERNAME) {
config.multiCapabilities = [{
browserName: 'chrome',
platform: 'Windows 8.1'
}, {
browserName: 'firefox',
platform: 'Windows 8.1'
}].map(function(caps) {
caps.name = process.env.TRAVIS_BUILD_NUMBER + process.env.TRAVIS_BRANCH;
caps.build = process.env.TRAVIS_BUILD_NUMBER;
caps['tunnel-identifier'] = process.env.TRAVIS_JOB_NUMBER;
caps.recordScreenshots = false;
return caps;
});
config.sauceUser = process.env.SAUCE_USERNAME;
config.sauceKey = process.env.SAUCE_ACCESS_KEY;
config.maxSessions = 5;
config.maxDuration = 300;
}
config.baseUrl = 'http://localhost:9999/example.html';
config.specs = ['spec.js'];
config.framework = 'jasmine2';
config.onPrepare = function() {
browser.ignoreSynchronization = true;
};
config.jasmineNodeOpts = {
showColors: true,
defaultTimeoutInterval: 60000
};
exports.config = config;