-
Notifications
You must be signed in to change notification settings - Fork 32
/
protractor.suite.conf.js
37 lines (36 loc) · 1.08 KB
/
protractor.suite.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
/*global browser */
var retry = require('../lib/retry');
exports.config = {
framework:'mocha',
mochaOpts: {
timeout: false
},
suites: {
mochasuite: 'mocha/*.spec.js'
},
capabilities: {
shardTestFiles: true,
maxInstances: 4,
browserName: 'internet explorer',
platform: 'ANY',
version: '11',
Build: 'protractor-retry-'+process.env.TRAVIS_BRANCH +'-'+process.env.TRAVIS_BUILD_NUMBER,
name: process.env.TRAVIS_BRANCH +'-'+process.env.TRAVIS_BUILD_NUMBER
},
sauceUser: process.env.SAUCE_USERNAME,
sauceKey: process.env.SAUCE_ACCESS_KEY,
onCleanUp: function (results) {
retry.onCleanUp(results);
},
onPrepare: function () {
retry.onPrepare();
var chai = require('chai');
var chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
global.expect = chai.expect;
browser.ignoreSynchronization = true;
},
afterLaunch: function() {
return retry.afterLaunch(2); // number of retries ( default is 2 )
}
};