On 6/7/16, Sauce Labs made a change to the values it will accept
for the "deviceName" capability. The change affects tests on Android
Emulators and iOS Simulators.
Before, as long as 'platformName' was set to 'Android',
Sauce Labs would accept many illogical values for 'deviceName', such as:
'' "
'abc android 123'
'JaPaNdRoID'
Similar allowances were made when the "platformName" was 'iOS'.
Such tests would run with "generic" settings intended to represent
any type of Android Emulator or iPhone Simulator.
Now, Sauce Labs' service will only use these generic settings
when the deviceName is set to:
"deviceName": "Android Emulator"
"deviceName": "iPhone Simulator"
Incorrect deviceName values will result in this error: "Invalid device name specified:"
The test will be rejected instantly.
The error message will be sent back to the test runner program.
There will be no record of the test in Sauce Labs' archives.
If tests are being rejected with this error, and you want to continue to use "generic" settings as before, simply change the deviceName to one of the two values above.
Notes:
The REST API still recommends using "Android" to get a generic setting. That will change soon.
The string "Android" will still work as a deviceName. This will also change soon.
The match on "Android Emulator" is case-insensitive, so "android emulator" will work (now and in the future).
This change does not affect the many possible *specific* deviceName values, such as:
"Google Nexus 7 HD GoogleAPI Emulator"
"Motorola Photon Q 4G Emulator"
"iPad Retina (64-bit)"
etc...
The full list of valid, specific deviceNames values is available in our Platform Configurator.
All invoiced customers running Appium tests were notified about this change on 5/10/16.