-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprotractor.conf.js
36 lines (35 loc) · 1.13 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
'use strict';
exports.config = {
allScriptsTimeout: 11000,
specs: [
'tests/e2e/**/*.js'
],
capabilities: {
'browserName': 'firefox'
},
baseUrl: 'http://localhost:8000/',
framework: 'jasmine',
onPrepare: function () {
browser.driver.manage().window().maximize();
var jasmineReporters = require('jasmine-reporters');
return browser.getProcessedConfig().then(function (config) {
var browserName = config.capabilities.browserName;
var junitReporter = new jasmineReporters.JUnitXmlReporter({
consolidateAll: true,
savePath: 'protractor-test-results/' + browserName,
filePrefix: 'testoutput',
modifySuiteName: function (generatedSuiteName, suite) {
return browserName + '.' + generatedSuiteName;
}
});
jasmine.getEnv().addReporter(junitReporter);
});
},
jasmineNodeOpts: {
onComplete: null,
isVerbose: false,
showColors: true,
includeStackTrace: true,
defaultTimeoutInterval: 30000
}
};