软件测试用例设计

v1.0.2

This skill should be used when generating test cases, writing test cases, designing test cases, supplementing exception scenarios and boundary values, design...

0· 0·0 current·0 all-time
Security Scan
Capability signals
CryptoCan make purchasesRequires OAuth tokenRequires sensitive credentials
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (test case design) align with the included files (templates, platform guides, examples). There are no extra binaries, credentials, or config paths requested that would be unrelated to generating test cases.
Instruction Scope
SKILL.md contains stepwise guidelines for loading only the needed reference documents and producing test cases in a specified format; it does not instruct the agent to read system files, environment variables, or send data to external endpoints.
Install Mechanism
No install spec and no code files that would be downloaded or executed. The skill is instruction-only and only bundles markdown references — low install risk.
Credentials
The skill declares no required environment variables, credentials, or config paths. There are no requests for secrets and the content is proportional to the stated purpose.
Persistence & Privilege
Skill does not request always:true or elevated persistence; default invocation settings apply. It is user-invocable and can be called autonomously by the agent (platform default), which is appropriate for an assistant skill of this type.
Assessment
This skill is a local, instruction-only reference for designing test cases and appears coherent and low-risk. Before using, avoid pasting sensitive production data into prompts (e.g., credentials or private API payloads). If you plan to use generated cases with automated test systems, review them for business-specific privacy or compliance needs.

Like a lobster shell, security has layers — review code before you run it.

latestvk974vd4szjt25d9adjj30rgtmx85cf1k
0downloads
0stars
3versions
Updated 2h ago
v1.0.2
MIT-0

加载指引

逐步披露原则:先读 SKILL.md 获取全貌,再按场景关键词加载对应 references 文件。无需一次加载全部。

工作流程

Step 1: 理解需求

  1. 明确用户要测试的功能模块
  2. 确认目标平台(移动端/PC Web/小程序等)
  3. 确认测试类型(功能/接口/安全/UI等)
  4. 分析用户提供的文档或具体需求内容,提取功能点、输入输出、业务规则

Step 2: 确定测试范围

  1. 指明平台 → 通用用例 + 平台专项用例
  2. 未指明平台 → 只生成通用测试用例

Step 3: 加载对应文件

根据指令映射表,加载需要的 references 文件

Step 4: 设计测试用例

按顺序设计,每个功能点都自动覆盖

  1. 功能测试用例(增删改查、列表、表单)
    • ✅ 正向功能(基于需求)
    • ✅ 边界值测试(最大值、最小值、空值、临界值)
    • ✅ 异常场景(空输入、格式错误、非法字符)
  2. 接口测试用例(如涉及)
  3. 安全测试用例(如涉及)
  4. 平台专项用例(如指明平台)

Step 5: 按格式输出

  • 默认:Excel 表格
  • 结构:编号 + 标题 + 类型 + 模块 + 级别 + 预置条件 + 步骤 + 预期结果

输出要求

输出规则

  • 未指明平台 → 只生成通用测试用例(功能、安全、接口、联动、路由、UI、兼容性)
  • 指明平台 → 生成通用用例 + 该平台专项用例

输出格式

  • 默认格式:Excel 表格
  • 标准用例结构:用例编号 + 测试标题 + 测试类型 + 功能模块 + 用例级别 + 预置条件 + 测试步骤 + 预期结果

能力边界

✅ 可生成:功能测试、边界值、异常场景、接口、安全意识、UI视觉用例 ❌ 不可生成:测试方案、测试策略、测试计划、渗透测试执行、漏洞扫描、性能压测、自动化脚本

指令映射表

关键词触发加载文件备注
"测试用例"、"写用例"、"设计用例"(通用)references/core-capabilities/common-testing.md + references/templates/common-rules.mdlarge file: common-testing.md
"移动端测试"、"App 测试"references/core-capabilities/common-testing.md + references/platform/mobile-app.md + references/templates/common-rules.mdlarge file: common-testing.md
"小程序测试"references/core-capabilities/common-testing.md + references/platform/mini-program.md + references/templates/common-rules.mdlarge file: common-testing.md
"移动 Web 测试"、"H5 测试"references/core-capabilities/common-testing.md + references/platform/mobile-web.md + references/templates/common-rules.mdlarge file: common-testing.md
"桌面端测试"、"桌面应用测试"references/core-capabilities/common-testing.md + references/platform/desktop.md + references/templates/common-rules.mdlarge file: common-testing.md
"PC Web 测试"、"Web 端测试"references/core-capabilities/common-testing.md + references/platform/pc-web.md + references/templates/common-rules.mdlarge file: common-testing.md, pc-web.md
"联动测试"references/core-capabilities/common-testing.md (第三部分)large file: grep "## 第三部分"
"路由测试"、"跳转测试"references/core-capabilities/common-testing.md (第四部分)large file: grep "## 第四部分"
"UI 测试"、"视觉测试"、"界面测试"references/core-capabilities/common-testing.md (第五部分)large file: grep "## 第五部分"
"接口测试"、"API 测试"references/core-capabilities/common-testing.md (第六部分)large file: grep "## 第六部分"
"安全测试"references/core-capabilities/common-testing.md (第七部分)large file: grep "## 第七部分"
"边界值"、"异常场景"references/core-capabilities/common-testing.md (第一部分)grep "## 第一部分"
"兼容性测试"、"适配测试"references/core-capabilities/common-testing.md (兼容性)grep "兼容性"
"可访问性测试"references/platform/mobile-app.md + references/checklists/mobile-app-checklist.mdgrep "可访问性"
"功能测试"references/examples/common.md (一、功能测试)large file: grep "一、功能测试"
检查清单(通用)references/checklists/common-checklist.md
检查清单(平台专项)references/checklists/mobile-app-checklist.md / mobile-web-checklist.md / pc-web-checklist.md / desktop-checklist.md / mini-program-checklist.md
示例参考references/examples/common.md + references/examples/{platform}.mdlarge file: examples/common.md

文件结构

注意:本 skill 无 scripts/ 和 assets/ 目录,所有内容均通过 references/ 提供。

references/
├── templates/               # 模板规则
│   └── common-rules.md       # 用例模板+测试类型+优先级+编号
├── core-capabilities/       # 通用测试能力
│   └── common-testing.md    # 所有通用测试能力
├── platform/               # 平台专项用例
│   ├── mobile-app.md        # 移动端App
│   ├── mobile-web.md        # 移动端Web
│   ├── pc-web.md           # PC Web
│   ├── desktop.md          # 桌面端
│   └── mini-program.md     # 小程序
├── checklists/             # 检查清单
│   ├── common-checklist.md # 通用检查清单
│   ├── mobile-app-checklist.md
│   ├── mobile-web-checklist.md
│   ├── pc-web-checklist.md
│   ├── desktop-checklist.md
│   └── mini-program-checklist.md
└── examples/              # 示例参考
    ├── common.md          # 通用测试示例(功能/联动/路由/UI/接口/安全)
    ├── mobile-app.md      # 移动端App示例
    ├── mobile-web.md      # 移动端Web示例
    ├── pc-web.md         # PC Web示例
    ├── desktop.md        # 桌面端示例
    └── mini-program.md   # 小程序示例

Comments

Loading comments...