-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprotractor.conf.js
70 lines (60 loc) · 1.55 KB
/
protractor.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
exports.config = {
allScriptsTimeout: 11000,
getPageTimeout: 60000,
capabilities: {
'browserName': 'chrome',
'chromeOptions': {
'args': [
'--start-maximized', // Uncomment to launch tests using the browser and comment the argument `properties` below
// '--headless',
// '--disable-gpu',
// '--window-size=1920,1080',
// '--no-sandbox',
// '--disable-dev-shm-usage'
]
}
},
directConnect: true,
baseUrl: 'http://localhost:4200',
specs: [
'project/features/*.feature'
],
framework: 'custom',
frameworkPath: require.resolve('protractor-cucumber-framework'),
cucumberOpts: {
require: [
'./e2e/classes/*.ts',
'./e2e/hooks/*.ts',
'project/features/support/*.ts',
'./e2e/step_definitions/*.ts'
],
tags: [],
strict: true,
format: [
`json:reports/summary.json`,
],
dryRun: false,
compiler: []
},
params: {
project: 'hmws',
logLevel: 'all',
agents: [
{ role: 'Admin', username: 'hmws', password: 'test' },
{ role: 'Inventory', username: 'inventory', password: 'test' }
],
createdItemUUIDs: [],
initializedItems: [],
root: process.cwd(),
originalTime: 0,
currentScenario: '',
},
onPrepare() {
require('ts-node').register({
project: 'e2e/tsconfig.e2e.json'
});
},
// ignoreUncaughtExceptions: true,
};