據 AlphaMoat 統計,截至 2026-10,微信小程式自動化測試 累計下載 10,512 次、獲 10 個星標,按累計下載量在本次參與排名的 10,914 個 AI 技能中排名第 2,592 位,在「開發程式設計」分類(1,069 個)中排名第 194 位。
列表預設按累計下載量排序,也可按星標排序;詳情頁排名按累計下載量計算。
| 平台 | 累計下載 | 星標 | 評論 |
|---|---|---|---|
| ClawHub ↗ | 986 | 1 | - |
| SkillHub ↗ | 1.1萬 | 10 | — |
各平台的計數口徑不同,統計時間不一致。
可啟動開發者工具、跳轉頁面、操作元素、截圖並讀取控制檯日誌。使用時要求把全部操作寫進一個使用 WeappTestRunner 的指令碼,再用一次 python 呼叫執行,而不是逐步發多次命令。
資料釋出於 2026-10-27
以下是根據技能文件生成的示例,不代表實際執行結果。
2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。
| 月份 | 累計下載 | 環比 | 星標 |
|---|---|---|---|
| 2026-10 | 1.1萬 | — | 10 |
| 2026-09 | 5691 | — | 10 |
| 2026-08 | 4564 | +17.1% | 10 |
| 2026-07 | 3896 | — | 10 |
| 2026-05 | 2939 | — | 9 |
| 2026-03 | 1337 | — | 1 |
以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。
--- name: weapp-automatd-testing description: WeChat Mini Program automation testing toolkit. Supports launching DevTools, page navigation, element interaction, screenshots, console log reading, and more. Use when the user needs to automate mini program testing, control WeChat DevTools, read console logs, or perform UI screenshot comparison. --- # WeChat Mini Program Automation Testing ## CRITICAL: Batch Execution Rule **ALWAYS write a single Python script that uses `WeappTestRunner` to batch ALL operations, then execute it with ONE `python` call.**
Each tool call costs ~30-60s overhead. A test with 10 individual CLI calls takes 5-15 minutes; the same 10 operations batched into one script take ~5 seconds.
### Execution pattern
1. **Plan** all operations the user needs
2. **Write** a single Python script using `WeappTestRunner`
3. **Run** with one `python` command
4. **Read** output and report results
### Example
```python
import sys
sys.path.insert(0, r"path_to_weapp-automation_skill\scripts")
from weapp_automation import AutomationConfig, WeappTestRunner
config = AutomationConfig(
project_path=r"path_to_your_miniapp\my_mini_app",
ws_endpoint="ws://localhost:9420"
)
runner = WeappTestRunner(config)
results = (runner
.navigate("pages/index/index")
.wait(2)
.screenshot("home.png")
.click(".category-item")
.wait(1)
.screenshot("after_click.png")
.get_results())
print(runner.get_summary())
for r in results:
print(r)
```
Save as a `.py` file and run with `python script.py`.
---
## Prerequisites
1. Install: `npm install -g miniprogram-automator`
2. Open WeChat DevTools -> Settings -> Security Settings -> Enable "Service Port"
3. Ensure the project is imported into DevTools
CLI paths:
- **macOS**: `/Applications/wechatwebdevtools.app/Contents/MacOS/cli`
- **Windows**: `C:\Program Files (x86)\Tencent\微信web开发者工具\cli.bat`
---
## WeappTestRunner Chainable Methods
| Method | Description |
|--------|-------------|
| `.navigate(page_path)` | Navigate to a page |
| `.click(selector)` | Tap an element |
| `.input(selector, text)` | Type text into an input field |
| `.screenshot(filename)` | Take a screenshot |
| `.scroll(selector, direction, distance)` | Scroll an element |
| `.get_wxml(selector)` | Extract WXML DOM structure |
| `.get_data(path)` | Read page data |
| `.wait(seconds)` | Wait for a duration |
| `.run()` | Execute all queued steps |
| `.get_results()` | Execute and return results list |
| `.get_summary()` | Return pass/fail summary dict |
---
## Other APIs
- **WeappAutomation** - Single-step API for one-off operations
- **WeappLauncher** - Launch/close WeChat DevTools
- **ConsoleReader** - Read and analyze console logs
- **PerformanceMonitor** - Collect performance metrics
- **TestScenarios** - Pre-built test scenario templates (smoke, navigation, form, UI regression, user journey)
For detailed usage, parameters, and examples of all APIs, see [references/api_reference.md](references/api_reference.md).
---
## Script Inventory
| Script | Purpose |
|--------|---------|
| `scripts/weapp_launcher.py` | Launch/close WeChat DevTools |
| `scripts/weapp_automation.py` | Core automation engine (batch + single-step) |
| `scripts/console_reader.py` | Console log reading and analysis |
| `scripts/test_scenarios.py` | Pre-defined test scenario templates |
【全棧能力】程式設計大神.Skill:面向複雜真實專案的高階全棧程式設計助手。不止生成程式碼,而是從一句目標接手陌生程式碼庫,拆解需求、補齊實現、追到根因、完成重構、聯調前後端,並把結果推進到能執行、能驗證、能交付。覆蓋 Web、後端、指令碼、iOS、安卓、鴻蒙 ArkUI、微信小程式及其他技術棧,支援中英文工程、疑難 Bug、跨模組任務和長任務續做;用構建、日誌、真實入口、裝置或介面證據說明結果。僅問概念時直接回答,要求落地時持續推進到驗收或明確阻塞。
程式設計專家 Pro:融合程式設計專家 2.0.3 工程專題與程式設計大神的鴻蒙 ArkTS/ArkUI、微信小程式和小遊戲開發資料。用於專案實現、根因除錯、審查、重構、測試、架構效能分析及多端開發驗證。支援自然語言和 @專題標識,按任務讀取包內知識;只問概念時直接回答。
程式設計專家.Skill P8級程式設計助手,25年實戰經驗技能Skill,全棧:Java/Php網站/軟體專案、API設計、Bug診斷、程式碼生成、程式碼審查、重構、測試用例、效能基準、技術選型、文件生成、任務拆解、Spec驅動、Karpathy規範、CMS二次開發、前端設計、MySQL/Mariadb、專案知識圖譜,以及工程紀律層(根因除錯硬閉環、階段導航、事故復盤/SLO、威脅建模/供應鏈安全、生產就緒/漸進式釋出、AI編碼治理、面向Agent程式碼可讀性、LLM應用安全)。支援 @標識 顯式呼叫跳過路由。
程式設計專家.Skill P8級程式設計助手,25年實戰經驗技能Skill,全棧:Java/Php網站/軟體專案、API設計、Bug診斷、程式碼生成、程式碼審查、重構、測試用例、效能基準、技術選型、文件生成、任務拆解、Spec驅動、Karpathy規範、CMS二次開發、前端設計、MySQL/Mariadb、專案知識圖譜,以及工程紀律層(根因除錯硬閉環、階段導航、事故復盤/SLO、威脅建模/供應鏈安全、生產就緒/漸進式釋出、AI編碼治理、面向Agent程式碼可讀性、LLM應用安全)。支援 @標識 顯式呼叫跳過路由。
程式設計專家 Pro:融合程式設計專家 2.0.3 工程專題與程式設計大神的鴻蒙 ArkTS/ArkUI、微信小程式和小遊戲開發資料。用於專案實現、根因除錯、審查、重構、測試、架構效能分析及多端開發驗證。支援自然語言和 @專題標識,按任務讀取包內知識;只問概念時直接回答。
程式設計專家 Pro:融合程式設計專家 2.0.3 工程專題與程式設計大神的鴻蒙 ArkTS/ArkUI、微信小程式和小遊戲開發資料。用於專案實現、根因除錯、審查、重構、測試、架構效能分析及多端開發驗證。支援自然語言和 @專題標識,按任務讀取包內知識;只問概念時直接回答。
程式設計專家.Skill P8級程式設計助手,25年實戰經驗技能Skill,全棧:Java/Php網站/軟體專案、API設計、Bug診斷、程式碼生成、程式碼審查、重構、測試用例、效能基準、技術選型、文件生成、任務拆解、Spec驅動、Karpathy規範、CMS二次開發、前端設計、MySQL/Mariadb、專案知識圖譜,以及工程紀律層(根因除錯硬閉環、階段導航、事故復盤/SLO、威脅建模/供應鏈安全、生產就緒/漸進式釋出、AI編碼治理、面向Agent程式碼可讀性、LLM應用安全)。支援 @標識 顯式呼叫跳過路由。
用 gh 命令列工具檢視 GitHub 上的 PR 檢查、工作流執行與 API 查詢的技能。
資料月份:2026-10 · 下載/星標數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。