-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
63 lines (49 loc) · 1.44 KB
/
config.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
54
55
56
57
58
59
60
61
62
63
exports.config = {
baseUrl: "https://angularjs.org",
seleniumAddress: "http://52.35.224.26:32768/wd/hub",
framework: 'jasmine2',
multiCapabilities: [
{
browserName: 'chrome'
//shardTestFiles: 'true',
//maxInstances: 2
},
//{
// browserName: 'internet explorer',
// 'nativeEvents': false,
// shardTestFiles: 'true',
// maxInstances: 2
//},
{
browserName: 'firefox'
//shardTestFiles: 'true',
//maxInstances: 2
}
],
suites: {
smoke: 'specs/*_spec.js'
},
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 300000
},
onPrepare: function() {
var Jasmine2HtmlReporter = require('protractor-jasmine2-html-reporter');
jasmine.getEnv().addReporter(
new Jasmine2HtmlReporter({
savePath: './reports/',
screenshotsFolder: 'screenshots',
takeScreenshots: true
//takeScreenshotsOnlyOnFailures: true
})
);
var jasmineReporters = require('jasmine-reporters');
jasmine.getEnv().addReporter(
new jasmineReporters.TeamCityReporter()
);
var CustomReporter = require('./utils/custom-reporter');
jasmine.getEnv().addReporter(
new CustomReporter()
);
}
};