# Get access to string resources in UiAutomator

DevFeed: [Get access to string resources in UiAutomator](<https://devfeed.tech/articles/get-access-to-string-resources-in-uiautomator-24845.md>)

Original publisher: [Read original article](<https://alexzh.com/get-access-to-string-resources-in-uiautomator/>)

Author: Alex Zhukovich

Published: 2023-03-24T17:21:14Z

Content type: tutorial

Language: en

Sources: [Alex Zhuk - Android development and testing](<https://devfeed.tech/sources/alex-zhuk-android-development-and-testing.md>)

Topics: [Localization (l10n)](<https://devfeed.tech/topics/localization.md>), [Accessibility](<https://devfeed.tech/topics/accessibility.md>), [maintenance](<https://devfeed.tech/topics/maintenance.md>), [Operating system](<https://devfeed.tech/topics/operating-system.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [article](<https://devfeed.tech/tags/article.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [locale](<https://devfeed.tech/tags/locale.md>), [maintenance](<https://devfeed.tech/tags/maintenance.md>), [os](<https://devfeed.tech/tags/os.md>), [ui-testing](<https://devfeed.tech/tags/ui-testing.md>), [uiautomator](<https://devfeed.tech/tags/uiautomator.md>)

## AI overview

This tutorial explains how to access application string resources from UiAutomator test cases. It presents an approach using application context and resource identifiers so tests can reuse localized strings instead of hard-coded values.

## Source excerpt

This article explains how to access string resources in UiAutomator test cases.