-
Notifications
You must be signed in to change notification settings - Fork 0
/
confAll.js
48 lines (44 loc) · 1.34 KB
/
confAll.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
exports.config = {
directConnect: false,
allScriptsTimeout: 999996,
framework: "jasmine2",
multiCapabilities: [
{ 'browserName': 'chrome',
'chromeOptions': {
args: ['--test-type', 'incognito=true', 'start-maximized']
}
}
],
specs: [
'./specs/login_spec.js',
'./specs/testcases_spec.js'
],
// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 199993
},
onPrepare: function() {
var webRep = require('jasmine-web-reporter');
browser.getProcessedConfig().then(function(config) {
var browserName = config.capabilities.browserName;
jasmine.getEnv().addReporter(new webRep.WebReporter({
projectName:'All',
module:'AutoUpdateProduction',
url: 'http://demo.qaconsole.com/testruns',
environment : 'Production',
info : {
"browserName" : config.capabilities.browserName
}
}));
jasmine.getEnv().addReporter(new webRep.WebReporter({
projectName:'All',
module:'AutoUpdateProduction',
environment : 'Production',
slackUrl : 'https://hooks.slack.com/services/ASDF1234/ASDF1234/ABCDEFGHIJKLMNOPQRSTUVWXYZ',
channel : '#testChannel'
}));
});
require('./libs/core.js');
}
};