Skip to content

Commit 051ae7a

Browse files
Merge pull request #21 from webdriverio/fix/fix-ios-android-tests
Fix/fix ios android tests
2 parents 38d56f5 + bd60cb5 commit 051ae7a

13 files changed

+493
-598
lines changed

config/saucelabs/wdio.android.rdc.app.conf.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ config.specs = [
1414
// http://appium.io/docs/en/writing-running-appium/caps/#general-capabilities
1515
config.capabilities = [
1616
{
17-
deviceName: 'Google Pixel',
17+
deviceName: 'Samsung Galaxy S9*',
1818
automationName: 'UiAutomator2',
1919
// The reference to the app
20-
testobject_app_id: '1',
20+
testobject_app_id: '4',
2121
// The api key that has a reference to the app-project in the TO cloud
22-
testobject_api_key: process.env.SAUCE_RDC_EU_ACCESS_KEY_ANDROID,
22+
testobject_api_key: process.env.SAUCE_RDC_EU_ACCESS_KEY_ANDROID_WDIO,
2323
// The name of the test for in the cloud
2424
testobject_test_name: 'wdio-demo-app-test',
2525
// Some default settings
2626
// You can find more info in the TO Appium Basic Setup section
2727
platformName: 'Android',
2828
idleTimeout: 180,
29-
maxInstances: 2,
29+
maxInstances: 6,
3030
testobject_cache_device: true,
3131
noReset: true,
3232
orientation: 'PORTRAIT',

config/saucelabs/wdio.ios.rdc.app.conf.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ config.specs = [
1414
// http://appium.io/docs/en/writing-running-appium/caps/#general-capabilities
1515
config.capabilities = [
1616
{
17-
deviceName: 'iPhone 8',
17+
deviceName: 'iPhone X*',
1818
// The reference to the app
19-
testobject_app_id: '2',
19+
testobject_app_id: '3',
2020
// The api key that has a reference to the app-project in the TO cloud
21-
testobject_api_key: process.env.SAUCE_RDC_EU_ACCESS_KEY_IOS,
21+
testobject_api_key: process.env.SAUCE_RDC_EU_ACCESS_KEY_IOS_WDIO,
2222
// The name of the test for in the cloud
2323
testobject_test_name: 'wdio-demo-app-test',
2424
// Some default settings
2525
// You can find more info in the TO Appium Basic Setup section
2626
platformName: 'iOS',
2727
idleTimeout: 180,
28-
maxInstances: 1,
29-
testobject_cache_device: true,
28+
maxInstances: 6,
29+
// testobject_cache_device: true,
3030
noReset: true,
3131
orientation: 'PORTRAIT',
3232
newCommandTimeout: 180,

config/wdio.android.app.conf.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ config.capabilities = [
1717
{
1818
// The defaults you need to have in your config
1919
automationName: 'UiAutomator2',
20-
deviceName: 'Nexus_5_7.1.1',
20+
deviceName: 'Pixel_8.1',
2121
platformName: 'Android',
22-
platformVersion: '7.1.1',
22+
platformVersion: '8.1',
2323
orientation: 'PORTRAIT',
24-
app: join(process.cwd(), './apps/Android-NativeDemoApp-0.2.0.apk'),
24+
maxInstances: 1,
25+
app: join(process.cwd(), './apps/Android-NativeDemoApp-0.2.1.apk'),
2526
// Read the reset strategies very well, they differ per platform, see
2627
// http://appium.io/docs/en/writing-running-appium/other/reset-strategies/
2728
noReset: true,

config/wdio.android.browser.conf.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ config.capabilities = [
1616
{
1717
// The defaults you need to have in your config
1818
automationName: 'UiAutomator2',
19-
deviceName: 'Nexus_5_7.1.1',
19+
deviceName: 'Pixel_8.1',
2020
platformName: 'Android',
21-
platformVersion: '7.1.1',
21+
platformVersion: '8.1',
22+
maxInstances: 1,
2223
browserName: 'chrome',
23-
// Add this option to prevent the anoying "Welcome"-message
24+
// Add this option to prevent the annoying "Welcome"-message
2425
chromeOptions: {
2526
args: [ '--no-first-run' ],
2627
},

config/wdio.ios.app.conf.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ config.specs = [
1616
config.capabilities = [
1717
{
1818
// The defaults you need to have in your config
19-
deviceName: 'iPhone 6',
19+
deviceName: 'iPhone X',
2020
platformName: 'iOS',
21-
platformVersion: '11.4',
21+
platformVersion: '12.1',
2222
orientation: 'PORTRAIT',
23+
maxInstances: 1,
2324
// The path to the app
24-
app: join(process.cwd(), './apps/iOS-NativeDemoApp-0.2.0.app.zip'),
25+
app: join(process.cwd(), './apps/iOS-Simulator-NativeDemoApp-0.2.1.app.zip'),
2526
// Read the reset strategies very well, they differ per platform, see
2627
// http://appium.io/docs/en/writing-running-appium/other/reset-strategies/
2728
noReset: true,

config/wdio.ios.browser.conf.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ config.specs = [
1515
config.capabilities = [
1616
{
1717
// The defaults you need to have in your config
18-
deviceName: 'iPhone 6',
18+
deviceName: 'iPhone X',
1919
platformName: 'iOS',
20-
platformVersion: '11.4',
20+
platformVersion: '12.1',
21+
orientation: 'PORTRAIT',
22+
maxInstances: 1,
2123
browserName: 'safari',
2224
newCommandTimeout: 240,
2325
},

config/wdio.shared.conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ exports.config = {
88
jasmineNodeOpts: {
99
// Updated the timeout to 30 seconds due to possible longer appium calls
1010
// When using XPATH
11-
defaultTimeoutInterval: 30000,
11+
defaultTimeoutInterval: 90000,
1212
},
1313
sync: true,
1414
logLevel: 'silent',

0 commit comments

Comments
 (0)