← Back to Skills Marketplace
微信小程序自动化测试
by
Eumenides-K
· GitHub ↗
· v1.0.0
· MIT-0
172
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install weapp-automated-testing
Description
WeChat Mini Program automation testing toolkit. Supports launching DevTools, page navigation, element interaction, screenshots, console log reading, and more...
Usage Guidance
This skill appears to do what it says: drive WeChat DevTools and run automated tests by generating and executing temporary Node.js scripts that use the 'miniprogram-automator' package and the DevTools CLI. Before installing or running it: 1) Ensure you have Node.js, npm, and WeChat DevTools installed and understand that the skill will call the DevTools CLI and open a local automation WebSocket (default ws://localhost:9420). 2) The skill will create temporary .js files in the system temp dir and execute them with node; review the shipped Python/JS source (included) and only run if you trust the code and the npm package 'miniprogram-automator'. 3) The ConsoleReader scans common DevTools log locations under your user profile — expect reading of log files and collection of systemInfo/getCurrentPages data; avoid running in environments with sensitive logs you don't want read. 4) Run first in an isolated/non-privileged account or container if you are unsure, and verify npm package provenance (use a known npm registry and inspect package version).
Capability Analysis
Type: OpenClaw Skill
Name: weapp-automated-testing
Version: 1.0.0
The skill bundle is a legitimate toolkit for automating WeChat Mini Program testing, providing integration with the official miniprogram-automator library and WeChat DevTools CLI. It includes comprehensive modules for launching the developer environment (weapp_launcher.py), executing batched automation commands (weapp_automation.py), and analyzing application logs or performance metrics (console_reader.py). While the toolkit utilizes powerful capabilities such as subprocess execution and filesystem access to application data, these behaviors are strictly aligned with the stated purpose of UI automation and testing, and the code includes appropriate safeguards like JavaScript string escaping to mitigate injection risks.
Capability Assessment
Purpose & Capability
The skill implements WeChat DevTools automation (launching DevTools, navigation, clicks, screenshots, console reading) and the included Python modules align with that purpose. However, the package metadata lists no required binaries or credentials while the code clearly relies on Node.js, npm, the global npm package 'miniprogram-automator', and the WeChat DevTools CLI. That omission is a transparency/information gap but not necessarily malicious.
Instruction Scope
SKILL.md and the scripts restrict actions to DevTools automation: generating temporary Node.js scripts, connecting to a local WebSocket service port (default ws://localhost:9420), driving pages, taking screenshots, and reading console/log data. The ConsoleReader also attempts to locate DevTools log files under user profile directories (AppData/Library paths) which is relevant to console log reading but is the only part that touches user filesystem outside a project directory.
Install Mechanism
There is no install spec (instruction-only skill + shipped scripts). That reduces install-surface risk. The runtime does create temporary JS files and runs them with 'node' and attempts to set NODE_PATH using 'npm root -g' (shell=True). Those are expected for this tooling but mean the environment must trust the npm package 'miniprogram-automator' and have Node/npm available.
Credentials
The skill requests no environment variables or credentials (correct). Still, it reads DevTools log files from standard user profile locations and prints/exports systemInfo/getCurrentPages data collected via the automator script; such data can include device/system details. No external network endpoints are contacted except the local WebSocket to DevTools. Overall the requested access is proportionate to automation/testing, but users should note the log-file access and local system info collection.
Persistence & Privilege
The skill does not request persistent/always-on privileges and does not modify other skills or system-wide agent settings. It writes temporary scripts to the system temp directory during execution and removes them afterward (normal behavior for this approach).
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install weapp-automated-testing - After installation, invoke the skill by name or use
/weapp-automated-testing - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of the WeChat Mini Program automated testing toolkit.
- Provides batch automation via a single Python script using WeappTestRunner, significantly reducing execution time.
- Supports DevTools launching, page navigation, element interaction, screenshots, console log analysis, and UI regression.
- Includes chainable, high-level APIs for comprehensive test scripting.
- Offers single-step API, performance monitoring, and pre-built test scenarios.
- Detailed user instructions and prerequisites are documented in SKILL.md.
Metadata
Frequently Asked Questions
What is 微信小程序自动化测试?
WeChat Mini Program automation testing toolkit. Supports launching DevTools, page navigation, element interaction, screenshots, console log reading, and more... It is an AI Agent Skill for Claude Code / OpenClaw, with 172 downloads so far.
How do I install 微信小程序自动化测试?
Run "/install weapp-automated-testing" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 微信小程序自动化测试 free?
Yes, 微信小程序自动化测试 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 微信小程序自动化测试 support?
微信小程序自动化测试 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 微信小程序自动化测试?
It is built and maintained by Eumenides-K (@eumenides-k); the current version is v1.0.0.
More Skills