-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnbaConfiguration.ts
64 lines (49 loc) · 1.73 KB
/
nbaConfiguration.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
import {Config} from "protractor";
import * as reporter from "cucumber-html-reporter";
import { browser } from "protractor";
export let config: Config = {
// The address of a running selenium server.
// seleniumAddress: 'http://localhost:4444/wd/hub',
directConnect:true,
framework:'custom',
frameworkPath: require.resolve('protractor-cucumber-framework'),
// Capabilities to be passed to the webdrtsciver instance.
capabilities: {
browserName: 'chrome'
},
// Spec patterns are relative to the configuration file location passed
// to protractor (in this example conf.js).
// They may include glob patterns.
specs: ['../Features/NBA.feature'],
cucumberOpts: {
// require step definitions
// tags:"@AngularTesting",
format:'json:./cucumberreport.json',
require: [
'./stepDefinitions/*.js', // accepts a glob,
]
},
onPrepare: async() =>{
await browser.manage().window().maximize();
await browser.waitForAngularEnabled(false);
//await browser.get("https://s1m425-qa5-app.dev-scholarone.com/qa-auto-aca");
},
onComplete: () =>{
var options = {
theme: 'bootstrap',
jsonFile: './cucumberreport.json',
output: './cucumber_report.html',
reportSuiteAsScenarios: true,
launchReport: true,
metadata: {
"App Version":"0.3.2",
"Test Environment": "STAGING",
"Browser": "Chrome 54.0.2840.98",
"Platform": "Windows 10",
"Parallel": "Scenarios",
"Executed": "Remote"
}
};
reporter.generate(options);
}
};