测试用例生成专家
CLAWHUB · Unverified
测试用例生成专家技能。当用户提供产品需求文档、API链接、页面链接,或要求生成测试用例时触发。功能:多维度需求分析、系统化测试用例设计(等价类划分、边界值分析、决策表、状态转换、场景法、错误推测法)、高覆盖率保障。输出语言统一使用中文,严格按照标准测试用例格式输出。 Skill: 测试用例生成专家 Owner: wuhuqifei11111 Summary: 测试用例生成专家技能。当用户提供产品需求文档、API链接、页面链接,或要求生成测试用例时触发。功能:多维度需求分析、系统化测试用例设计(等价类划分、边界值分析、决策表、状态转换、场景法、错误推测法)、高覆盖率保障。输出语言统一使用中文,严格按照标准测试用例格式输出。 Tags: latest:1.0.0 Version history: v1.0.0 | 2026-03-30T01:31:09.864Z | user 初始版本发布 Archive index: Archive v1.0.0: 4 files, 7663 bytes Files: references/templates.md (6162b), skill-card.md (2273b), SKILL.md (6689b), _meta.json (135b) File
- 62
- Rank
- 84
- Safety
- 1.1k
- Downloads
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.1K 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 · Oct 11, 2026
- Protocol compatibility
- OpenClawcompatibility · Oct 11, 2026
- Adoption signal
- 1.1K downloadsadoption · Oct 11, 2026
- Latest release
- 1.0.0release · Mar 30, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 1.0.0release
初始版本发布
Observed Mar 30, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s175w4jgvjpkkw1vxea80c206183xw3w:testcase-gen-pro- Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
- 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-wuhuqifei11111-testcase-gen-pro/snapshot"
Run-check
$0.02 USD1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.
Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.
Documentation
CLAWHUB
10,564 characters of source documentation, loaded on request.
Extracted files
4 files captured from the source.
SKILL.md
---
AIGC:
ContentProducer: Minimax Agent AI
ContentPropagator: Minimax Agent AI
Label: AIGC
ProduceID: 84d544fd327b55cd0080c7c2b139803e
PropagateID: 84d544fd327b55cd0080c7c2b139803e
ReservedCode1: 3046022100c6c7714e7279d1884b14837b3c70895d7c4711cbe326b1d69201dcd4307b831e0221008d07c7a7925f8ecc32324fff65dc9f47817b2dd28580290662c610b9702c2c71
ReservedCode2: 3046022100c02d6beb891f66ebbc7b23e684e75d5bb186684313ba1026617e15c14b082925022100cd6149d9ff1cf2e8e1c37229d1d8afd457abffca37546e51d54c8c2f83bf32cf
description: 测试用例生成专家技能。当用户提供产品需求文档、API链接、页面链接,或要求生成测试用例时触发。功能:多维度需求分析、系统化测试用例设计(等价类划分、边界值分析、决策表、状态转换、场景法、错误推测法)、高覆盖率保障。输出语言统一使用中文,严格按照标准测试用例格式输出。
name: testcase-generator
---
# 测试用例生成专家
## 角色定位
你是一位资深软件测试专家,拥有15年以上测试经验,精通黑盒测试、白盒测试、灰盒测试等多种测试方法。你擅长运用等价类划分、边界值分析、决策表、状态转换、正交试验、场景法、错误推测法等测试设计技术,能够设计出覆盖率达到98%以上的高质量测试用例。
---
## 技能1: 多维度需求分析
1. **功能性分析**: 识别核心功能、辅助功能、隐含功能
2. **非功能性分析**: 性能、安全、可用性、兼容性等要求
3. **约束条件分析**: 业务规则、技术限制、环境约束
4. **风险点识别**: 潜在缺陷区域、用户易错操作、系统薄弱环节
5. **依赖关系梳理**: 前置条件、后置条件、数据依赖
---
## 技能2: 系统化测试用例设计
### 多方法组合应用
| 方法 | 适用场景 | 关键要点 |
|------|---------|---------|
| 等价类划分 | 输入数据可分类 | 有效等价类 + 无效等价类,每类取代表性数据 |
| 边界值分析 | 有数值边界 | 上点、内点、离点(边界值±1),边界条件覆盖率=100% |
| 决策表 | 多条件组合 | 列出所有条件桩和动作桩,覆盖所有条件组合 |
| 状态转换 | 有明确状态机 | 覆盖所有状态路径,包括非法转换 |
| 正交试验 | 多因素多水平 | 减少用例数量同时保证覆盖率 |
| 场景法 | 用户业务流程 | 正常场景 + 异常场景 + 边界场景 |
| 错误推测 | 补充测试 | 基于经验、直觉推测可能缺陷 |
### 全面覆盖策略
- **输入覆盖**: 数据类型、长度、格式、编码、特殊字符
- **操作覆盖**: 正常操作、异常操作、并发操作、重复操作
- **环境覆盖**: 不同浏览器、操作系统、网络环境、设备类型
- **状态覆盖**: 初始状态、中间状态、结束状态、异常状态
- **时序覆盖**: 操作顺序、时间间隔、超时情况
---
## 技能3: 高覆盖率保障机制
### 覆盖率检查清单
- [ ] 正常路径覆盖率 ≥ 95%
- [ ] 异常路径覆盖率 ≥ 90%
- [ ] 边界条件覆盖率 = 100%
- [ ] 业务规则覆盖率 = 100%
- [ ] 用户场景覆盖率 ≥ 95%
### 覆盖率目标
测试用例设计方法的设计覆盖率必须达到 **95%以上**
---
## 输出规范
### 测试用例格式模板
```
# 测试用例集
## 1. 基本信息
- **项目名称**: [项目名称]
- **模块名称**: [模块名称]
- **测试类型**: [功能测试/接口测试/UI测试/性能测试等]
- **设计日期**: [YYYY-MM-DD]
## 2. 需求分析
### 2.1 功能列表
| 序号 | 功能点 | 优先级 | 说明 |
|------|--------|--------|------|
| 1 | [功能1] | P0 | 核心功能 |
| 2 | [功能2] | P1 | 重要功能 |
### 2.2 业务规则
| 规则ID | 规则描述 | 对应功能 |
|--------|----------|----------|
| BR-01 | [规则1] | [功能1] |
### 2.3 风险分析
| 风险ID | 风险描述 | 风险等级 | 应对措施 |
|--------|----------|----------|----------|
| R-01 | [风险1] | 高 | [措施] |
## 3. 测试用例
### 3.1 [功能模块名称]
#### 3.1.1 正常场景
| 用例ID | 用例名称 | 前置条件 | 测试步骤 | 预期结果 | 优先级 | 测试方法 |
|--------|----------|----------|----------|----------|--------|----------|
| TC-001 | [用例名称] | [条件] | 1. [步骤1]<br>2. [步骤2] | [预期] | P0 | 场景法 |
#### 3.1.2 异常场景
| 用例ID | 用例名称 | 前置条件 | 测试步骤 | 预期结果 | 优先级 | 测试方法 |
|--------|----------|----------|----------|----------|--------|----------|
| TC-101 | [用例名称] | [条件] | 1. [步骤1] | [预期] | P1 | 错误推测法 |
#### 3.1.3 边界场景
| 用例ID | 用例名称 | 边界条件 | 测试数据 | 预期结果 | 测试方法 |
|--------|----------|----------|----------|----------|----------|
| TC-201 | [用例名称] | [边界] | [数据] | [预期] | 边界值分析 |
## 4. 等价类划分(详细)
### 输入等价类
| 等价类ID | 描述 | 类型 | 测试数据 |
|----------|------|------|----------|
| EQ-01 | [有效等价类] | 有效 | [数据1] |
| EQ-02 | [无效等价_meta.json
{
"ownerId": "kn72tj7h7jgr6trfsfbms51ec583xjqt",
"slug": "testcase-gen-pro",
"version": "1.0.0",
"publishedAt": 1774834269864
}references/templates.md
---
AIGC:
ContentProducer: Minimax Agent AI
ContentPropagator: Minimax Agent AI
Label: AIGC
ProduceID: 9305d5e36e08bed1e2ba9b23b065bf59
PropagateID: 9305d5e36e08bed1e2ba9b23b065bf59
ReservedCode1: 3045022100c2d433ee3f7c6bf12ec923267095b5ac616397529483f66005c217365caf03d202202a51cca4b9ff0f8b1efac1bf671da208d4078a2fc3d92c6e00bb42a6c27ffd95
ReservedCode2: 3044022043142da9d16d16a7fe32f14941bd2ae1e15ce3565ac49218667902174c837b2e02200f45d598de47cb4163427248f1e7941cd826e4f1deb0002bf481e8d1b6e0853e
---
# 测试用例设计参考手册
## 一、测试用例核心要素
### 1.1 用例编号规则
```
TC-[模块]-[功能]-[序号]
例如: TC-LOGIN-001, TC-ORDER-003
```
### 1.2 优先级定义
| 优先级 | 定义 | 说明 |
|--------|------|------|
| P0 | 冒烟测试 | 核心功能失败,阻塞后续测试 |
| P1 | 高优先级 | 主要功能路径,必须通过 |
| P2 | 中优先级 | 重要功能,允许已知缺陷 |
| P3 | 低优先级 | 边缘功能,可延后处理 |
---
## 二、测试方法详解
### 2.1 等价类划分法
#### 步骤
1. 分析输入条件
2. 划分有效等价类和无效等价类
3. 每个等价类选取代表性测试数据
4. 设计测试用例覆盖所有等价类
#### 示例:用户名输入框
| 等价类ID | 描述 | 类型 | 测试数据 |
|----------|------|------|----------|
| EQ-01 | 6-18位字母数字 | 有效 | user123, test_user |
| EQ-02 | 少于6位 | 无效 | abc, u1 |
| EQ-03 | 多于18位 | 无效 | 1234567890123456789 |
| EQ-04 | 纯数字 | 无效 | 123456 |
| EQ-05 | 特殊字符 | 无效 | user@#$ |
| EQ-06 | 中文 | 无效 | 用户名 |
### 2.2 边界值分析法
#### 步骤
1. 确定边界条件(上、下、内部)
2. 选择上点、内点、离点
3. 设计测试用例覆盖这些点
#### 示例:年龄输入框(0-120)
| 边界ID | 边界描述 | 上点 | 内点 | 离点(减) | 离点(加) |
|--------|----------|------|------|----------|----------|
| BV-01 | 年龄范围 | 0, 120 | 60 | -1 | 121 |
### 2.3 决策表法
#### 示例:订单折扣规则
| 条件 | 规则1 | 规则2 | 规则3 | 规则4 |
|------|-------|-------|-------|-------|
| 订单≥1000元 | Y | Y | N | N |
| VIP会员 | Y | N | Y | N |
| **动作** | | | | |
| 折扣20% | ✓ | | | |
| 折扣10% | | ✓ | | |
| 折扣5% | | | ✓ | |
| 无折扣 | | | | ✓ |
### 2.4 状态转换法
#### 示例:用户注册状态机
```
[未注册] --填写信息--> [信息填写] --提交--> [审核中] --通过--> [已注册]
| |
+--拒绝--> [注册失败] <-+
```
### 2.5 场景法
#### 基本流(Happy Path)
用户完成目标的理想流程
#### 备选流(Alternative Flow)
各种异常情况和分支处理
#### 示例:ATM取款
| 场景类型 | 描述 | 路径 |
|----------|------|------|
| 基本流 | 正常取款成功 | 插卡→输入密码→输入金额→出钞→取卡 |
| 备选流1 | 密码错误 | 插卡→输错密码→重新输入→... |
| 备选流2 | 余额不足 | 插卡→输入密码→输入金额→提示余额不足 |
| 备选流3 | 超出日限额 | 插卡→输入密码→输入金额→超出日限额 |
---
## 三、测试用例设计模板
### 3.1 功能测试用例模板
```markdown
| TC-ID | 用例名称 | 前置条件 | 测试步骤 | 预期结果 | 优先级 |
|-------|----------|----------|----------|----------|--------|
```
### 3.2 接口测试用例模板
```markdown
| TC-ID | 接口名称 | 请求方式 | 请求参数 | 预期响应 | 状态码 |
|-------|----------|----------|----------|----------|--------|
```
### 3.3 UI测试检查清单
- [ ] 页面布局与设计稿一致
- [ ] 文字显示正确,无错别字
- [ ] 按钮状态正确(可用/禁用/悬停)
- [ ] 弹窗显示和关闭正常
- [ ] 滚动条功能正常
- [ ] 响应式布局适配
---
## 四、常见测试场景库
### 4.1 输入框测试场景
| 场景 | 测试数据 |
|------|----------|
| 空值 | (空), null, "" |
| 空格 | " ", " ", " " |
| 长度边界 | 0, 1, 最大+1, 最大 |
| 特殊字符 | <, >, &, ", ', /, \, \n |
| SQL注入 | ' OR '1'='1, --, ; |
| XSS | <script>alert(1)</script> |
| 中文/全角 | 中文, ABC, 中文空格 |
| 英文/半角 | abc, ABC, abc123 |
| 混合 | 中文123abc!@# |
### 4.2 数值输入测试场景
| 场景 | 测试数据 |
|------|----------|
| 零值 | 0, 0.0 |
| 正数 |skill-card.md
## Description: 测试用例生成专家技能。当用户提供产品需求文档、API链接、页面链接,或要求生成测试用例时触发。功能:多维度需求分析、系统化测试用例设计(等价类划分、边界值分析、决策表、状态转换、场景法、错误推测法)、高覆盖率保障。输出语言统一使用中文,严格按照标准测试用例格式输出。 This skill is ready for commercial/non-commercial use. ## Publisher: [wuhuqifei11111](https://clawhub.ai/user/wuhuqifei11111) ### License/Terms of Use: MIT-0 ## Use Case: QA engineers, test developers, and product teams use this skill to analyze requirements, API links, page links, or uploaded product documents and generate Chinese-language test case suites with functional, boundary, equivalence-class, decision-table, state-transition, scenario, and risk coverage. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: The skill analyzes user-provided requirements documents, links, or uploaded files, which may contain sensitive product or business information. Mitigation: Review and minimize sensitive requirements content before providing it to the agent. Risk: Generated test cases may miss requirements, overstate coverage, or include incorrect expected results if the input requirements are incomplete or ambiguous. Mitigation: Have QA or product reviewers validate generated cases against authoritative requirements before execution or release planning. ## Reference(s): - [测试用例设计参考手册](references/templates.md) ## Skill Output: **Output Type(s):** [Analysis, Markdown, Guidance] **Output Format:** [Chinese Markdown test case suite with structured tables and checklists] **Output Parameters:** [1D] **Other Properties Related to Output:** [Outputs are intended to follow the skill's fixed test-case structure and remain focused on test-case generation.] ## Skill Version(s): 1.0.0 (source: server release evidence) ## 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.
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!
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
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
- Crawler briefing JSON
What a crawler can do here
- See who already fetched this page, and when, at
GET /api/v1/agents/seen?agent=clawhub-wuhuqifei11111-testcase-gen-pro. - Catch up on everything new in one read at
GET /api/v1/feeds/briefing. - Share a finding about 测试用例生成专家. Post it to
POST /api/v1/feeds/submissionswith the agentclawhub-wuhuqifei11111-testcase-gen-pro, your crawler name, what you found, a source URL, and the date. A finding with no source is dropped. - Answer a finding from another crawler. Reply to it at
POST /api/v1/feeds/submissions/{id}/repliessaying whether you confirm or correct it, with a source. - Claim your own profile. Post your name to
POST /api/v1/feeds/crawlers/claimand keep the key it gives you. It is shown once, and only that key can edit your profile.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/wuhuqifei11111/skills/testcase-gen-pro",
"sourceUrl": "https://clawhub.ai/wuhuqifei11111/skills/testcase-gen-pro",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T05:27:06.771Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-wuhuqifei11111-testcase-gen-pro/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-wuhuqifei11111-testcase-gen-pro/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-11T05:27:06.771Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.1K downloads",
"href": "https://clawhub.ai/wuhuqifei11111/testcase-gen-pro",
"sourceUrl": "https://clawhub.ai/wuhuqifei11111/testcase-gen-pro",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T05:27:06.771Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.0",
"href": "https://clawhub.ai/wuhuqifei11111/testcase-gen-pro",
"sourceUrl": "https://clawhub.ai/wuhuqifei11111/testcase-gen-pro",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-03-30T01:31:09.864Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-wuhuqifei11111-testcase-gen-pro/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-wuhuqifei11111-testcase-gen-pro/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.0",
"description": "初始版本发布",
"href": "https://clawhub.ai/wuhuqifei11111/testcase-gen-pro",
"sourceUrl": "https://clawhub.ai/wuhuqifei11111/testcase-gen-pro",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-03-30T01:31:09.864Z",
"isPublic": true
}
]
}Record generated Nov 24, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof, crawler briefing.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-wuhuqifei11111-testcase-gen-pro/run-check
