-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathwdio.conf.js
More file actions
107 lines (98 loc) · 2 KB
/
wdio.conf.js
File metadata and controls
107 lines (98 loc) · 2 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
// @ts-check
/**
* WebdriverIO Configuration for WDI5 UI Tests
*
* This configuration enables automated testing of SAPUI5 interfaces
* using WDI5 (WebDriver for UI5) framework.
*
* @see https://ui5-community.github.io/wdi5/
*/
export const config = {
//
// ====================
// Runner Configuration
// ====================
runner: 'local',
//
// ==================
// Specify Test Files
// ==================
specs: [
'./tests/ui/**/*.ui.test.js'
],
exclude: [],
//
// ============
// Capabilities
// ============
maxInstances: 1,
capabilities: [{
maxInstances: 1,
browserName: 'chrome',
acceptInsecureCerts: true,
'goog:chromeOptions': {
args: [
'--headless',
'--disable-gpu',
'--no-sandbox',
'--disable-dev-shm-usage',
'--disable-extensions',
'--window-size=1920,1080'
]
}
}],
//
// ===================
// Test Configurations
// ===================
logLevel: 'error',
bail: 0,
baseUrl: 'http://localhost:3010/ui/',
waitforTimeout: 30000,
connectionRetryTimeout: 120000,
connectionRetryCount: 3,
wdi5: {
logLevel: 'error',
waitForUI5Timeout: 30000,
screenshotPath: './tests/ui/screenshots',
screenshotsDisabled: false,
btpWorkZoneEnablement: false,
skipInjectUI5OnStart: true
},
//
// =====
// Hooks
// =====
before: async function() {
// Import WDI5 for UI5 testing
const { wdi5 } = await import('wdio-ui5-service')
await browser.url('/')
},
//
// ========
// Services
// ========
services: [
'devtools',
[
'ui5',
{
screenshotPath: './tests/ui/screenshots',
screenshotsDisabled: false,
logLevel: 'error',
waitForUI5Timeout: 30000,
btpWorkZoneEnablement: false
}
]
],
//
// ==============
// Test Framework
// ==============
framework: 'mocha',
reporters: ['spec'],
mochaOpts: {
ui: 'bdd',
timeout: 60000
}
}