-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathprotractor.conf.js
65 lines (53 loc) · 1.31 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
'use strict';
var bundle = require('./package.json');
exports.config = {
seleniumServerJar: './node_modules/protractor/selenium/selenium-server-standalone-2.45.0.jar',
// capabilities: {
// 'browserName': 'firefox'
// },
multiCapabilities: [{
'browserName': 'chrome'
} , {
'browserName': 'firefox'
}],
specs: [
bundle.directories.e2e + '/**.scenario.js'
],
framework: 'jasmine2',
jasmineNodeOpts: {
showColors: true,
isVerbose: true,
includeStackTrace: true,
print: function() {}
},
params: {
scenarios: [
{
page: 'test/e2e/input.html',
id: 'input',
text: '123456789',
type: 'input'
},
{
page: 'test/e2e/textarea.html',
id: 'textarea',
text: 'a\n\n z',
type: 'textarea'
}
]
},
baseUrl: 'http://127.0.0.1:' + bundle.server.port,
onPrepare: function() {
var SpecReporter = require('jasmine-spec-reporter');
jasmine.getEnv().addReporter(new SpecReporter({
displayStacktrace: true,
displayPendingSpec: true
}));
browser.getProcessedConfig().then(function(config) {
browser.name = config.capabilities.browserName;
});
// browser.getCapabilities().then(function(cap) {
// browser.name = cap.caps_.browserName;
// });
}
};