forked from webdriverio/appium-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wdio.android.rdc.app.conf.js
51 lines (47 loc) · 1.54 KB
/
wdio.android.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
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 = [
{
deviceName: 'Google Pixel',
automationName: 'UiAutomator2',
// The reference to the app
testobject_app_id: '1',
// 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_ANDROID,
// 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: 'Android',
idleTimeout: 180,
maxInstances: 2,
testobject_cache_device: true,
noReset: true,
orientation: 'PORTRAIT',
newCommandTimeout: 180,
phoneOnly: true,
tabletOnly: false,
},
];
// =========================
// 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';
exports.config = config;