android-ui-journey-testing
Fungsinya
Alat ini menguji cara kerja aplikasi Android. Alat ini mengikuti serangkaian langkah yang ditentukan dalam file khusus (XML) untuk melihat apakah semuanya berfungsi sebagaimana mestinya, dengan meniru pengguna yang berinteraksi dengan aplikasi.
Kapan dipakai
- ✓Saat Anda ingin menguji apakah aplikasi Android berperilaku dengan benar.
- ✓Saat Anda perlu mengotomatisasi tugas yang melibatkan banyak klik dan pengecekan.
- ✓Saat Anda ingin laporan terperinci dalam format file (JSON) tentang hasil tes.
Link skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/android-ui-journey-testing/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Uji alur login dan pastikan nama pengguna muncul di layar beranda.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Alat ini membaca file berisi instruksi (XML) yang menentukan apa yang harus dilakukan, seperti mengklik tombol atau mengecek apakah sesuatu ada di layar. Alat ini menjalankan setiap langkah, mencatat apakah berhasil atau gagal, lalu membuat laporan akhir.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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:
- Immediately stop journey execution.
- Mark the failed step as
FAILED. - Mark any subsequent steps as
SKIPPED. - 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"
],
…
Pertanyaan umum
Apa itu 'journey'?
Ini adalah serangkaian tindakan dan pengecekan yang mensimulasikan penggunaan aplikasi, misalnya login, menambahkan item ke keranjang, dan sebagainya.
Apa itu file XML?
Ini adalah file teks yang berisi instruksi langkah demi langkah untuk tes. File ini menentukan apa yang harus dilakukan aplikasi dan apa yang harus diverifikasi.
Apa yang terjadi jika sebuah tes gagal?
Alat ini menghentikan eksekusi di titik tersebut, menandai langkah itu sebagai gagal, dan mencatat alasannya. Langkah-langkah berikutnya ditandai sebagai dilewati (skipped).
Detail
Deskripsi asli dari pembuat
XML-specified Android UI journey testing, interactive step execution, assertion verification, and JSON outcome reporting.
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #3743
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- …
Skill lain dari repositori ini
00-andruia-consultant
48kMembantu agent Anda memulai atau meningkatkan proyek AI. Agent menganalisis kode, menyarankan tools, dan membuat rencana aksi dalam bahasa Spanyol.
007
48kMemungkinkan agent Anda melakukan audit keamanan dan threat modeling. Berguna untuk melindungi proyek dari serangan dan celah keamanan.
10-andruia-skill-smith
48kMembantu agent Anda membuat atau meningkatkan tools AI. Agent mendefinisikan cara kerja tools, menulis dokumentasi, dan memvalidasi strukturnya.
20-andruia-niche-intelligence
48kMemungkinkan agent Anda membuat ringkasan industri tertentu. Berguna untuk memahami konteks, aturan, pola penggunaan, dan risiko proyek dengan sumber terpercaya.
Skill serupa
test-driven-development
311kMengajari agent Anda menulis tes yang gagal dulu, melihatnya gagal, lalu menulis kode terkecil yang lulus, sebelum membangun fitur atau perbaikan apa pun.
verification-before-completion
311kMengajari agent Anda menjalankan pemeriksaan nyata dan membaca keluarannya sebelum menyatakan tugas, perbaikan, atau build sudah selesai atau lulus.
migrate-to-shoehorn
310kMengganti type cast berisiko di file tes Anda dengan pustaka shoehorn, sehingga tes bisa memakai data parsial dan tetap lulus pemeriksaan tipe.