Tagged articles
26 articles
Page 1 of 1
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 LocatingMobile Automation
0 likes · 5 min read
Common Element Locating Strategies in Appium for Mobile Automation
FunTester
FunTester
Sep 30, 2019 · Mobile Development

Add a Screen Wake‑Up Reminder to UiAutomator Tests

This article shows how to implement a post‑test reminder for UiAutomator by using screen sleep and wake‑up logic, providing Java code that checks the screen state, re‑activates it if needed, and optionally sets screen brightness via an ADB command.

AndroidJavaScreen Reminder
0 likes · 3 min read
Add a Screen Wake‑Up Reminder to UiAutomator Tests
FunTester
FunTester
Sep 12, 2019 · Mobile Development

How to Distinguish UI Controls by Color Using UiAutomator in Android

The author shares a practical UiAutomator solution that captures screenshots, extracts bitmap data, and analyzes pixel colors to programmatically determine whether a UI element appears blue, including reusable helper methods for retrieving individual red, green, blue, or full RGB values.

AndroidColor DetectionJava
0 likes · 6 min read
How to Distinguish UI Controls by Color Using UiAutomator in Android
FunTester
FunTester
Sep 11, 2019 · Mobile Development

Automating Multi‑Channel Login Tests with UiAutomator and Java

This article explains how to automate the login process for multiple Android channel packages by packaging a Java UiAutomator script into a JAR, pushing it to the device, iterating over each APK, executing ADB commands, and logging success or failure for each login method.

ADBAndroidJava
0 likes · 8 min read
Automating Multi‑Channel Login Tests with UiAutomator and Java
FunTester
FunTester
Sep 4, 2019 · Mobile Development

A Flexible UiAutomator Helper for Android UI Testing – Full Source and Guide

This article presents a customizable Java helper class for Android UiAutomator that streamlines test project creation, build modification, APK deployment, and test execution, complete with detailed code, command explanations, and logging utilities for flexible mobile UI testing.

AndroidAutomationJava
0 likes · 8 min read
A Flexible UiAutomator Helper for Android UI Testing – Full Source and Guide
FunTester
FunTester
Sep 2, 2019 · Mobile Development

Implementing Long‑Press Actions in Android UiAutomator Tests

This guide shows how to create reusable UiAutomator helper methods that perform long‑press actions on Android UI elements—by resource ID, visible text, or explicit coordinates—using a swipe call with a 300‑step duration, and mentions extending the approach to custom gesture paths.

AndroidAutomationLong Press
0 likes · 3 min read
Implementing Long‑Press Actions in Android UiAutomator Tests
FunTester
FunTester
Sep 1, 2019 · Mobile Development

Stabilizing Android Home‑Page Refresh with UiAutomator and Multithreading

This article explains how to use UiAutomator scripts combined with Java multithreading to continuously refresh an Android app’s home page while capturing logs and performance metrics, including full code examples for command execution, timestamp handling, and test loops.

ADBAndroidJava
0 likes · 6 min read
Stabilizing Android Home‑Page Refresh with UiAutomator and Multithreading
FunTester
FunTester
Aug 26, 2019 · Mobile Development

A Complete UiAutomator Utility Library for Android UI Testing

This article shares a comprehensive collection of reusable UiAutomator methods—including swipe gestures, screenshot handling, image analysis, UI element lookup, waiting strategies, click actions, scrolling, app launch/stop commands, and miscellaneous helpers—providing Android developers with ready‑to‑use Java code for robust UI automation testing.

AndroidAutomationJava
0 likes · 21 min read
A Complete UiAutomator Utility Library for Android UI Testing
FunTester
FunTester
Aug 25, 2019 · Mobile Development

Programmatically Switch Android Input Methods with UiAutomator and ADB

This guide shows how to automatically change the Android input method to UTF‑7 or any other IME during UiAutomator tests by executing ADB commands, listing available IMEs, and handling command output on both macOS and Windows environments.

ADBAndroidAutomation
0 likes · 6 min read
Programmatically Switch Android Input Methods with UiAutomator and ADB
FunTester
FunTester
Aug 23, 2019 · Mobile Development

Running UiAutomator on macOS: Full‑Path Fixes and Common Pitfalls

When using UiAutomator on macOS you must prepend the full path to the Android command and adjust slash handling, otherwise you encounter "Cannot run program" errors; this guide shows the errors, the required fixes, and provides a complete Java helper class for automated testing.

AndroidAutomationJava
0 likes · 10 min read
Running UiAutomator on macOS: Full‑Path Fixes and Common Pitfalls
FunTester
FunTester
Aug 17, 2019 · Mobile Development

Draw a Heart Shape on Android with UiAutomator Math Functions

This tutorial shows how to use the polar equation of a heart, convert mathematical coordinates to screen coordinates, and employ UiAutomator's swipe method to draw a heart shape on an Android device using Java.

AndroidAutomationGraphics
0 likes · 4 min read
Draw a Heart Shape on Android with UiAutomator Math Functions
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
FunTester
FunTester
Aug 10, 2019 · Mobile Development

How to Capture and Gracefully Stop Android Logcat in UiAutomator

This guide explains how to use Java's Runtime API within a UiAutomator test to start, filter, and safely terminate an adb logcat process, including a complete Logcat thread implementation and tips for preventing oversized log files.

AndroidJavaThread
0 likes · 8 min read
How to Capture and Gracefully Stop Android Logcat in UiAutomator
FunTester
FunTester
Aug 3, 2019 · Mobile Development

How to Use Java Multithreading for Database Operations in Android UIAutomator Tests

The article demonstrates a simple Java ThreadTest class that enables concurrent database updates during Android UIAutomator and Selenium‑Java test cases, showing how to control execution with key flags, integrate the thread into test methods, and optionally use join() to avoid exceptions.

JavaSeleniumUIAutomator
0 likes · 4 min read
How to Use Java Multithreading for Database Operations in Android UIAutomator Tests
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
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.

AndroidScript RecordingUIAutomator
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.

AndroidAutomated TestingMobile Development
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