forked from webdriverio/appium-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wdio.ios.rdc.app.conf.js
57 lines (52 loc) · 1.74 KB
/
wdio.ios.rdc.app.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
const { config } = require('../wdio.shared.conf');
// ============
// Specs
// ============
config.specs = [
'./tests/specs/**/app*.spec.js',
];
// ============
// Capabilities
// ============
// For all capabilities please check
// http://appium.io/docs/en/writing-running-appium/caps/#general-capabilities
config.capabilities = [
{
automationName: 'XCUITest',
deviceName: 'iPhone [6781X].*',
// The api key that has a reference to the app-project in the TO cloud
testobject_api_key: process.env.SAUCE_RDC_EU_ACCESS_KEY_IOS_WDIO,
// The name of the test for in the cloud
testobject_test_name: 'wdio-demo-app-test',
// Some default settings
// You can find more info in the TO Appium Basic Setup section
platformName: 'iOS',
idleTimeout: 180,
maxInstances: 6,
cacheId: new Date().getTime(),
noReset: true,
orientation: 'PORTRAIT',
newCommandTimeout: 180,
phoneOnly: true,
tabletOnly: false,
// Due to issues with Appium we stick to 1.15 and iOS 12
appiumVersion: '1.15.0',
platformVersion: '12',
},
];
// =========================
// Sauce RDC specific config
// =========================
// The new version of WebdriverIO will:
// - automatically update the job status in the RDC cloud
// - automatically default to the US RDC cloud
config.services = ['sauce'];
// If you need to connect to the US RDC cloud comment the below line of code
config.region = 'eu';
// and uncomment the below line of code
// config.region = 'us';
// Increase for real device support
config.connectionRetryTimeout = 180000;
// This port was defined in the `wdio.shared.conf.js`
delete config.port;
exports.config = config;