Skip to content
Skillpedia
Testing48k · #2129

android-ui-journey-testing

Teaches your AI agent to design clean, easy-to-use interfaces and test code and catch bugs before users do.

What it does

This tool tests how an Android application works. It follows a sequence of steps defined in a special file (XML) to see if everything functions as expected, mimicking a user interacting with the app.

When to use it

  • ✓When you want to test if an Android app behaves correctly.
  • ✓When you need to automate tasks involving multiple clicks and checks.
  • ✓When you want a detailed report in a file format (JSON) about the tests.

Example of what to ask your AI

“Test the login flow and verify that the username appears on the home screen.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/android-ui-journey-testing/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/android-ui-journey-testing/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

The tool reads a file with instructions (XML) that dictate what to do, like clicking buttons or checking if something is on the screen. It executes each step and records whether it succeeded or failed, generating a final report.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add sickn33/agentic-awesome-skills --skill android-ui-journey-testing

Or download just the file:

curl -L https://raw.githubusercontent.com/sickn33/agentic-awesome-skills/main/plugins/agentic-awesome-skills-claude/skills/android-ui-journey-testing/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Android UI Journey Testing

Overview

This skill outlines the standard workflow for running XML-specified User Journey tests on Android applications. A "journey" is a sequenced set of user actions and state assertions designed to verify end-to-end functionality. The journey XML acts as the source of truth for the app's behavior. The executor proceeds sequentially, performing UI interactions, checking state assertions, and writing a standardized JSON outcome report.

When to Use

  • Use when evaluating an Android application's UI behavior against an XML test specification.
  • Use when automating multi-step user flows (e.g., login, checkout, navigation) and verifying expectations.
  • Use when running verification tests and generating standardized JSON test reports.
  • Use when debugging application flows on physical devices or emulators using ADB commands.

How It Works

graph TD
    A[Parse Journey XML] --> B[Execute Action / Interaction]
    B --> C{Success?}
    C -- Yes --> D[Verify State Expectation / Assertion]
    C -- No/Crash --> G[Mark FAILED & Exit]
    D -- Passed --> E{More Steps?}
    D -- Failed --> G
    E -- Yes --> B
    E -- No --> F[Output JSON Summary]

Step 1: Parse the Journey Specification

Read and parse the XML test suite structure. The root node <journey> defines the test case name, and the <actions> block contains the sequence of test steps.

<journey name="Search and Cart Flow">
   <description>Verify that searching for an item and adding it to the cart succeeds.</description>
   <actions>
      <action>Search for soda</action>
      <action>Tap the first search result</action>
      <action>Verify that the product detail screen is shown</action>
   </actions>
</journey>

Step 2: Sequential Step Evaluation

Process each <action> element in the exact order specified. Test steps are classified into two groups:

A. Interactive Actions (Taps, Swipes, Text Input)

Perform the physical UI interaction using ADB.

  • Tapping: Tap the center of the target element's bounds:
    adb shell input tap <x> <y>
    
  • Swiping/Scrolling: Swipe from coordinate to coordinate with a duration:
    adb shell input swipe <x1> <y1> <x2> <y2> <duration_ms>
    
  • Text Typing: Type text into the active input field:
    adb shell input text "<string>"
    

If the element is missing or the action cannot be performed, the action and the journey fail.

B. State Assertions (Expectation Verification)

Steps beginning with "verify", "check", or "ensure" represent state assertions.

  • Inspect the current screen (using screenshots or uiautomator dump) without interacting or scrolling.
  • Confirm all sub-assertions are met. For example, "Verify that the app is on the Home screen and the logo is visible" fails if the home screen is not displayed or the logo is missing.

Step 3: Handle Failures and Crashes

If the application crashes, exits, freezes, or fails an assertion:

  1. Immediately stop journey execution.
  2. Mark the failed step as FAILED.
  3. Mark any subsequent steps as SKIPPED.
  4. Document the exact reason for failure.

Step 4: Generate JSON Report

Format the execution results into a standardized JSON schema and write it to the output log.


Examples

Example 1: Full Journey XML Specification

<journey name="Login and Profile Edit">
   <description>Logs into the app, navigates to settings, and changes user profile information.</description>
   <actions>
      <action>Verify that the username input field is visible</action>
      <action>Tap the username input field</action>
      <action>Type "testuser" into the input</action>
      <action>Tap the password input field</action>
      <action>Type a redacted test password into the input</action>
      <action>Tap the "Login" button</action>
      <action>Verify that the Home dashboard is visible and user profile photo is shown</action>
   </actions>
</journey>

Example 2: Standard JSON Outcome Report

{
  "journey": "Login and Profile Edit",
  "results": [
    {
      "action": "Verify that the username input field is visible",
      "status": "PASSED",
      "commands": [],
      "comment": "Username input detected at bounds [100,200][980,300] via UI dump."
    },
    {
      "action": "Tap the username input field",
      "status": "PASSED",
      "commands": [
        "adb shell input tap 540 250"
      ],

…
FAQ

What is a 'journey'?

It's a sequence of actions and checks that simulate using an application, such as logging in, adding an item to a cart, etc.

What is the XML file?

It's a text file containing step-by-step instructions for the tests. It specifies what the application should do and what to verify.

What happens if a test fails?

The tool stops execution at that point, marks the step as failed, and notes the reason. Subsequent steps are marked as skipped.

Details

Original description by the author

XML-specified Android UI journey testing, interactive step execution, assertion verification, and JSON outcome reporting.

repo: sickn33/agentic-awesome-skills

Popularity

GitHub stars
48k
Ranking position
#2129
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills