-
Notifications
You must be signed in to change notification settings - Fork 0
/
protractor.conf.js
49 lines (41 loc) · 1.34 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
var jasmineReporters = require('jasmine-reporters');
exports.config = {
framework: "jasmine",
seleniumAddress: "http://localhost:4444/wd/hub",
specs: [
"./e2e/*.spec.js"
],
allScriptsTimeout: 600000,
getPageTimeout: 6000000,
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 600000,
isVerbose : true,
includeStackTrace : true
},
onPrepare: function() {
jasmine.getEnv().addReporter(new jasmineReporters.JUnitXmlReporter({
consolidateAll: true,
savePath: './',
filePrefix: 'xmlresults.xml'
}));
},
onComplete: function() {
var browserName, browserVersion;
var capsPromise = browser.getCapabilities();
capsPromise.then(function (caps) {
browserName = caps.get('browserName');
browserVersion = caps.get('version');
var HTMLReport = require('protractor-html-reporter');
testConfig = {
reportTitle: 'Test Execution Report',
outputPath: './',
screenshotPath: './screenshots',
testBrowser: browserName,
browserVersion: browserVersion,
modifiedSuiteName: false
};
new HTMLReport().from('xmlresults.xml', testConfig);
});
}
};