software_test_case_design

自动设计功能、API及AI Agent测试用例,支持多平台适配。

已扫描
适合谁
软件测试工程师、开发团队中的质量保障人员
不适合谁
需要编写自动化测试脚本的用户、需制定测试策略或测试计划的人员
国内可用性
需网络配置。可能需要网络配置或第三方服务可访问。
安装难度
新手友好(★☆☆)。基于终端操作、依赖、API Key 和本地环境要求的初步判断。

安装与下载

openclaw skills install @cassianran/software-test-case-design

Skill 说明

命令、参数、文件名以原文为准

执行流程

  1. 识别测试用例类型

- 包含 "API Test" / "API Testing" → API 测试用例

- 包含 "Agent Test" / "Agent" / "AI Agent" → AI Agent 测试用例

- 默认 → 功能测试用例

  1. 加载能力文件:始终加载 templates/common-rules.md(规则文件)。根据测试用例类型选择对应的能力文件:

- API 测试 → core-capabilities/api-testing.md

- AI Agent 测试 → core-capabilities/agent-testing.md + 从 core-capabilities/functional-testing.md 中选取第 1 部分:测试用例设计方法 和 第 2 部分:测试用例质量标准

- 功能测试 → core-capabilities/functional-testing.md

  1. 加载平台特定文件(API 测试跳过此步骤):

- 匹配平台关键词 → 加载 platform/{platform}.md

  1. 生成测试用例:根据已加载的能力文件和平台特定文件生成测试用例
  1. 自检

- API 测试 → checklists/api-checklist.md

- AI Agent 测试 → checklists/agent-checklist.md + 从 checklists/common-checklist.md 中选取第 I 部分:功能测试检查清单

- AI Agent 测试 + 平台 → checklists/agent-checklist.md + 从 checklists/common-checklist.md 中选取第 I 部分:功能测试检查清单 + checklists/{platform}-checklist.md

- 功能测试 + 平台 → checklists/common-checklist.md + checklists/{platform}-checklist.md

- 功能测试无平台 → checklists/common-checklist.md

  1. 输出:按 examples/format-spec.md 中指定的 Markdown 表格格式输出

能力边界

✅ 可生成:功能测试、API 测试、AI Agent 测试、基础安全测试、平台特定测试

❌ 无法生成:测试计划、测试策略、渗透测试执行、漏洞扫描、性能/压力测试(并发/压力/负载)、自动化脚本

指令映射表

规则文件 templates/common-rules.md 始终加载。能力文件根据测试用例类型选择。平台文件按需叠加。

能力文件

关键词触发条件加载文件说明
"API Test", "API Testing"core-capabilities/api-testing.md独立使用,不叠加平台文件
"Agent Test", "Agent", "AI Agent"core-capabilities/agent-testing.md + 从 core-capabilities/functional-testing.md 中选取第 1 部分:测试用例设计方法 和 第 2 部分:测试用例质量标准可叠加任意平台文件
默认情况core-capabilities/functional-testing.md功能测试

平台文件(叠加在能力文件之上,API 测试除外)

关键词触发条件加载文件说明
"Mobile Testing", "App Testing"platform/mobile-app.md支持手势操作、中断处理、网络环境、权限控制、推送通知、兼容性、性能测试
"Mini-Program Testing"platform/mini-program.md生命周期管理、授权机制、分享功能、支付流程、页面跳转、订阅服务
"Mobile Web Testing", "H5 Testing"platform/mobile-web.md响应式布局、触控交互、浏览器兼容性、视口设置、H5 特性、SEO 优化
"Desktop Testing", "Desktop App Testing"platform/desktop.md窗口管理、快捷方式、文件操作、系统集成、多显示器支持
"PC Web Testing", "Web Testing"platform/pc-web.md浏览器兼容性、页面布局、键盘操作、表单处理、会话管理、路由逻辑、拖拽功能
C
@cassianran

已收录 3 个 Skill

相关推荐