-
Notifications
You must be signed in to change notification settings - Fork 15
/
e2eSauceLabs.conf.js
52 lines (45 loc) · 1.35 KB
/
e2eSauceLabs.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
let config = require('/etc/portal16/credentials');
exports.config = {
seleniumAddress: `http://${config.sauceLabs.userName}:${config.sauceLabs.secret}@ondemand.saucelabs.com:80/wd/hub`,
baseUrl: 'https://www.gbif.org/',
allScriptsTimeout: 120000,
jasmineNodeOpts: {
defaultTimeoutInterval: 120000,
showColors: true,
isVerbose: true,
includeStackTrace: true
},
// sauceAgent: sauceRestAgent,
// webDriverProxy: 'http://<proxy>:<port>',
// seleniumAddress: 'http://ondemand.saucelabs.com:80/wd/hub',
specs: ['e2e/occurrenceSearch.spec.js'],
// restartBrowserBetweenTests: true,
onPrepare: function() {
let caps = browser.getCapabilities();
},
multiCapabilities: [
// {
// browserName: 'firefox',
// version: 'latest',
// platform: 'OS X 10.10',
// name: "firefox-tests",
// shardTestFiles: true,
// maxInstances: 25
// },
{
browserName: 'chrome',
version: '41',
platform: 'Windows 7',
name: "chrome-tests",
shardTestFiles: true,
maxInstances: 25
}],
onComplete: function() {
let printSessionId = function(jobName) {
browser.getSession().then(function(session) {
console.log('SauceOnDemandSessionID=' + session.getId() + ' job-name=' + jobName);
});
};
printSessionId('Insert Job Name Here');
}
};