-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.js
67 lines (51 loc) · 2.12 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// conf.js
// debugging and screenshots:
// http://www.protractortest.org/#/debugging
exports.config = {
framework: 'jasmine',
/*
directConnect: true - Your test script communicates directly Chrome Driver or Firefox Driver,
bypassing any Selenium Server. If this is true, settings for seleniumAddress and seleniumServerJar will be ignored.
If you attempt to use a browser other than Chrome or Firefox an error will be thrown.
The advantage of directly connecting to browser drivers is that your test scripts may start up and run faster
*/
// seleniumAddress: 'http://localhost:4444/wd/hub',
retartBrowserBetweenTests: true,
directConnect: true,
// ,
// multiCapabilities: [{
// browserName: 'firefox'
// },{
// browserName: 'chrome'
// }]
capabilities: {
'browserName': 'chrome',
'chromeOptions': {
'args': ['show-fps-counter=true'] // for dev tools: 'auto-open-devtools-for-tabs'
// To Run in Headless Mode
//args: ["--headless", "--disable-gpu", "--window-size=800x600"]
}
},
// run single spec: terminal command: protractor conf.js
specs: ['tests/homepage/angularSiteTests.js'],
// run suites: protractor protractor.conf.js --suite homepage
// or run certain suites: protractor protractor.conf.js --suite homepage, search
// or run all suites: protractor conf.js
// suites: {
// homepage: './tests/homepage/*.js',
// starters: './tests/starters/*.js'
// },
onPrepare: function () {
browser.driver.manage().window().maximize();
var customReporter = require('./helpers/custom-reporter.js');
jasmine.getEnv().addReporter(new customReporter());
var SpecReporter = require('jasmine-spec-reporter').SpecReporter;
jasmine.getEnv().addReporter(new SpecReporter({ displayStacktrace: 'all' }));
},
jasmineNodeOptions: {
showColors: true,
isVerbose: true,
realtimeFailure: true,
includeStackTrace: true,
}
}