Features

Set localization options

TestingBot provides an option to run XCUITests on a localized version of your iOS mobile application.
Configure the language, locale and timezone of the remote iOS device before running your XCUITest suite.

Setting Language for iOS XCUI Tests


Test a localized version of your mobile app with iOS XCUITest, by changing the language of the application under test.
You will need to specify a language option with the ISO code of the language you want to use.


curl -u api_key:api_secret \
-X POST "https://api.testingbot.com/v1/app-automate/xcuitest/:id/run" \
-d '{ "options": { "language": "fr" }, "capabilities":[{"version":"15.5", "deviceName":"iPhone 13", "platformName":"iOS"}]}' \
-H "Content-Type: application/json"

Use an ISO 639-1 language code to set the language of your app.
Your app needs to be compiled with support for this language to notice a change.

Set a locale for XCUI Testing


You can change the locale before running your XCUITest with the locale parameter.

Please use the CA format (country name abbreviation). For example: DE for Germany.


curl -u api_key:api_secret \
-X POST "https://api.testingbot.com/v1/app-automate/xcuitest/:id/run" \
-d '{ "options": { "locale": "DE" }, "capabilities":[{"version":"15.5", "deviceName":"iPhone 13", "platformName":"iOS"}]}' \
-H "Content-Type: application/json"

Change timezone for XCUITests


If you'd like to change the timezone before starting your XCUITests, you can use the timeZone option.

Please use a timezone format from the list of timezones.


curl -u api_key:api_secret \
-X POST "https://api.testingbot.com/v1/app-automate/xcuitest/:id/run" \
-d '{ "options": { "timeZone": "New_York" }, "capabilities":[{"version":"15.5", "deviceName":"iPhone 13", "platformName":"iOS"}]}' \
-H "Content-Type: application/json"