-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwdio.conf.js
52 lines (51 loc) · 1.52 KB
/
wdio.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
'use strict';
exports.config = {
runner: 'local',
capabilities: [
{
browserName: 'chrome',
'goog:chromeOptions': {
// to run chrome headless the following flags are required
// (see https://developers.google.com/web/updates/2017/04/headless-chrome)
args: ['--headless', '--disable-gpu'],
},
},
{
// maxInstances can get overwritten per capability. So if you have an in house Selenium
// grid with only 5 firefox instance available you can make sure that not more than
// 5 instance gets started at a time.
maxInstances: 5,
browserName: 'firefox',
// specs: ["test/ffOnly/*"],
'moz:firefoxOptions': {
// flag to activate Firefox headless mode (see https://github.com/mozilla/geckodriver/blob/master/README.md#firefox-capabilities for more details about moz:firefoxOptions)
args: ['-headless'],
},
},
],
services: ['selenium-standalone'],
specs: [
'./test/1_API.js',
'./test/2_loginlogoff.js',
'./test/3_loginlogofffailures.js',
'./test/4_Reset.js',
'./test/5_NameSpaces.js',
'./test/6_ConfigurationKeys.js',
],
exclude: [],
maxInstances: 2,
sync: true,
logLevel: 'error',
coloredLogs: true,
waitforTimeout: 20000,
connectionRetryTimeout: 90000,
connectionRetryCount: 3,
framework: 'mocha',
reporters: ['spec'],
mochaOpts: {
ui: 'bdd',
timeout: 30000,
// We wrote the tests in ES-2016 so we need to transpile
compilers: ['js:@babel/register'],
},
};