-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.js
51 lines (47 loc) · 1.38 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
/**
* Created by User on 12/03/2017.
*/
var HtmlScreenshotReporter = require('protractor-jasmine2-screenshot-reporter');
var reporter = new HtmlScreenshotReporter({
dest: './target/screenshots',
filename: 'test-report.html',
reportTitle: "Test",
showSummary: true
});
exports.config={
beforeLaunch: function() {
return new Promise(function(resolve){
reporter.beforeLaunch(resolve);
});
},
framework: 'jasmine2',
params:{
baseURL:'https://angularjs.org/'
},
seleniumAddress: 'http://localhost:4444/wd/hub',
//sauceUser:'debasisjagadev',
//sauceKey:'c68d4548-a1a1-42cb-a2f1-a68eb27ba837',
suites:{
cafetownsendTests:'cafetownsend.spec.js'
// basictest:'testsangular.spec.js',
// othertest:'otherspec.js',
// pagetest:'WithPageObjects.js'
},
capabilities: {
browserName: 'chrome',
//deviceName:'iPhone 6s Plus Device',
//platformVersion:'9.3',
//platformName:'iOS',
//deviceOrientation:'portrait',
//name: 'basic tests'
},
onPrepare:function () {
//browser.driver.manage().window().maximize();
jasmine.getEnv().addReporter(reporter);
},
afterLaunch: function(exitCode) {
return new Promise(function(resolve){
reporter.afterLaunch(resolve.bind(this, exitCode));
});
}
};