forked from juice-shop/juice-shop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
protractor.conf.js
53 lines (41 loc) · 1.21 KB
/
protractor.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
'use strict'
exports.config = {
directConnect: true,
allScriptsTimeout: 80000,
specs: [
'test/e2e/*.js'
],
capabilities: {
'browserName': 'chrome'
},
baseUrl: 'http://localhost:3000',
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 80000
},
onPrepare: function () {
require('jasmine-reporters')
jasmine.getEnv().addReporter(
new jasmine.JUnitXmlReporter('build/reports/e2e_results', true, true))
},
sauceUser: process.env.SAUCE_USERNAME,
sauceKey: process.env.SAUCE_ACCESS_KEY
}
if (process.env.TRAVIS_BUILD_NUMBER) {
exports.config.directConnect = false
exports.config.seleniumAddress = 'http://localhost:4445/wd/hub'
exports.config.capabilities = {
'name': 'OWASP Juice Shop e2e Tests',
'browserName': 'chrome',
'platform': 'OS X 10.11',
'screen-resolution': '1024x768',
'username': process.env.SAUCE_USERNAME,
'accessKey': process.env.SAUCE_ACCESS_KEY,
'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER,
'build': process.env.TRAVIS_BUILD_NUMBER,
'tags': [process.env.TRAVIS_BRANCH, process.env.TRAVIS_BUILD_NUMBER, 'e2e'],
'recordVideo': true,
'recordScreenshots': true
}
}