agentCLAWHUBUnverified

qa-test-automation-arch

当需要设计自动化测试框架、或者现有框架维护成本太高需要重构时使用此技能。运用 PageObject、分层测试、关键字驱动、数据驱动等模式设计可维护可扩展的自动化架构。不要直接写测试代码——先设计架构:选型(UI/API/单元)、分层(测试层/业务层/基础设施层)、数据管理(测试数据与脚本分离)和 CI 集成方案。好的自动化架构应该让写用例的人不需要懂底层实现。 触发场景:自动化架构、框架设计、自动化策略、自动化框架、测试框架架构、自动化维护困难需要重构时。 Use when the user asks about: test automation architecture — Page Object, layered test design, keyword-driven and data-driven frameworks, and data management. Skill: qa-test-automation-arch Owner: kokxi Summary: 当需要设计自动化测试框架、或者现有框架维护成本太高需要重构时使用此技能。运用 PageObject、分层测试、关键字驱动、数据驱动等模式设计可维护可扩展的自动化架构。不要直接写测试代码——先设计架构:选型(UI/API/单元)、分层(测试层/业务层/基础设施层)、数据管理(测试数据与脚本分离)和 CI 集成方案。好的自动化架构应该让写用例的人不需要懂底层实现。 触发场景:自动化架构、框架设计、自动化策略、自动化框架、测试框架架构、自动化维护困难需要重构时。 Use when the user asks about: test automation architecture — Page Object, layered test design, keyword-driven and data-driven frameworks

OpenClaw

Rank

62

Safety

84

Downloads

1.2k

Updated

Oct 11, 2026

Version

1.8.0

Source

CLAWHUB

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Public facts

Every fact links back to the source it came from.

Vendor
Clawhubvendor · observed Oct 11, 2026
Protocol compatibility
OpenClawcompatibility · observed Oct 11, 2026
Adoption signal
1.2K downloadsadoption · observed Oct 11, 2026
Latest release
1.8.0release · observed Sep 29, 2026
Handshake status
UNKNOWNsecurity

Install and run

Setup complexity: low.

clawhub skill install s170jw3s1atcj5jwhqb4r7v7eh8912kp:qa-test-automation-arch
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-kokxi-qa-test-automation-arch/snapshot"

Documentation

CLAWHUB

74,663 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: qa-test-automation-arch
description: >-
  当需要设计自动化测试框架、或者现有框架维护成本太高需要重构时使用此技能。运用 PageObject、分层测试、关键字驱动、数据驱动等模式设计可维护可扩展的自动化架构。不要直接写测试代码——先设计架构:选型(UI/API/单元)、分层(测试层/业务层/基础设施层)、数据管理(测试数据与脚本分离)和 CI 集成方案。好的自动化架构应该让写用例的人不需要懂底层实现。 触发场景:自动化架构、框架设计、自动化策略、自动化框架、测试框架架构、自动化维护困难需要重构时。 Use when the user asks about: test automation architecture — Page Object, layered test design, keyword-driven and data-driven frameworks, and data management.
license: MIT
allowed-tools: Read Grep Glob Bash
metadata:
  display-name: "Test Automation Arch"
  version: "1.8.0"
  when-to-use: "用户说\"自动化架构\"、\"框架设计\"、\"自动化策略\"、\"自动化框架\"、\"测试框架架构\"、需要设计测试自动化架构、自动化维护困难需要重构时"
  related-skills: "{\"upstream\":[\"qa-tech-selection\",\"qa-test-strategy-design\"],\"downstream\":[\"qa-ci-cd-testing\",\"qa-api-testing\",\"qa-mobile-testing\",\"qa-tech-debt-management\"]}"
  references: "[\"references/layered-architecture.md\"]"
  input-format: "{\"required\":[{\"name\":\"测试策略\",\"type\":\"object\",\"description\":\"来自qa-test-strategy-design的测试策略\"},{\"name\":\"技术选型\",\"type\":\"object\",\"description\":\"来自qa-tech-selection的技术选型建议\"}],\"optional\":[{\"name\":\"项目约束\",\"type\":\"string\",\"description\":\"技术栈和团队限制\"}]}"
  output-format: "{\"traceability\":[\"每份架构设计带唯一ID(ARCH-XXXX)\"],\"structure\":[\"覆盖率:标注口径(基于现有需求/输入文档),禁止\\\"全覆盖/100%\\\"绝对化表述;缺失模块标注\\\"未覆盖+原因\\\"\",{\"automation_architecture\":\"自动化测试架构设计\"},{\"framework_selection\":\"框架选择建议\"},{\"layer_design\":\"分层设计\"},{\"maintenance_strategy\":\"维护策略\"}]}"
  error-recovery-guidance: "{\"on_failure\":\"自动化架构遗漏维护策略时回退到技术选型补充\",\"retry_behavior\":\"补充选型后重新设计架构\"}"
  categories: "[\"Development\",\"Testing\",\"DevOps\"]"
  depth-requirement: "{\"reference_value\":\"根据架构复杂度调整设计深度:简单×1/中等×2/复杂×3\",\"minimum\":\"至少覆盖层架构、工具集成、维护策略3个核心要素\"}"
