/install automation-testing-protocol
Automation Quality Assurance & Testing Protocol
This skill is the primary authority for testing any automation project within the OpenClaw environment. It ensures operational stability, prevents regressions, and maintains high-quality standards across all automated workflows.
Agent: How to Use This Skill
Read this protocol fully before modifying or deploying any automation script. Follow the steps sequentially.
1. Comprehensive Automation Testing Strategy
To ensure a robust automation, every project must pass through these 6 critical testing layers:
- Layer 1: Unit Testing (Logic) - Test individual functions, mathematical calculations, and internal logic branches in isolation.
- Layer 4: Idempotency & Recovery - Ensure that if a script fails and restarts, it does not produce side effects (e.g., no duplicate emails or redundant API calls). The script must be "Safe to Restart."
- Layer 2: Integration Testing (Connectors) - Verify successful communication with external services (Meta API, Google Sheets, SMTP, etc.) using real or sandbox credentials.
- Layer 3: End-to-End (E2E) Flow - Simulate a complete lifecycle of the automation (e.g., Budget Breach -> Pause -> Notify) to ensure the entire chain works.
- Layer 5: Regression Testing - Always run the full
run_tests.pysuite after any change to confirm that existing features remain functional. - Layer 6: Observability & Logging Verification - Confirm that the script produces clear, actionable logs for every step, especially during failures, to ensure "blind spots" are eliminated.
2. Execution Protocol
Do find and execute tests before and after every modification:
- Discover: Always look for
run_tests.pyor atests/directory within the project root. - Execute:
python3 path/to/project/run_tests.py - Initialize: If the project lacks tests, you are mandated to create a
run_tests.pyfile implementing the 6 layers above.
3. Standard Exit Criteria (Definition of Done)
A task is considered "Complete" only when:
- 100% Pass Rate: All 6 testing layers pass without errors.
- Timezone Uniformity: All timestamps and scheduling are synchronized to the environment's local time (e.g.,
Africa/Cairo). - Security Compliance: Zero hardcoded secrets. All tokens and passwords must be isolated in
.envor config files. - Failure Resilience: The script handles API timeouts and connection drops gracefully without crashing.
- Documentation: The code is clean, commented, and includes a brief explanation of any new test cases added.
Maintenance & Scalability
- The Test Suite must grow with the project. Every new feature requires a corresponding test case.
- Any project without a functional
run_tests.pyis considered "Substandard" and must be fixed immediately.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install automation-testing-protocol - 安装完成后,直接呼叫该 Skill 的名称或使用
/automation-testing-protocol触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Automation Testing Protocol 是什么?
A comprehensive framework for testing and validating automation projects to ensure stability, security, and scalability. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 124 次。
如何安装 Automation Testing Protocol?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install automation-testing-protocol」即可一键安装,无需额外配置。
Automation Testing Protocol 是免费的吗?
是的,Automation Testing Protocol 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Automation Testing Protocol 支持哪些平台?
Automation Testing Protocol 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Automation Testing Protocol?
由 VetMomen(@vetmomen)开发并维护,当前版本 v1.0.0。