-
-
Notifications
You must be signed in to change notification settings - Fork 261
/
wdio.shared.conf.ts
134 lines (133 loc) · 4.95 KB
/
wdio.shared.conf.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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
import type { Options } from '@wdio/types';
/**
* All not needed configurations, for this boilerplate, are removed.
* If you want to know which configuration options you have then you can
* check https://webdriver.io/docs/configurationfile
*/
export const config: Options.Testrunner = {
//
// ====================
// Runner Configuration
// ====================
//
// ==================
// Specify Test Files
// ==================
// The test-files are specified in:
// - wdio.android.browser.conf.ts
// - wdio.android.app.conf.ts
// - wdio.ios.browser.conf.ts
// - wdio.ios.app.conf.ts
//
/**
* NOTE: This is just a place holder and will be overwritten by each specific configuration
*/
specs: [],
//
// ============
// Capabilities
// ============
// The capabilities are specified in:
// - wdio.android.browser.conf.ts
// - wdio.android.app.conf.ts
// - wdio.ios.browser.conf.ts
// - wdio.ios.app.conf.ts
//
/**
* NOTE: This is just a place holder and will be overwritten by each specific configuration
*/
capabilities: [],
//
// ===================
// Test Configurations
// ===================
// Define all options that are relevant for the WebdriverIO instance here
//
// Level of logging verbosity: trace | debug | info | warn | error | silent
logLevel: 'debug',
// Set specific log levels per logger
// loggers:
// - webdriver, webdriverio
// - @wdio/applitools-service, @wdio/browserstack-service, @wdio/devtools-service, @wdio/sauce-service
// - @wdio/mocha-framework, @wdio/jasmine-framework
// - @wdio/local-runner
// - @wdio/sumologic-reporter
// - @wdio/cli, @wdio/config, @wdio/utils
// Level of logging verbosity: trace | debug | info | warn | error | silent
// logLevels: {
// webdriver: 'info',
// '@wdio/applitools-service': 'info'
// },
//
// If you only want to run your tests until a specific amount of tests have failed use
// bail (default is 0 - don't bail, run all tests).
bail: 0,
// Set a base URL in order to shorten url command calls. If your `url` parameter starts
// with `/`, the base url gets prepended, not including the path portion of your baseUrl.
// If your `url` parameter starts without a scheme or `/` (like `some/path`), the base url
// gets prepended directly.
baseUrl: 'http://the-internet.herokuapp.com',
// Default timeout for all waitFor* commands.
/**
* NOTE: This has been increased for more stable Appium Native app
* tests because they can take a bit longer.
*/
waitforTimeout: 45000,
// Default timeout in milliseconds for request
// if browser driver or grid doesn't send response
connectionRetryTimeout: 120000,
// Default request retries count
connectionRetryCount: 3,
// Test runner services
// Services take over a specific job you don't want to take care of. They enhance
// your test setup with almost no effort. Unlike plugins, they don't add new
// commands. Instead, they hook themselves up into the test process.
//
// Services are empty here but will be defined in the
// - wdio.shared.browserstack.conf.ts
// - wdio.shared.local.appium.conf.ts
// - wdio.shared.sauce.conf.ts
// configuration files
services: [],
// Framework you want to run your specs with.
// The following are supported: Mocha, Jasmine, and Cucumber
// see also: https://webdriver.io/docs/frameworks
//
// Make sure you have the wdio adapter package for the specific framework installed
// before running any tests.
framework: 'mocha',
// The number of times to retry the entire spec file when it fails as a whole
// specFileRetries: 1,
//
// Delay in seconds between the spec file retry attempts
// specFileRetriesDelay: 0,
//
// Whether or not retried spec files should be retried immediately or deferred to the end of the queue
// specFileRetriesDeferred: false,
//
// Test reporter for stdout.
// The only one supported by default is 'dot'
// see also: https://webdriver.io/docs/dot-reporter
reporters: ['spec'],
// Options to be passed to Mocha.
mochaOpts: {
ui: 'bdd',
/**
* NOTE: This has been increased for more stable Appium Native app
* tests because they can take a bit longer.
*/
timeout: 3 * 60 * 1000, // 3min
},
//
// =====
// Hooks
// =====
// WebdriverIO provides several hooks you can use to interfere with the test process in order to enhance
// it and to build services around it. You can either apply a single function or an array of
// methods to it. If one of them returns with a promise, WebdriverIO will wait until that promise got
// resolved to continue.
//
/**
* NOTE: No Hooks are used in this project, but feel free to add them if you need them.
*/
};