본문으로 건너뛰기
Skillpedia
테스트48k · #3743

android-ui-journey-testing

하는 일

이 도구는 Android 애플리케이션이 어떻게 작동하는지 테스트합니다. 특별한 파일(XML)에 정의된 단계들을 따라 모든 것이 기대대로 작동하는지 확인합니다. 사용자가 앱과 상호작용하는 것을 흉내 냅니다.

사용하는 경우

  • ✓Android 앱이 올바르게 작동하는지 테스트하고 싶을 때.
  • ✓여러 번의 클릭과 확인이 필요한 작업을 자동화해야 할 때.
  • ✓테스트에 대한 자세한 보고서를 파일 형식(JSON)으로 원할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

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.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“로그인 과정을 테스트하고, 홈 화면에 사용자 이름이 나타나는지 확인해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 도구는 버튼 클릭이나 화면에 무언가 있는지 확인하는 등 해야 할 일을 적은 지시 파일(XML)을 읽습니다. 각 단계를 실행하고 성공 또는 실패를 기록한 뒤 최종 보고서를 만듭니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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"
      ],

…
자주 묻는 질문

‘여정(journey)’이란 무엇인가요?

로그인, 장바구니에 상품 담기 등 앱 사용을 모의로 재현하는 일련의 행동과 확인입니다.

XML 파일은 무엇인가요?

테스트를 위한 단계별 지시가 담긴 텍스트 파일입니다. 앱이 무엇을 해야 하고 무엇을 확인해야 하는지 명시합니다.

테스트가 실패하면 어떻게 되나요?

도구는 그 지점에서 실행을 멈추고, 해당 단계를 실패로 표시하고 이유를 기록합니다. 이후 단계는 건너뜀으로 표시됩니다.

상세 정보

작성자의 원본 설명

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

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#3743
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