Tag

UiAutomator

1 views collected around this technical thread.

360 Quality & Efficiency
360 Quality & Efficiency
Aug 20, 2021 · Mobile Development

Using ContentProvider for Cross‑Process Communication with UIAutomator 1.0 on Android

This article explains how to keep UIAutomator 1.0 test cases running on Android 11+ by implementing a server‑side ContentProvider, accessing it via reflection from the UIAutomator or shell process, and demonstrates the complete Java code for provider creation and invocation.

AndroidContentProviderCross-Process
0 likes · 10 min read
Using ContentProvider for Cross‑Process Communication with UIAutomator 1.0 on Android
Qunar Tech Salon
Qunar Tech Salon
Nov 10, 2020 · Mobile Development

Android Automation Interaction: Traditional ADB Scripts and Native Methods

This article examines Android automation techniques, comparing simple ADB script‑based interactions with native‑code approaches using activity lifecycle callbacks, view identification, and MotionEvent simulation, and discusses their advantages, limitations, and suitable application scenarios.

ADBAndroidAutomation
0 likes · 8 min read
Android Automation Interaction: Traditional ADB Scripts and Native Methods
360 Quality & Efficiency
360 Quality & Efficiency
Sep 25, 2020 · Mobile Development

Cloud‑Based UIAutomator SDK for Android Compatibility Testing

The article presents a cloud‑driven UIAutomator SDK that automates Android app compatibility testing by handling installation, cold‑start, hot‑start and uninstall steps, dynamically updating dialog‑matching data, and providing robust error‑handling to ensure reliable testing across diverse Android devices.

AndroidAutomationCloud Configuration
0 likes · 4 min read
Cloud‑Based UIAutomator SDK for Android Compatibility Testing
360 Quality & Efficiency
360 Quality & Efficiency
May 15, 2020 · Mobile Development

Resolving UIAutomator 1.0 NoClassDefFoundError on Android R Emulator

The article explains why UIAutomator 1.0 scripts fail on the Android R emulator due to a missing android.test.RepetitiveTest class, analyzes the stack trace to locate the error in UiAutomatorTestRunner, and provides a workaround by manually initializing the test framework via app_process.

AndroidAndroid RMobile Development
0 likes · 5 min read
Resolving UIAutomator 1.0 NoClassDefFoundError on Android R Emulator
360 Quality & Efficiency
360 Quality & Efficiency
Jan 2, 2020 · Mobile Development

Common Element Locating Strategies in Appium for Mobile Automation

This article introduces Appium's basic element locating techniques—including id, name, class name, XPath, UIAutomator, and relative coordinates—explains how to handle non‑unique elements through iteration or OCR, and demonstrates image‑based locating with OpenCV and screenshot code examples.

AppiumElement LocatingImage Recognition
0 likes · 5 min read
Common Element Locating Strategies in Appium for Mobile Automation
360 Quality & Efficiency
360 Quality & Efficiency
Nov 1, 2019 · Mobile Development

Using uiautomator1.0 for Android Automation: Shell Context, PackageManager, Database, Activity & Process Monitoring, and Chinese Input Support

This article demonstrates how to leverage uiautomator1.0 for Android automation by creating a shell‑based Context, accessing PackageManager, managing SQLite databases, monitoring app activities and processes, and implementing Chinese text input through AccessibilityNodeInfo.

AndroidAutomationDatabase
0 likes · 4 min read
Using uiautomator1.0 for Android Automation: Shell Context, PackageManager, Database, Activity & Process Monitoring, and Chinese Input Support
FunTester
FunTester
Aug 31, 2019 · Mobile Development

Retry Failed Android UiAutomator Test Cases and Export Results to Excel

This article explains how to automatically rerun failed Android UiAutomator test cases, collect their results, and generate a detailed Excel report using Java code that handles both initial and retry executions.

AndroidJavaUiAutomator
0 likes · 4 min read
Retry Failed Android UiAutomator Test Cases and Export Results to Excel
FunTester
FunTester
Aug 19, 2019 · Frontend Development

Counting UI Elements in Android UiAutomator with a Custom Java Method

The article describes a problem encountered while learning Android UiAutomator—determining the number of assignment items on a screen—and presents a Java solution that iterates over UI elements using a custom getCountByResourceId() method, similar to Selenium's findElements(), with a code example illustrating the approach.

AndroidAutomationCode Example
0 likes · 2 min read
Counting UI Elements in Android UiAutomator with a Custom Java Method
FunTester
FunTester
Aug 15, 2019 · Mobile Development

Using UiWatcher to Automatically Dismiss Android Security Warning Dialogs

The author encountered unexpected security‑warning pop‑ups during Android UIAutomator testing and created a UiWatcher that automatically clicks "Do not remind" and "Allow" to keep the test flow uninterrupted, sharing the full code for others to use.

