मुख्य सामग्री पर जाएँ
Skillpedia
टेस्टिंग48k · #3743

android-ui-journey-testing

यह क्या करती है

यह टूल Android ऐप कैसे काम करता है, यह टेस्ट करता है। यह एक खास फ़ाइल (XML) में दिए गए स्टेप्स के क्रम को फ़ॉलो करता है और देखता है कि सब उम्मीद के मुताबिक चल रहा है या नहीं, ठीक वैसे जैसे कोई यूज़र ऐप चलाता है।

कब इस्तेमाल करें

  • ✓जब जाँचना हो कि Android ऐप सही व्यवहार कर रहा है या नहीं।
  • ✓जब कई क्लिक और जाँच वाले काम अपने आप करवाने हों।
  • ✓जब टेस्ट के बारे में JSON फ़ॉर्मेट में विस्तृत रिपोर्ट चाहिए।

Skill का लिंक

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 में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/android-ui-journey-testing/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“लॉगिन फ़्लो टेस्ट करो और जाँचो कि होम स्क्रीन पर यूज़रनेम दिखाई दे रहा है।”

हर हफ़्ते 5 नई skills, 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 फ़ाइल क्या है?

यह एक टेक्स्ट फ़ाइल है जिसमें टेस्ट के लिए स्टेप-दर-स्टेप निर्देश होते हैं। इसमें लिखा होता है कि ऐप को क्या करना है और क्या जाँचना है।

अगर कोई टेस्ट फ़ेल हो जाए तो क्या होता है?

टूल वहीं रुक जाता है, उस स्टेप को फ़ेल मार्क करता है और कारण लिख देता है। उसके बाद के स्टेप्स 'skipped' मार्क हो जाते हैं।

जानकारी

लेखक का मूल विवरण

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

repo: sickn33/agentic-awesome-skills

लोकप्रियता

GitHub स्टार
48k
रैंकिंग में स्थान
#3743
लाइसेंस
MIT
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

00-andruia-consultant

48k

आपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।

AI और एजेंटएजेंट

007

48k

आपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।

कोडिंगसिक्योरिटी

10-andruia-skill-smith

48k

आपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।

AI और एजेंटएजेंट

20-andruia-niche-intelligence

48k

आपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।

लेखन और डॉक्यूमेंटरिसर्च

मिलती-जुलती skills