---
> ⚠️ 本技能单独使用效果有限,建议配合完整技能集(12 步工作流)使用。安装:npx skills add Kokxi/qa-test-skills

> **⚠️ 安全警告**:本技能的示例可能涉及订单号、支付金额、截图、身份证、手机号等敏感数据。
> 实际使用时请勿粘贴真实生产数据、客户信息或财务凭证;测试前应脱敏/掩码处理。
> 本技能仅在 workspace/ 输出评估文件,不持久化、不外传、不跨会话复用。

# 测试自动化架构设计

## 核心原则

好的自动化架构——分层清晰、职责单一、易于维护、快速反馈。

## 测试自动化金字塔

> 📌 本节与 qa-test-strategy-design「测试金字塔」概念对应,但分层名称和比例不同——本技能侧重自动化落地(集成测试层名、70/20/10 比例),strategy-design 侧重策略规划(接口测试层名、60/30/10 比例)。修改时请确认两处含义,避免矛盾。

```text
                    ┌─────────────┐
                    │   E2E测试    │  10%
                    │  (UI/API)    │
                    ├─────────────┤
                    │  集成测试    │  20%
                    │ (接口/服务)  │
                    ├─────────────┤
                    │  单元测试    │  70%
                    │  (函数/类)   │
                    └─────────────┘
```

## 加载时机

| 什么时候读 | 读哪个 |
|-----------|--------|
| 设计自动化框架分层时 | [`references/layered-architecture.md`](references/layered-architecture.md) |

> `分层架构设计`的完整内容已下沉至 `references/layered-architecture.md`,避免每次触发都占用上下文。

## 框架设计模式

### Page Object Model

```text
优点:
├─ 封装页面元素和操作
├─ 减少代码重复
├─ 易于维护
└─ 可读性强

示例结构:
tests/
├── pages/
│   ├── login_page.py
│   ├── home_page.py
│   └── cart_page.py
├── tests/
│   ├── test

_meta.json

{
  "ownerId": "kn71y9b23csfx0ykgm55d5m9x5891zt8",
  "slug": "qa-test-automation-arch",
  "version": "1.8.0",
  "publishedAt": 1790656146140
}

references/layered-architecture.md

# 测试分层架构设计详解

> 本文是 `qa-test-automation-arch` 的**测试分层架构设计详解**。设计自动化框架分层时读本文;
其余部分留在 SKILL.md,不必读本文。

---


### 第1层:单元测试层

```text
职责:
├─ 测试范围:函数、类、模块
├─ 执行速度:毫秒级
├─ 维护成本:低
└─ 覆盖目标:核心逻辑

技术选型:
├─ Java:JUnit 5 + Mockito
├─ Python:Pytest + Mock
├─ JavaScript:Jest + Sinon
└─ Go:testing + testify

最佳实践:
├─ 测试与代码同步维护
├─ 每个测试单一职责
├─ 使用Mock隔离依赖
├─ 测试命名清晰(Given-When-Then)
└─ 保持测试快速(<100ms)
```

### 第2层:集成测试层

```text
职责:
├─ 测试范围:接口、服务间交互
├─ 执行速度:秒级
├─ 维护成本:中
└─ 覆盖目标:业务流程

技术选型:
├─ API测试:Postman/Newman/REST Assured
├─ 数据库测试:TestContainers
├─ 消息队列测试:Embedded Kafka
└─ 服务虚拟化:WireMock/Mountebank

最佳实践:
├─ 使用真实依赖(TestContainers)
├─ 测试数据可构造、可清理
├─ 验证接口契约
├─ 覆盖正常/异常/边界场景
└─ 保持测试独立性
```

### 第3层:E2E测试层

```text
职责:
├─ 测试范围:完整用户流程
├─ 执行速度:分钟级
├─ 维护成本:高
└─ 覆盖目标:核心路径

技术选型:
├─ Web UI:Playwright/Cypress/Selenium
├─ 移动端:Appium/XCUITest/Espresso
├─ 桌面端:Electron Test/WinAppDriver
└─ 性能:JMeter/Locust/k6

