forked from qualityshepherd/protractor-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
protractor.conf.js
64 lines (44 loc) · 1.57 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
exports.config = {
// The address of a running selenium server.
seleniumAddress: 'http://localhost:4444/wd/hub',
framework: 'jasmine2',
// Capabilities to be passed to the webdriver instance.
multiCapabilities : [
{
'browserName' : 'chrome'
}, /* {
'browserName' : 'internet explorer'
} */
],
baseUrl: "http://localhost/addressbook",
onPrepare: function () {
var AllureReporter = require('jasmine-allure-reporter');
jasmine.getEnv().addReporter(new AllureReporter({
resultsDir: 'allure-results'
}));
require('./test/functions/util').clearTempData()
browser.getCapabilities().then(async function(c) {
let browserName = await c.get('browserName');
browser.browserName = browserName
browser.width = 1920
browser.height = 1080
browser.manage().window().setSize(browser.width, browser.height);
/* browser.screenshotNamePostfix = `-${browserName}-${browser.width}x${browser.height}-dpr-1.png`
const protractorImageComparison = require('protractor-image-comparison');
browser. protractorImageComparison = new protractorImageComparison(
{
baselineFolder: './test/data/screenshots/',
screenshotPath: './test/temp/'
}
); */
})
},
jasmineNodeOpts: {
showColors: true,
displaySpecDuration: true,
// overrides jasmine's print method to report dot syntax for custom reports
//print: () => {},
defaultTimeoutInterval: 50000
},
specs: ['./test/tests/login.test.js']
};