@@ -16,6 +16,19 @@ export SAUCE_ACCESS_KEY="your_sauce_access_key"
1616### 2. Outdated Platform/Device Combinations
1717The error often occurs when requesting deprecated or unavailable devices/OS versions.
1818
19+ ** Critical Configuration Issues:**
20+ - Using ` app: localPath ` instead of ` app: 'storage:filename=app.apk' `
21+ - Requesting too recent OS versions (Android 12+, iOS 16+)
22+ - Using specific device models that may not be available
23+ - Missing proper capability namespacing for Appium 2.x
24+
25+ ** Quick Fix Checklist:**
26+ 1 . ✅ Use ` storage:filename= ` for app references
27+ 2 . ✅ Use Android 10.0/11.0 and iOS 14.x/15.x versions
28+ 3 . ✅ Use standard device names: "Android GoogleAPI Emulator", "iPhone 13 Simulator"
29+ 4 . ✅ Set ` noReset: false ` for clean test state
30+ 5 . ✅ Use regional endpoints: ` ondemand.us-west-1.saucelabs.com `
31+
1932** Updated Android Configuration:**
2033``` javascript
2134{
@@ -26,6 +39,7 @@ The error often occurs when requesting deprecated or unavailable devices/OS vers
2639 protocol: ' https' ,
2740 user: process .env .SAUCE_USERNAME ,
2841 key: process .env .SAUCE_ACCESS_KEY ,
42+ app: ' storage:filename=your-app.apk' , // Use Sauce Storage reference
2943 desiredCapabilities: {
3044 ' sauce:options' : {
3145 appiumVersion: ' 2.0.0' ,
@@ -39,12 +53,11 @@ The error often occurs when requesting deprecated or unavailable devices/OS vers
3953 },
4054 browserName: ' ' ,
4155 platformName: ' Android' ,
42- platformVersion: ' 12 .0' , // Use recent versions
43- deviceName: ' Google Pixel 6 GoogleAPI Emulator' ,
56+ platformVersion: ' 10 .0' , // Use stable versions (9.0-11.0)
57+ deviceName: ' Android GoogleAPI Emulator' , // Use standard names
4458 automationName: ' UiAutomator2' ,
4559 autoGrantPermissions: true ,
46- noReset: true ,
47- app: ' sauce-storage:your-app.apk'
60+ noReset: false , // Clean state for reliable tests
4861 }
4962 }
5063 }
@@ -61,6 +74,7 @@ The error often occurs when requesting deprecated or unavailable devices/OS vers
6174 protocol: ' https' ,
6275 user: process .env .SAUCE_USERNAME ,
6376 key: process .env .SAUCE_ACCESS_KEY ,
77+ app: ' storage:filename=your-ios-app.zip' , // Use Sauce Storage reference
6478 desiredCapabilities: {
6579 ' sauce:options' : {
6680 appiumVersion: ' 2.0.0' ,
@@ -74,12 +88,11 @@ The error often occurs when requesting deprecated or unavailable devices/OS vers
7488 },
7589 browserName: ' ' ,
7690 platformName: ' iOS' ,
77- platformVersion: ' 16.0 ' , // Use recent versions
78- deviceName: ' iPhone 14 Simulator' ,
91+ platformVersion: ' 15.5 ' , // Use stable versions (14.x-15.x)
92+ deviceName: ' iPhone 13 Simulator' , // Use widely available devices
7993 automationName: ' XCUITest' ,
8094 autoAcceptAlerts: true ,
81- noReset: true ,
82- app: ' sauce-storage:your-ios-app.ipa'
95+ noReset: false , // Clean state for reliable tests
8396 }
8497 }
8598 }
0 commit comments