-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.js
46 lines (39 loc) · 1.31 KB
/
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
var failFast = require('protractor-fail-fast');
exports.ROOT = 'https://192.168.1.12:43827';
//exports.ROOT = 'https://192.168.2.1';
exports.config = {
directConnect: true,
plugins: process.env.NO_FAILFAST ? [] : [failFast.init()],
// Capabilities to be passed to the webdriver instance.
capabilities: {
acceptInsecureCerts: true,
'browserName': 'chrome',
chromeOptions: {
binary: '/usr/bin/google-chrome',
args: [ '--headless', '--no-sandbox' ],
},
},
// Framework to use. Jasmine 2 is recommended.
framework: 'jasmine2',
// Spec patterns are relative to the current working directly when
// protractor is called.
//specs: ['login.js', 'isolate.js'],
specs: ['login.js'].concat(
process.env.GARGOYLE_ACTION ? [`${process.env.GARGOYLE_ACTION}.js`] : []
),
// Options to be passed to Jasmine.
jasmineNodeOpts: {
defaultTimeoutInterval: 30000
},
onPrepare: function(){ //configure junit xml report
var jasmineReporters = require('jasmine-reporters');
jasmine.getEnv().addReporter(new jasmineReporters.TerminalReporter({
verbosity: 3,
}));
var screenshotReporter = require('protractor-jasmine2-screenshot-reporter');
jasmine.getEnv().addReporter(new screenshotReporter({
dest: 'screenshots',
filename: 'my-report.html'
}));
},
};