awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
android avatar

android/testing-samples

0
View on GitHub↗
9,297 星标·3,638 分支·Java·Apache-2.0·2 次浏览

Testing Samples

This is a collection of sample projects that demonstrate how to write automated tests for Android applications. The samples cover a range of testing techniques, including simulating user interactions with the Espresso framework, verifying navigation and inter-component communication through intent interception, and managing activity, intent, and service lifecycles using reusable test rules.

The repository provides concrete implementations for testing across multiple application windows, capturing screenshots during test execution for visual verification, and synchronizing test assertions with background work to prevent flaky results. It also includes examples of parameterized test execution that runs the same test logic with multiple input values, as well as techniques for interacting with and verifying content inside embedded WebViews.

The samples are organized to illustrate how to control and inspect UI elements across different applications on a device, and how to organize tests into reusable suites for comprehensive coverage. The documentation and code examples are structured to serve as reference implementations for Android testing frameworks and automated UI and unit test patterns.

Features

  • Android UI Testing - Provides sample implementations for writing automated UI tests that simulate user interactions on Android.
  • Testing Samples - Serves as a collection of sample projects demonstrating various Android testing frameworks and techniques.
  • Test Rule Wrappers - Provides reusable test rules that automatically launch and tear down activities for each test method.
  • Android Intent Integrations - Provides sample implementations for intercepting and verifying intents to test navigation and inter-app communication in Android.
  • Intent Stubbing - Stubs intents to verify navigation and inter-component communication without launching external activities.
  • Intent Verification Testing - Captures and stubs intents in Android tests to verify navigation and communication between app components.
  • Intent Interception for Testing - Captures outgoing intents or stubs incoming ones to verify navigation and inter-component communication in tests.
  • Espresso UI Testing - Provides sample code showing how to use Espresso to simulate user interactions and verify on-screen element states in Android apps.
  • View Hierarchy Matchers - Matches on-screen elements by traversing the view hierarchy and applying declarative matchers for state verification.
  • Test Background Work Synchronization - Pauses test execution until background tasks finish to prevent flaky assertions.
  • Android Parameterized Test Execution - Provides sample implementations for running Android tests with multiple input values and organizing them into reusable suites.
  • Espresso Framework Testing - Uses the Espresso framework to perform UI actions and assertions in Android tests for reliable app behavior.
  • Android - Demonstrates controlling activity, intent, and service lifecycles in Android tests with reusable rules.
  • Android Lifecycle Test Rules - Controls activity, intent, or service lifecycle within test cases using reusable Android test rules.
  • Espresso UI Testing - Simulates user actions and checks on-screen element states using the Espresso framework for Android.
  • Test Idling Resources - Synchronizes test assertions with background work by polling registered resources until they report idle.
  • WebView Test Automation - Performs actions and checks content inside embedded web pages during test execution.
  • Multi-Window Testing - Provides sample implementations for directing test actions to UI elements across multiple application windows on Android.
  • Android - Captures frame buffer screenshots at test checkpoints for visual verification of Android UI state.
  • Test - Takes and saves screenshots of the current screen during test execution for visual verification.
  • Parameterized Test Runners - Runs the same test logic with multiple input values by iterating over annotated data sources.
  • Parameterized Test Suites - Executes tests with multiple input values and organizes them into reusable test suites.
  • Android Cross-App UI Control - Controls and inspects UI elements across multiple applications on an Android device.
  • WebView DOM Injection - Injects JavaScript into embedded WebViews to query and manipulate DOM elements during test execution.
  • Android Multi-Window UI Testing - Directs test actions to UI elements across multiple application windows on Android devices.
  • Android Multi-Window Focus Routing - Routes UI interactions to the correct window by resolving display and window token identifiers during tests.

Star 历史

android/testing-samples 的 Star 历史图表android/testing-samples 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Testing Samples 的开源替代方案

相似的开源项目,按与 Testing Samples 的功能重合度排序。
  • googlesamples/android-testing-templatesgooglesamples 的头像

    googlesamples/android-testing-templates

    1,955在 GitHub 上查看↗

    This repository provides a collection of reference implementations and patterns for testing Android applications. It serves as a guide for developers to integrate standard testing libraries and frameworks into their projects, covering the full spectrum of verification from local business logic to complex interface interactions. The project distinguishes itself by demonstrating how to configure and execute tests across diverse environments, including local virtual machines and physical devices or emulators. It provides specific patterns for validating inter-application communication, automatin

    Java
    在 GitHub 上查看↗1,955
  • openatx/uiautomator2openatx 的头像

    openatx/uiautomator2

    7,864在 GitHub 上查看↗

    uiautomator2 is an Android device automation tool and UI testing library. It functions as a framework for automating user interface interactions and managing device states via a remote client. The project provides a remote management interface for controlling Android applications, simulating user gestures, and managing system settings. It enables the analysis of XML UI hierarchies to locate interface elements and verify application behavior. The tool covers broad capability areas including application lifecycle management, device connectivity, and file system operations. It also includes sys

    Pythonpythontestuiautomator
    在 GitHub 上查看↗7,864
  • facebook/screenshot-tests-for-androidfacebook 的头像

    facebook/screenshot-tests-for-android

    1,741在 GitHub 上查看↗

    This project is an automated testing framework designed to capture and verify the visual state of Android interface components. It provides a system for generating deterministic snapshots of UI elements, allowing developers to establish baselines for layout consistency and detect unintended visual regressions across different software versions and hardware configurations. The framework distinguishes itself by enabling isolated component rendering, which allows individual views to be tested without requiring a full application build. It ensures consistency by controlling the rendering lifecycl

    Java
    在 GitHub 上查看↗1,741
  • google/earlgreygoogle 的头像

    google/EarlGrey

    5,683在 GitHub 上查看↗

    EarlGrey is an iOS UI automation test framework that enables writing and running automated tests simulating real user interactions. It provides a synchronized test execution engine that automatically waits for animations, network requests, and run-loop states to complete before performing test actions or assertions, producing stable and repeatable results across test runs. The framework distinguishes itself through out-of-process interaction handling, managing system alerts and app switching during tests, and a pixel-level visibility checker that verifies UI elements are actually visible and

    Objective-C
    在 GitHub 上查看↗5,683
查看 Testing Samples 的所有 13 个替代方案→

常见问题解答

android/testing-samples 是做什么的?

This is a collection of sample projects that demonstrate how to write automated tests for Android applications. The samples cover a range of testing techniques, including simulating user interactions with the Espresso framework, verifying navigation and inter-component communication through intent interception, and managing activity, intent, and service lifecycles using reusable test rules.

android/testing-samples 的主要功能有哪些?

android/testing-samples 的主要功能包括:Android UI Testing, Testing Samples, Test Rule Wrappers, Android Intent Integrations, Intent Stubbing, Intent Verification Testing, Intent Interception for Testing, Espresso UI Testing。

android/testing-samples 有哪些开源替代品?

android/testing-samples 的开源替代品包括: googlesamples/android-testing-templates — This repository provides a collection of reference implementations and patterns for testing Android applications. It… openatx/uiautomator2 — uiautomator2 is an Android device automation tool and UI testing library. It functions as a framework for automating… facebook/screenshot-tests-for-android — This project is an automated testing framework designed to capture and verify the visual state of Android interface… google/earlgrey — EarlGrey is an iOS UI automation test framework that enables writing and running automated tests simulating real user… awaitility/awaitility — Awaitility is a Java asynchronous testing library and conditional polling framework. It provides a fluent… robolectric/robolectric — Robolectric is a unit testing framework that runs Android tests directly inside the Java Virtual Machine, eliminating…