-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.js
45 lines (42 loc) · 1.47 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
var HtmlReporter = require('protractor-beautiful-reporter');
exports.config = {
framework: 'jasmine',
//seleniumAddress: 'http://localhost:4444/wd/hub',
defaultTimeoutInterval: 5000,
allScriptsTimeout: 10000,
specs: ['./tests/functional/OrderItem.js'],
capabilities: {
// chromeOptions: {
// args: [ "--headless" ]
// },
'browserName': 'chrome',
'shardTestFiles': true,
'maxInstances': 1
},
getPageTimeout: 480000,
allScriptsTimeout: 480000,
rootElement: 'body',
// specs: ['spec.js'],
seleniumServerJar: 'C:/Users/vdhar/workspace/SnappWebConsole/Drivers/selenium-server-standalone-2.53.1.jar',
baseUrl: 'http://snappauto.inqa.soti.net',
chromeDriver: 'C:/Users/vdhar/workspace/SnappWebConsole/Drivers/chromedriver.exe',
jasmineNodeOpts:{
onComplete: null,
isVerbose: true,
showColors: true,
includeStackTrace: true,
defaultTimeoutInterval: 100000,
},
onPrepare: function () {
browser.getCapabilities().then(function (cap) {
//browser.browserName = cap.caps_.browserName + cap.get("version");;
// name = browser.browserName;
//global.serverName = 'snappauto.inqa.soti.net';
global.serverName = 'snappauto.inqa.soti.net';
});
require('jasmine-reporters');
jasmine.getEnv().addReporter(
new jasmine.JUnitXmlReporter('./xmloutput.xml', true, true)
);
}
}