-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwdio.conf.js
More file actions
60 lines (49 loc) · 1.24 KB
/
wdio.conf.js
File metadata and controls
60 lines (49 loc) · 1.24 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
// wdio.conf.js
exports.config = {
// Runner Configuration
runner: 'local',
// Specs Configuration
specs: [
'./tests/**/bstack_test*.js'
],
// Patterns to exclude
exclude: [],
// Maximum number of total parallel running workers
maxInstances: 1,
// Browser capabilities
capabilities: [{
browserName: 'chrome',
'goog:chromeOptions': {
// to run chrome in headless mode uncomment the below line
// args: ['--headless'],
}
}],
// Test Configurations
logLevel: 'info',
bail: 0,
waitforTimeout: 10000,
connectionRetryTimeout: 120000,
connectionRetryCount: 3,
// Services
services: ['chromedriver'],
// Framework
framework: 'mocha',
// Test reporter
reporters: ['spec'],
// Options to be passed to Mocha
mochaOpts: {
ui: 'bdd',
timeout: 90000
},
// Hooks
before: function (capabilities, specs) {
// Set implicit wait timeout
browser.setTimeout({
'implicit': 5000
});
},
beforeTest: function (test, context) {
// Maximize browser window
browser.maximizeWindow();
}
};