-
Notifications
You must be signed in to change notification settings - Fork 94
/
Copy pathwdio.android.sauce.real.conf.js
36 lines (34 loc) · 1.36 KB
/
wdio.android.sauce.real.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
const { config } = require('./wdio.shared.sauce.conf');
const testName = 'Image injection Android';
// ============
// Capabilities
// ============
// For all capabilities please check
// http://appium.io/docs/en/writing-running-appium/caps/#general-capabilities
// This will run the image-injection on Android 7,8,9,10,11, 12 devices
config.capabilities = [7, 8, 9, 10, 11, 12].map((platformVersion) => ({
platformName: 'Android',
'appium:platformVersion': `${platformVersion}`,
'appium:orientation': 'PORTRAIT',
'appium:automationName': 'UiAutomator2',
// The path to the app
'appium:app': 'storage:filename=Android.MyDemoAppRN.apk',
'appium:appWaitActivity': 'com.saucelabs.mydemoapp.rn.MainActivity',
'appium:newCommandTimeout': 240,
// Always default the language to a language you prefer so you know the app language is always as expected
'appium:language': 'en',
'appium:locale': 'en',
'sauce:options': {
phoneOnly: true,
// Keep the device connected between tests so we don't need to wait for the cleaning process
cacheId: `jsy1v49pn9${platformVersion}`,
// Add a build and a name to the test
build: testName,
name: `${testName} ${platformVersion}`,
// Enable image-injection on RDC
sauceLabsImageInjectionEnabled: true,
// Allow the camera permissions
autoGrantPermissions: true,
},
}));
exports.config = config;