最佳实践:
├─ 只覆盖核心路径(20%)
├─ 使用Page Object模式
├─ 数据驱动测试
├─ 稳定的等待策略
└─ 失败时自动截图/录屏
```

skill-card.md

## Description:

Helps QA engineers design maintainable test automation architectures with layered tests, framework selection, data management, and CI integration.

This skill is ready for commercial/non-commercial use.

## Publisher:

[kokxi](https://clawhub.ai/user/kokxi)

### License/Terms of Use:

MIT-0

## Use Case:

QA engineers and developers use this skill to plan or refactor automated testing frameworks before writing tests. It guides test-layer design, framework selection, test-data separation, maintenance, and CI integration.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The suggested unpinned installation command may fetch an unreviewed release.

Mitigation: Review its source and pin a vetted version before running the command.

Risk: Real customer, identity, payment, or screenshot data may be exposed when supplied to the workflow.

Mitigation: Use synthetic test data or mask sensitive information before sharing inputs.

## Reference(s):

- [Layered test architecture](references/layered-architecture.md)
- [ClawHub skill release](https://clawhub.ai/kokxi/skills/qa-test-automation-arch)

## Skill Output:

**Output Type(s):** [Guidance, Markdown]

**Output Format:** [Markdown architecture plan]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Architecture ID (ARCH-XXXX); framework selection, layered design, and maintenance strategy; coverage claims scoped to supplied requirements.]

## Skill Version(s):

1.8.0 (source: skill frontmatter and server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
Github ReposUpdated 1d agoRank 70

AionUi

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!

MCPOPENCLAW
Github ReposUpdated 6mo agoRank 70

activepieces

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

OPENCLAW
Github ReposUpdated 6mo agoRank 70

cherry-studio

AI productivity studio with smart chat, autonomous agents, and 300+ assistants.

MCPOPENCLAW
Github ReposUpdated 7mo agoRank 70

CopilotKit

The Frontend for Agents & Generative UI. React + Angular

OPENCLAW

Machine-readable data

The same record, as JSON, for agents and crawlers.

{
  "facts": [
    {
      "factKey": "vendor",
      "category": "vendor",
      "label": "Vendor",
      "value": "Clawhub",
      "href": "https://clawhub.ai/kokxi/skills/qa-test-automation-arch",
      "sourceUrl": "https://clawhub.ai/kokxi/skills/qa-test-automation-arch",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-11T03:09:25.017Z",
      "isPublic": true
    },
    {
      "factKey": "protocols",
      "category": "compatibility",
      "label": "Protocol compatibility",
      "value": "OpenClaw",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-kokxi-qa-test-automation-arch/contract",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-kokxi-qa-test-automation-arch/contract",
      "sourceType": "contract",
      "confidence": "medium",
      "observedAt": "2026-10-11T03:09:25.017Z",
      "isPublic": true
    },
    {
      "factKey": "traction",
      "category": "adoption",
      "label": "Adoption signal",
      "value": "1.2K downloads",
      "href": "https://clawhub.ai/kokxi/qa-test-automation-arch",
      "sourceUrl": "https://clawhub.ai/kokxi/qa-test-automation-arch",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-11T03:09:25.017Z",
      "isPublic": true
    },
    {
      "factKey": "latest_release",
      "category": "release",
      "label": "Latest release",
      "value": "1.8.0",
      "href": "https://clawhub.ai/kokxi/qa-test-automation-arch",
      "sourceUrl": "https://clawhub.ai/kokxi/qa-test-automation-arch",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-09-29T04:29:06.140Z",
      "isPublic": true
    },
    {
      "factKey": "handshake_status",
      "category": "security",
      "label": "Handshake status",
      "value": "UNKNOWN",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-kokxi-qa-test-automation-arch/trust",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-kokxi-qa-test-automation-arch/trust",
      "sourceType": "trust",
      "confidence": "medium",
      "observedAt": null,
      "isPublic": true
    }
  ],
  "events": [
    {
      "eventType": "release",
      "title": "Release 1.8.0",
      "description": "Version 1.8.0 - Major refactor: Layered architecture content moved to references/layered-architecture.md for better modularity and to reduce context bloat. - SKILL.md simplified to reference external architecture details, with loading instructions for when to consult the architecture file. - Skill metadata refactored and enriched for clarity and automation; previous skill-card.md removed. - Other skill documentation and structural patterns remain unchanged.",
      "href": "https://clawhub.ai/kokxi/qa-test-automation-arch",
      "sourceUrl": "https://clawhub.ai/kokxi/qa-test-automation-arch",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-09-29T04:29:06.140Z",
      "isPublic": true
    }
  ]
}

Record generated Oct 11, 2026.

Sponsored

Ads related to qa-test-automation-arch and adjacent AI workflows.