Real Devices on Sauce Labs

NOTE: Refer to Appium Driver documentation for specific Appium capabilities. For Appium related issues defer to Github or Appium support channels.

For Sauce Labs sauce:options capabilities refer to the Sauce Labs Test Configs

Sauce: App Settings

Check your app’s Default Settings like Device Language from the Settings page.

To view or change the app settings, on the App Management page, hover over the app and then click Settings. app-settings-screenshot These are GLOBAL for all users who can see this app.

Changing the Language Dropdown influences the LOCALE of your app. How your app handles a changing locale is going to depend on the app itself most of the time. This could involve third party code for specific workflows like payments or translating timezones. You may have some i18n package that tries to switch to translated versions of the app.

Appium

iOS

Its important to be aware of what the Appium server can and can’t do. For example appium:locale is specifically for Simulators “If a test is executed on a Simulator then UI locale is changed as well. You can also change Simulator locale in runtime using mobile: configureLocalization extension.” If you’re testing on Real Devices exclusively or with Espresso/XCUI tests you won’t have access to that Appium Capability.

Android

Contradictory to the iOS example Android can use Appium 2.0 to test Locale/Language. Consult the documentation https://github.com/appium/appium-uiautomator2-driver#app-localization. In this case the

Android UIAutomator 2 Driver Notes

UIAutomator2 Driver README

Locale Developer docs for Android

You CAN test with Appium + Real Devices. But you can also rely on the Language dropdown found in the App Settings.

iOS

XCUI Driver Overview

XCUI Driver Capabilities or WDA (Web Driver Agent).

Locale, official Apple docs for iOS

XCUI Driver Execute Methods

Rely on the Sauce Labs App Settings for Real Device tests.