# UiAutomator

UiAutomator is an Android UI testing framework and API for building automated functional and cross-app UI tests that interact with applications and system apps.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Agentic Development on Android - Nacho Carrión

DevFeed: [Agentic Development on Android - Nacho Carrión](<https://devfeed.tech/articles/agentic-development-on-android-nacho-carrion-116592.md>)

Original publisher: [Read original article](<https://touchlab.co/agentic-development-android>)

Published: 2026-11-04T16:06:24.991412Z

Content type: article

Language: en

Sources: [Touchlab](<https://devfeed.tech/sources/touchlab-enterprise-mobile-innovation-development.md>)

Topics: [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [Android](<https://devfeed.tech/topics/android.md>), [Android Studio](<https://devfeed.tech/topics/android-studio.md>), [Developer experience](<https://devfeed.tech/topics/developer-experience.md>), [codex](<https://devfeed.tech/topics/codex.md>), [Developer Enablement](<https://devfeed.tech/topics/developer-enablement.md>), [ML Kit](<https://devfeed.tech/topics/ml-kit.md>), [UiAutomator](<https://devfeed.tech/topics/uiautomator.md>), [Android XR](<https://devfeed.tech/topics/android-xr.md>)

Tags: [a2ui](<https://devfeed.tech/tags/a2ui.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [agentic-development](<https://devfeed.tech/tags/agentic-development.md>), [agentic-testing](<https://devfeed.tech/tags/agentic-testing.md>), [agentic-workflows](<https://devfeed.tech/tags/agentic-workflows.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [android](<https://devfeed.tech/tags/android.md>), [android-development](<https://devfeed.tech/tags/android-development.md>), [android-skills](<https://devfeed.tech/tags/android-skills.md>), [android-studio](<https://devfeed.tech/tags/android-studio.md>), [antigravity](<https://devfeed.tech/tags/antigravity.md>), [api](<https://devfeed.tech/tags/api.md>), [appfunctions](<https://devfeed.tech/tags/appfunctions.md>), [apps](<https://devfeed.tech/tags/apps.md>), [code](<https://devfeed.tech/tags/code.md>), [development](<https://devfeed.tech/tags/development.md>), [google](<https://devfeed.tech/tags/google.md>), [tools](<https://devfeed.tech/tags/tools.md>)

### AI overview

Google's Android tooling is expanding to support agent-assisted development inside familiar workflows. Starting with Android Studio Rabbit 2, developers can select Claude, Codex, Antigravity, or other ACP-compliant agents in the IDE; official plugins also extend support to Claude Code and Codex. Android CLI gives agents emulator access, profiling, and AI-driven Journeys, while Firebase-powered Android Device Streaming enables remote device testing. New Android CLI Skills cover more than 20 Android areas to guide agents toward recommended practices. For app features, AppFunctions (in Beta when written) exposes app functionality to on-device agents, and the A2UI Compose library turns agent-supplied JSON into native Compose interfaces. Journeys use natural-language instructions in XML to perform and verify tests; the author sees potential to complement or eventually replace conventional end-to-end tests, while noting agent testing still needs better approaches. The excerpt also mentions Gemini Nano 4 support in ML Kit, Android Intelligence System, AppState and Navigation 3 updates.

### Source excerpt

How the new tools from Google help Android developers to adopt an agentic approach to Android development.

## Everything You Need to Know About Patrol in 2026

DevFeed: [Everything You Need to Know About Patrol in 2026](<https://devfeed.tech/articles/everything-you-need-to-know-about-patrol-in-2026-23049.md>)

Original publisher: [Read original article](<https://medium.com/flutter-community/everything-you-need-to-know-about-patrol-in-2026-097c09ce8a7e?source=rss----86fb29d7cc6a---4>)

Author: LeanCode

Published: 2026-07-24T02:52:52Z

Content type: article

Language: en

Sources: [Flutter Community](<https://devfeed.tech/sources/flutter-community-medium.md>)

Topics: [Flutter](<https://devfeed.tech/topics/flutter.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [Integration testing](<https://devfeed.tech/topics/integration-testing.md>), [Continuous integration](<https://devfeed.tech/topics/continuous-integration.md>), [mobile devops](<https://devfeed.tech/topics/mobile-devops.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [UiAutomator](<https://devfeed.tech/topics/uiautomator.md>), [AI Integration Strategies](<https://devfeed.tech/topics/ai-integration-strategies.md>), [Visual Studio Code](<https://devfeed.tech/topics/visual-studio-code.md>), [Learning](<https://devfeed.tech/topics/learning.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-powered](<https://devfeed.tech/tags/ai-powered.md>), [android](<https://devfeed.tech/tags/android.md>), [app](<https://devfeed.tech/tags/app.md>), [automation](<https://devfeed.tech/tags/automation.md>), [automation-testing](<https://devfeed.tech/tags/automation-testing.md>), [ci](<https://devfeed.tech/tags/ci.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [e2e](<https://devfeed.tech/tags/e2e.md>), [e2e-testing](<https://devfeed.tech/tags/e2e-testing.md>), [flutter](<https://devfeed.tech/tags/flutter.md>), [flutter-app-development](<https://devfeed.tech/tags/flutter-app-development.md>), [framework](<https://devfeed.tech/tags/framework.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [ios](<https://devfeed.tech/tags/ios.md>), [junit](<https://devfeed.tech/tags/junit.md>), [multiplatform](<https://devfeed.tech/tags/multiplatform.md>), [native](<https://devfeed.tech/tags/native.md>), [notifications](<https://devfeed.tech/tags/notifications.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [package](<https://devfeed.tech/tags/package.md>), [permission](<https://devfeed.tech/tags/permission.md>), [ui-testing](<https://devfeed.tech/tags/ui-testing.md>)

### AI overview

Patrol combines Flutter widget testing with native UI automation so a single end-to-end test can cover Flutter screens and elements outside the Flutter runtime, such as permission prompts, notifications, and other native UI. Its Dart tests run with Flutter testing APIs alongside native runners--XCUITest on iOS and UIAutomator on Android--which communicate over localhost. The excerpt describes Patrol 4.0 support for Android, iOS, and Web, plus a VS Code extension for running and debugging tests and Patrol MCP tools for AI-assisted test execution and inspection. Native test infrastructure enables compatibility with device farms and JUnit reporting; test bundling, sharding, parallel execution, artifact collection, and duration reporting support larger runs. The excerpt also presents Patrol Finders as a more concise alternative to Flutter's built-in finders, with waits for dynamic UI. It does not provide a full feature-by-feature account of Web support or the listed integrations.

### Source excerpt

Author: Katarzyna Szulc from LeanCode Patrol has come a long way from being "just another Flutter testing tool." Today, it powers end-to-end testing across Android, iOS, and Web, integrates with native testing infrastructure, runs on cloud device farms, offers AI-powered testing capabilities, and continues to push the boundaries of what's possible in the Flutter ecosystem. No matter if you've been following Patrol for a while or you're simply looking for the best way to handle Flutter E2E testing, this article is the perfect place to catch up. What exactly is Patrol? Let's break it down Developed by LeanCode, Patrol is a powerful, open-source, multiplatform E2E UI testing framework for Flutter apps that overcomes the limitations of integration_test by handling native interactions. Let's dig deeper into that. Flutter's greatest strength also creates one of its biggest testing challenges. Unlike native apps, Flutter renders its entire UI using its own graphics engine instead of platform-native components. This enables a consistent, pixel-perfect experience across devices, but it also means that native UI automation tools often see a Flutter app as little more than a single canvas. They simply cannot interact with Flutter widgets. The official solution is the integration_test package, which gives tests direct access to the Flutter widget tree. As long as everything happens inside Flutter, it works well. But real apps rarely stay there. System permission dialogs, biometric prompts, notifications, WebViews, and other native UI all exist outside the Flutter runtime, making them inaccessible to integration_test. Patrol bridges this gap. It lets tests interact with both Flutter widgets and native UI elements in a single test. Because Patrol builds on native frameworks such as JUnit and XCTest, it also integrates seamlessly with existing CI pipelines, device farms, and the broader mobile testing ecosystem. If you are new to automating E2E testing in Flutter, you can start by

## Now in Android #119

DevFeed: [Now in Android #119](<https://devfeed.tech/articles/now-in-android-119-22673.md>)

Original publisher: [Read original article](<https://medium.com/androiddevelopers/now-in-android-119-7b86ad2b3e81?source=rss----95b274b437c2---4>)

Author: Meghan Mehta

Published: 2025-07-09T17:02:38Z

Content type: article

Language: en

Sources: [Android Developers](<https://devfeed.tech/sources/android-developers-medium.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [Jetpack](<https://devfeed.tech/topics/jetpack.md>), [UiAutomator](<https://devfeed.tech/topics/uiautomator.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [cameraX](<https://devfeed.tech/topics/camerax.md>), [now-in-android](<https://devfeed.tech/topics/now-in-android.md>), [media3](<https://devfeed.tech/topics/media3.md>), [Macrobenchmark](<https://devfeed.tech/topics/macrobenchmark.md>), [aosp](<https://devfeed.tech/topics/aosp.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [adaptive](<https://devfeed.tech/tags/adaptive.md>), [android](<https://devfeed.tech/tags/android.md>), [android-16](<https://devfeed.tech/tags/android-16.md>), [android-development](<https://devfeed.tech/tags/android-development.md>), [apis](<https://devfeed.tech/tags/apis.md>), [apps](<https://devfeed.tech/tags/apps.md>), [camera](<https://devfeed.tech/tags/camera.md>), [desktop](<https://devfeed.tech/tags/desktop.md>), [featured](<https://devfeed.tech/tags/featured.md>), [google-i-o](<https://devfeed.tech/tags/google-i-o.md>), [navigation](<https://devfeed.tech/tags/navigation.md>), [notifications](<https://devfeed.tech/tags/notifications.md>), [now-in-android](<https://devfeed.tech/tags/now-in-android.md>), [release](<https://devfeed.tech/tags/release.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

Android 16 is available on supported Pixel devices, with source code published in the Android Open Source Project. Highlights include expanded camera and UltraHDR support, progress-style notifications, AGSL runtime color effects, and predictive back previews for three-button navigation. Apps targeting Android 16 must use edge-to-edge layouts; the release also changes system handling of orientation, resizability and aspect-ratio limits. At Google I/O 2025, developer updates included libraries for building adaptive apps across form factors, a redesigned UiAutomator API and other performance tools, plus CameraX, Media3Effects and Google Low-Light Boost for media experiences. The supplied text is an excerpt and does not provide details on the other topics named in the edition's introduction.

### Source excerpt

Android 16, Desktop Experiences, Adaptive Apps, Testing Videos, AndroidX and more! Welcome to Now in Android, your ongoing guide to what's new and notable in the world of Android development. In this edition we will cover Android 16, Desktop Experiences, Adaptive Apps, Testing Videos, AndroidX and more! https://medium.com/media/e5e1b0709e27441479904677742b5c3e/hrefhttps://medium.com/media/91590868757d125ca9ea41b7f1260065/href Most of the content of this post is available in the form of a video or podcast, so feel free to watch or listen rather than read on. (Or do all three to help you remember! There won't be a quiz.) Android 16 is here 🤖 Android 16 is released and available on supported Pixel devices, with new devices to follow. The source code is available at the Android Open Source Project. Key updates include: Enhanced camera and media APIs for pro users, with night mode scene detection, hybrid auto exposure and precise color temperature adjustments. Improved UltraHDR image support with HEIC encoding and an embedded photo picker. Apps targeting Android 16 can no longer opt-out of going edge-to-edge Changes to how the system manages orientation, resizability, and aspect ratio restrictions. System animations for back-to-home, cross-task, and cross-activity by default. In addition, this release extends predictive back navigation to three-button navigation, meaning that users long-pressing the back button will see a glimpse of the previous screen before navigating back. Progress style notifications which lets you create progress-centric notifications that can denote states and milestones in a user journey using points and segments. RuntimeColorFilter and RuntimeXfermode, allowing you to author complex effects like Threshold, Sepia, and Hue Saturation in AGSL and apply them to draw calls. Android 16 is here Top 3 updates for building excellent, adaptive apps at Google I/O '25 🤖 At Google I/O 2025, several advancements were announced for Android, including the rollou

## Cutting some Slack, for leaks and giggles

DevFeed: [Cutting some Slack, for leaks and giggles](<https://devfeed.tech/articles/cutting-some-slack-for-leaks-and-giggles-25621.md>)

Original publisher: [Read original article](<https://blog.p-y.wtf/cutting-some-slack-for-leaks-and-giggles>)

Author: Pierre-Yves Ricau

Published: 2024-05-07T00:47:25Z

Content type: article

Language: en

Sources: [Py's blog](<https://devfeed.tech/sources/py-s-blog.md>)

Topics: [leakcanary](<https://devfeed.tech/topics/leakcanary.md>), [UiAutomator](<https://devfeed.tech/topics/uiautomator.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Android](<https://devfeed.tech/topics/android.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-studio](<https://devfeed.tech/tags/android-studio.md>), [emulator](<https://devfeed.tech/tags/emulator.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [growth](<https://devfeed.tech/tags/growth.md>), [heap](<https://devfeed.tech/tags/heap.md>), [leakcanary](<https://devfeed.tech/tags/leakcanary.md>), [leaks](<https://devfeed.tech/tags/leaks.md>), [maestro](<https://devfeed.tech/tags/maestro.md>), [memory](<https://devfeed.tech/tags/memory.md>), [memory-leak](<https://devfeed.tech/tags/memory-leak.md>), [performance](<https://devfeed.tech/tags/performance.md>), [slack](<https://devfeed.tech/tags/slack.md>)

### AI overview

LeakCanary 3.0 alpha 4 adds a heap-growth detector for cases where memory use keeps rising without a reported leak, such as a collection that continually accumulates log strings. It compares repeated heap dumps and looks for objects whose outgoing edges keep increasing. The author runs it as a UI Automator test that switches between Slack Android workspaces. On normal Android OS builds, dumping another app's heap requires that app to be debuggable or profileable as shell; the author says those restrictions do not apply on non-Play-Store emulator images. The excerpt ends before reporting the experiment's findings.

### Source excerpt

In this article I run the new LeakCanary toolkit against the Slack Android app. Read on to learn a bunch! A new LeakCanary toolkit In two months, I will give a talk at Droidcon SF: Cutting Edges: universal heap trimming with LeakCanary 3 At Square, ...

## The power of open-source. Making Maestro work better with Flutter

DevFeed: [The power of open-source. Making Maestro work better with Flutter](<https://devfeed.tech/articles/the-power-of-open-source-making-maestro-work-better-with-flutter-22931.md>)

Original publisher: [Read original article](<https://maestro.dev/blog/the-power-of-open-source-making-maestro-work-better-with-flutter>)

Author: Bartek Pacia

Published: 2024-03-06T08:00:00Z

Content type: article

Language: en

Sources: [Mobile](<https://devfeed.tech/sources/mobile-dev-medium.md>)

Topics: [Flutter](<https://devfeed.tech/topics/flutter.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Web Accessibility (a11y)](<https://devfeed.tech/topics/web-accessibility.md>), [UiAutomator](<https://devfeed.tech/topics/uiautomator.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [android](<https://devfeed.tech/tags/android.md>), [canvas](<https://devfeed.tech/tags/canvas.md>), [cross-platform](<https://devfeed.tech/tags/cross-platform.md>), [dart](<https://devfeed.tech/tags/dart.md>), [flutter](<https://devfeed.tech/tags/flutter.md>), [github](<https://devfeed.tech/tags/github.md>), [ios](<https://devfeed.tech/tags/ios.md>), [key](<https://devfeed.tech/tags/key.md>), [keys](<https://devfeed.tech/tags/keys.md>), [maestro](<https://devfeed.tech/tags/maestro.md>), [mobile-app](<https://devfeed.tech/tags/mobile-app.md>), [native](<https://devfeed.tech/tags/native.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [react](<https://devfeed.tech/tags/react.md>), [reactive](<https://devfeed.tech/tags/reactive.md>), [tests](<https://devfeed.tech/tags/tests.md>), [ui](<https://devfeed.tech/tags/ui.md>)

### AI overview

Maestro works with Flutter through accessibility data: Flutter's AccessibilityBridge translates its app's semantics tree into a native tree that accessibility tools such as TalkBack, VoiceOver and Maestro can use. The excerpt explains that Flutter widgets can also have keys, mainly used by the framework to manage widget replacement, though keys can uniquely identify widgets. A Maestro user requested the ability to interact with Flutter UI by keys. The excerpt ends before describing how the request was addressed, so the implementation and outcome are not established here.

### Source excerpt

Maestro is the fastest and easiest way to create end-to-end UI tests for your mobile app -- no matter whether it's built with native or cross-platform technologies. Maestro isn't...

## Mastering UI Testing for Android web forms

DevFeed: [Mastering UI Testing for Android web forms](<https://devfeed.tech/articles/mastering-ui-testing-for-android-web-forms-23704.md>)

Original publisher: [Read original article](<https://engineering.theblueground.com/mastering-ui-testing-for-android-web-forms/>)

Author: Vaios Tsitsonis

Published: 2024-01-05T11:50:19Z

Content type: tutorial

Language: en

Sources: [Blueground Engineering blog](<https://devfeed.tech/sources/blueground-engineering-blog.md>)

Topics: [ui-testing](<https://devfeed.tech/topics/ui-testing.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [WebView](<https://devfeed.tech/topics/webview.md>), [UiAutomator](<https://devfeed.tech/topics/uiautomator.md>), [Forms](<https://devfeed.tech/topics/forms.md>), [Android](<https://devfeed.tech/topics/android.md>), [Android Testing](<https://devfeed.tech/topics/android-testing.md>), [Web](<https://devfeed.tech/topics/web.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [forms](<https://devfeed.tech/tags/forms.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [testing](<https://devfeed.tech/tags/testing.md>), [ui-testing](<https://devfeed.tech/tags/ui-testing.md>)

### AI overview

In an Android WebView form, UI tests can fill username and password fields yet leave a JavaScript-enabled submit button disabled, even though typing manually activates it. The excerpt attributes this to testing tools changing HTML input values programmatically: associated events are marked "non-trusted" for security reasons, so the form's event-driven activation logic does not run. It introduces the problem and cause, but ends while describing how the testing tool injects code; no workaround is included in the supplied text.

### Source excerpt

Yeah! We are Android engineers! 🎉 We can build almost anything by ourselves and make it run on any Android device! But sometimes we may need to use a third-party library or incorporate web-based functionality into a WebView to go fast. This can introduce challenges during UI testing.

## 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](<https://devfeed.tech/sources/alex-zhuk-android-development-and-testing.md>)

Topics: [UiAutomator](<https://devfeed.tech/topics/uiautomator.md>), [Web Accessibility (a11y)](<https://devfeed.tech/topics/web-accessibility.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [application](<https://devfeed.tech/tags/application.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [compilation-error](<https://devfeed.tech/tags/compilation-error.md>), [context](<https://devfeed.tech/tags/context.md>), [device](<https://devfeed.tech/tags/device.md>), [dialog](<https://devfeed.tech/tags/dialog.md>), [espresso](<https://devfeed.tech/tags/espresso.md>), [example](<https://devfeed.tech/tags/example.md>), [failure](<https://devfeed.tech/tags/failure.md>), [formatting](<https://devfeed.tech/tags/formatting.md>), [framework](<https://devfeed.tech/tags/framework.md>), [function](<https://devfeed.tech/tags/function.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [id](<https://devfeed.tech/tags/id.md>), [language](<https://devfeed.tech/tags/language.md>), [resources](<https://devfeed.tech/tags/resources.md>), [string](<https://devfeed.tech/tags/string.md>), [test](<https://devfeed.tech/tags/test.md>), [ui-testing](<https://devfeed.tech/tags/ui-testing.md>), [uiautomator](<https://devfeed.tech/tags/uiautomator.md>)

### AI overview

The excerpt recommends replacing hard-coded notification text in UiAutomator tests with values loaded from the app's string resources, helping tests tolerate locale changes and resource text updates. It describes two approaches: look up a resource by passing the package name and resource ID as strings, which is typo-prone, or use the generated resource class. The latter requires application context, obtained from the test context, and a helper that returns the string for a resource ID. Reusing resources provides a single source of truth and lets compilation catch renamed resource identifiers. The excerpt omits the actual API and class names and code, so it does not provide implementation details.

### Source excerpt

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

## UI tests with Jetpack Compose and Appium x UIAutomator

DevFeed: [UI tests with Jetpack Compose and Appium x UIAutomator](<https://devfeed.tech/articles/ui-tests-with-jetpack-compose-and-appium-x-uiautomator-25941.md>)

Original publisher: [Read original article](<https://juliensalvi.medium.com/ui-tests-with-jetpack-compose-and-appium-x-uiautomator-5d276fb655aa?source=rss-cbfc736ddcd3------2>)

Author: Julien Salvi

Published: 2022-12-05T13:01:16Z

Content type: tutorial

Language: en

Sources: [Julien Salvi](<https://devfeed.tech/sources/stories-by-julien-salvi-on-medium.md>)

Topics: [ui-testing](<https://devfeed.tech/topics/ui-testing.md>), [UiAutomator](<https://devfeed.tech/topics/uiautomator.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [Android Testing](<https://devfeed.tech/topics/android-testing.md>), [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>)

Tags: [aircall](<https://devfeed.tech/tags/aircall.md>), [android](<https://devfeed.tech/tags/android.md>), [annotation](<https://devfeed.tech/tags/annotation.md>), [api](<https://devfeed.tech/tags/api.md>), [appium](<https://devfeed.tech/tags/appium.md>), [automation](<https://devfeed.tech/tags/automation.md>), [compose](<https://devfeed.tech/tags/compose.md>), [framework](<https://devfeed.tech/tags/framework.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [migration](<https://devfeed.tech/tags/migration.md>), [production](<https://devfeed.tech/tags/production.md>), [qa](<https://devfeed.tech/tags/qa.md>), [quality](<https://devfeed.tech/tags/quality.md>), [semantics](<https://devfeed.tech/tags/semantics.md>), [tag](<https://devfeed.tech/tags/tag.md>), [test](<https://devfeed.tech/tags/test.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [ui](<https://devfeed.tech/tags/ui.md>), [ui-testing](<https://devfeed.tech/tags/ui-testing.md>), [uiautomator](<https://devfeed.tech/tags/uiautomator.md>)

### AI overview

Aircall's existing Appium and UIAutomator tests located Views by resource ID, but could not find Compose components by their tags. To support the migration, add a semantics testTag to each Composable, enable testTagsAsResourceId at the top-level Composable, and change @AndroidFindBy to use a UiSelector with the component ID. UIAutomator's UiSelector can also locate elements by text or class name. The article says this approach let the team keep existing component IDs and avoid major QA-side rewrites; it reports validating the move to Compose, not broader results beyond Aircall's setup.

### Source excerpt

At Aircall we are pushing a lot around quality thanks to our great QA team. Huge efforts are put on Android developer side with the unit tests and our QA engineers tackle everything around automation & UI tests. Before integrating our brand new design system made with Compose UI in production, we wanted to be sure that the transition to Compose would be painless with our automation framework and tools: Appium and UIAutomator. This article will explain how the Android team validated the move to Compose with our automation framework. Automation tests with View components The Aircall QA team has developed lots of automation tests that cover more than 90% of the use cases in the Android app. And to do so, they rely on Appium with the UI testing framework UIAutomator which is an instrumentation-based API and works with the AndroidJUnitRunner test runner. To locate a View-based component in the application, UIAutomator provides an annotation @AndroidFindBy where you need to specify the resource id of a UI element you want to identify. @AndroidFindBy(id = "myButtonId") protected WebElement myButton; But this method does work properly with Compose UI components. Indeed, when looking for a Composable with its dedicated tag, no elements are found in the screen. Now, let's have a closer look at the changes we had to make in order to smoothly add our new Compose code in the current codebase and not breaking everything on the automation side. UI tests with Compose UI and UIAutomator To unlock the UI testing with UIAutomator and Compose, we will have to take advantage of the semantics Modifier in each Composable we want to locate with the testTag property. In order to ease the migration, we are going to keep the same component IDs we were using with our View-based elements. Modifier.semantics { testTag = "myButtonId" } And at the top level Composable, we should toggle the configuration to map testTags to the resource IDs in the semantics Modifier. This will allow the automation f