AndroidAutomationMobileTesting
0 likes · 2 min read
Using UiWatcher to Automatically Dismiss Android Security Warning Dialogs
360 Quality & Efficiency
360 Quality & Efficiency
Aug 9, 2019 · Mobile Development

Building Uiautomator 1.0 Jar with Ant in Android Studio

This guide explains how to construct a Uiautomator 1.0 jar package using Ant within Android Studio, covering required SDK tools, project setup, build.xml generation, Gradle integration, jar composition, execution flow, and a sample custom test service implementation for Android testing.

AndroidAntMobile Development
0 likes · 6 min read
Building Uiautomator 1.0 Jar with Ant in Android Studio
FunTester
FunTester
Aug 3, 2019 · Mobile Development

Recursive Login Handling in Android UiAutomator for Automated Testing

To avoid test failures caused by being logged into an unintended account, the author implements a recursive login routine in an Android UiAutomator script that checks the current user, logs out if necessary, and re‑logs in with the correct credentials, illustrating a concise and reusable testing solution.

AndroidRecursive FunctionUI Automation
0 likes · 2 min read
Recursive Login Handling in Android UiAutomator for Automated Testing
360 Quality & Efficiency
360 Quality & Efficiency
Jul 19, 2019 · Mobile Development

Implementing Sequential UI Traversal for Android Apps Using UIAutomator on the 360 Open Testing Platform

This article explains how to perform ordered UI traversal of an Android application with UIAutomator on the 360 Open Testing platform, covering required parameters, a seven‑step implementation process, UI change listening via AccessibilityService, element dumping, sorting, comparison methods, interaction automation, and termination conditions.

360 Open TestingAccessibilityServiceAndroid
0 likes · 4 min read
Implementing Sequential UI Traversal for Android Apps Using UIAutomator on the 360 Open Testing Platform
360 Quality & Efficiency
360 Quality & Efficiency
Dec 14, 2018 · Mobile Development

UiAutomator 2.0 Overview, Features, and Integration Guide for Android Testing

This article provides a comprehensive overview of Android UiAutomator 2.0, detailing its major features, migration differences from UiAutomator 1.0, important considerations, Gradle integration steps, test case creation and execution, as well as the UiDevice API and new UiObject2 capabilities for mobile UI automation.

Android TestingGradleInstrumentation
0 likes · 5 min read
UiAutomator 2.0 Overview, Features, and Integration Guide for Android Testing
Baidu Intelligent Testing
Baidu Intelligent Testing
Oct 27, 2017 · Mobile Development

From Zero to a Universal Android Script Testing Solution: Mixed‑Script Automation, Image‑Recognition, and Recording Tools

The article details how Baidu MTC designed and implemented a universal Android script testing platform that combines UIAutomator, a custom Clean‑SDK for popup handling, image‑recognition algorithms, and a recording‑playback tool to enable robust, non‑native mobile automated testing across thousands of devices.

AndroidImage RecognitionUiAutomator
0 likes · 12 min read
From Zero to a Universal Android Script Testing Solution: Mixed‑Script Automation, Image‑Recognition, and Recording Tools
Baidu Intelligent Testing
Baidu Intelligent Testing
Jul 26, 2017 · Mobile Development

SmartMonkey: An Enhanced Android Automated Testing Framework

This article introduces SmartMonkey, a custom Android testing solution that overcomes the randomness and inefficiency of the built‑in Monkey tool by using UIAutomator to parse UI hierarchies, select meaningful nodes, and execute controlled actions for more effective stability and functional testing.

AndroidMobile DevelopmentMonkey
0 likes · 8 min read
SmartMonkey: An Enhanced Android Automated Testing Framework
Baidu Intelligent Testing
Baidu Intelligent Testing
Jul 25, 2017 · Mobile Development

Using UIAutomator for Mobile App Data Scraping and Quality Evaluation in K12 Education Apps

This article describes how to employ UIAutomator to automate data extraction from K12 education mobile apps, handling device identity spoofing, image input normalization, and UI control reverse‑engineering to overcome encryption, token checks, and non‑standard input challenges.

Image NormalizationK12 EducationUI Reverse Engineering
0 likes · 5 min read
Using UIAutomator for Mobile App Data Scraping and Quality Evaluation in K12 Education Apps
Baidu Intelligent Testing
Baidu Intelligent Testing
Jul 26, 2016 · Mobile Development

General Mobile Performance Evaluation Scheme for Competitive Products

This article presents a comprehensive, evolving mobile performance evaluation framework for O2O applications, detailing assessment parameters, multi‑stage automation approaches, uiautomator enhancements, and key technical optimizations to enable timely, extensible, and accurate performance testing of competitive mobile products.

AndroidAutomation TestingO2O
0 likes · 4 min read
General Mobile Performance Evaluation Scheme for Competitive Products