-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
37 lines (33 loc) · 1.07 KB
/
config.ts
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
import { ProtractorBrowser, Config } from 'protractor';
export let config: Config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
capabilities: {
'browserName': 'chrome'
},
framework: 'jasmine',
specs: ['./specs/**/*.js'],
// specs: ['./specs/second.spec.js'],
jasmineNodeOpts: {
defaultTimeoutInterval: 90000
},
onPrepare: () => {
let globals = require('protractor');
let browser = globals.browser;
browser.manage().window().maximize();
browser.manage().timeouts().implicitlyWait(5000);
// Reports Configuration
let HtmlReporter = require('protractor-beautiful-reporter');
let path = require('path');
jasmine.getEnv().addReporter(new HtmlReporter({
baseDirectory: 'test-report'
, screenshotsSubfolder: 'images'
, jsonsSubfolder: 'jsons'
, docTitle: 'Technossus\' Analysis...'
, preserve: false
, excludeSkippedSpecs: true
, takeScreenShotsForSkippedSpecs: false
, docName: 'tss-report.html'
, cssOverrideFile: 'css/style.css'
}).getJasmine2Reporter());
}
}