We now offer GA support for customizing the browser locale and timezone used during test training and execution! With browser locale and timezone configuration, you can:
- Reduce discrepancies in test behavior during training and execution
- Enable multi-locale testing
What is browser locale?
Browser locales are a combination of language and regional identifiers that can affect the language used by webpages and the displayed values for currencies, date formats, and numbers.
For example, a storefront might change its language depending on a user's browser locale:
- Accessing the page with a locale of
en-US
oren-GB
may default the chosen language to English - Accessing the page with a locale of
ja
may default the chosen language to Japanese and the chosen currency to Yen.
Why set the browser locale or timezone?
When training and running mabl tests locally, the default locale and timezone are inherited from the user's operating system.
However, when executing tests in the cloud, mabl sets the browser's locale to American English and sets the timezone to UTC+0
. These default settings can lead to a discrepancy between application behavior when training compared to running tests in the cloud.
Where can I modify these settings?
You can set new defaults for the locale and timezone in the following areas of the app:
- Plan runs: On the Edit Plan page under
Device settings > Additional settings
Editing locale and time zone settings for plans
- Ad hoc cloud runs: In the ad hoc run panel using the "Customize localization options" toggle
- Training sessions and local runs from the Desktop App: Preferences menu:
Edit > Preferences > Browser
Editing locale and time zone settings in the Desktop App
- Test runs triggered from the mabl CLI: Use the
--locale
and--timezone-id
arguments
You can view the locale and timezone used for a test run in the "mabl test run setup" step of the logs.
For more information, check out the docs.