-
Notifications
You must be signed in to change notification settings - Fork 0
/
qa1-config.ts
67 lines (56 loc) · 1.88 KB
/
qa1-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
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
65
66
67
import {Config, Capabilities,browser} from "protractor";
import { format } from "path";
import * as reporter from "cucumber-html-reporter";
export let config:Config ={
allScriptsTimeout: 1100000,
//seleniumAddress: 'http://localhost:4444/wd/hub',
directConnect:true,
framework: 'custom',
frameworkPath: require.resolve('protractor-cucumber-framework'),
capabilities: {
browserName:'chrome',
'chromeOptions': {
'args': ["incognito"]
}
},
specs: ['../src/features/*.feature'],
cucumberOpts: {
// require step definitions
tags:"@run5",
format:'json:./reports/cucumberreport.json',
require: [
'./src/step-definations/*.js' // accepts a glob
]
},
params: {
// baseUrl: 'https://dev43049.service-now.com/navpage.do'
baseUrl: 'https://com-web-ui-qa1.csm.pc.com/home',
basePath: 'https://com-server-core-qa1.cms.pc.com:443',
userName:'[email protected]',
password:'Y@A9ze',
root: process.cwd()
},
onComplete: () =>{
var options = {
theme: 'bootstrap',
jsonFile: './reports/cucumberreport.json',
output: './reports/cucumber_report.html',
reportSuiteAsScenarios: true,
launchReport: true,
metadata: {
"App Version":"0.3.2",
"Test Environment": "QA",
"Browser": "Chrome 54.0.2840.98",
"Platform": "Windows 10",
"Parallel": "Scenarios",
"Executed": "Remote"
}
};
reporter.generate(options);
},
onPrepare: async () => {
// Set browser window width to 1200 and height to 900px
browser.driver.manage().window().maximize();
//await browser.waitForAngularEnabled(false);
}
}