-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.js
More file actions
45 lines (38 loc) · 1.18 KB
/
conf.js
File metadata and controls
45 lines (38 loc) · 1.18 KB
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
// An example configuration file.
exports.config = {
directConnect: true,
// Capabilities to be passed to the webdriver instance.
capabilities: {
browserName: 'chrome',
//To use the tests in parallel
// shardTestFiles: true,
// maxInstances: 2,
},
// Framework to use. Jasmine is recommended.
framework: 'jasmine2',
// Spec patterns are relative to the current working directory when
// protractor is called.
specs: ['tests/ItemTest.js','tests/ItemTest_1.js'],
// Options to be passed to Jasmine.
jasmineNodeOpts: {
defaultTimeoutInterval: 30000
},
onPrepare: function () {
browser.manage().window().maximize();
browser.get("https://bigbasket.com")
var AllureReporter = require('jasmine-allure-reporter');
var reporter = new AllureReporter({
allureReport : {
resultsDir : 'allure-results'
}
});
jasmine.getEnv().addReporter(reporter);
jasmine.getEnv().afterEach(function(){
browser.takeScreenshot().then(function (png) {
allure.createAttachment('Screenshot', function () {
return new Buffer(png, 'base64')
}, 'image/png')();
})
});
}
};