testcase-designer
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "testcase-designer" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-ce16288cd476fb4e910c537713586e5dae20a7135fcbfae6bd8fc939628947df. Verify the upstream source and version against https://skillhub.cn/skills/user_fb510e50/testcase-designer before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Test plan and test-case generation assistant. Upload requirement documents (Word/PDF/txt/md) or paste requirement text, automatically analyze functional points, and generate a standard test plan (Word) and a test case set (CSV, importable into test management platforms). Covers functional, boundary, exception, and compatibility case types, with priorities labeled P0–P3. Suitable for functional test design, post-requirement-review case writing, and shift-left testing scenarios.
Introduction source: third_party · user_fb510e50 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: testcase-designer
description: 测试方案与用例生成助手。上传需求文档(Word/PDF/txt/md)或直接粘贴需求文字,自动分析功能点,生成标准测试方案(Word格式)和测试用例集(CSV格式,可直接导入用例管理平台)。覆盖功能/边界/异常/兼容等用例类型,按P0-P3标注优先级。适用于功能测试设计、需求评审后用例编写、测试左移等场景。测试方案与用例生成助手
何时使用本 Skill
当用户提出以下需求时使用:
- 「根据这份需求文档帮我写测试用例」「帮我设计测试方案」
- 「需求评审完了,帮我生成用例初稿」
- 「把这段需求描述转成测试点/用例」
典型触发语:「帮我写测试用例」「生成测试方案」「这个需求怎么测」「帮我理一下测试点」。
不适用场景:自动化脚本编写、性能测试脚本、安全渗透测试方案(可生成功能层面的安全用例)。
工作流程(两阶段调用引擎 testcase_designer.py)
第一阶段:解析需求
调用 generate_test_docs(需求文档路径),获得纯文本需求内容。
- 支持 .docx/.pdf/.txt/.md;用户也可直接粘贴需求文字
- 扫描件PDF提取不到文字时,提示用户提供文字版
第二阶段:Agent 分析并生成(本 Skill 的核心价值)
1. 提炼功能点:从需求文本中提取功能模块清单,识别:
- 明确需求(逐条列出)
- 隐含需求(如"同一手机号只能注册一次"→ 重复注册异常场景)
- 模糊点/风险点(需求描述不清的,列入方案风险章节并生成待确认用例)
2. 生成测试方案:按标准结构组织 plan 结构体:
- 1.引言(编写目的、参考资料)
- 2.测试范围(范围内/范围外——范围外项要明确写出,这是专业性的体现)
- 3.测试策略(功能/边界/异常/兼容/性能/安全各采用什么方法)
- 4.测试环境(如需求涉及特定环境)
- 5.进度安排(可选,用户未给排期时写"按项目计划")
- 6.准入准出标准(P0/P1用例100%执行通过、无未关闭严重缺陷)
- 7.风险与应对(把需求模糊点放这里)
3. 生成测试用例:组织 cases 列表,每条用例包含:
- 所属模块 / 用例标题 / 用例类型 / 优先级 / 前置条件 / 测试步骤 / 预期结果 / 备注
- 用例类型覆盖原则:每个功能点至少包含 功能正例 + 1条边界或异常用例
- 优先级标准:P0=核心业务主流程、P1=重要功能与关键异常、P2=一般功能、P3=低频边界
- 步骤写法:编号短句(1.xxx 2.xxx 3.xxx),可执行、无歧义
- 预期结果:具体到可判定的结果(如"应付95元"而不是"金额正确")
- 需求模糊处生成待确认用例,备注标注「需与产品确认」
4. 调用引擎生成文件:generate_test_docs(None, plan=plan, cases=cases)
第三阶段:交付
- 交付两个文件:测试方案.docx + 测试用例.csv
- 输出用例统计摘要:总数、按类型分布、按优先级分布
- 主动列出「需求模糊点清单」,提醒用户找产品确认
用例质量标准(自我检查清单)
生成后对照检查,不达标则补充:
- [ ] 每条明确需求至少1条正例
- [ ] 全文用例中 边界+异常 类型占比 ≥ 30%
- [ ] 所有 P0 用例的预期结果都是可判定的具体值
- [ ] 无重复用例,无"测试系统是否正常"这类不可执行的标题
输出数量指引
- 小型需求(1-3个功能点):15-30条用例
- 中型需求(4-8个功能点):30-80条
- 大型需求:按模块分批生成,先出核心模块,询问用户是否继续
交互原则
- 先给测试点清单再生成文件:分析完需求后,先输出功能点/测试点清单让用户确认,确认后再生成Word和CSV——避免直接生成几十条跑偏的用例
- 不编造需求没有的功能:用例必须能追溯到需求原文或明确的隐含逻辑,拿不准的放"待确认"
- 用户说「再补充一些异常场景」「把优先级调一下」时,只增量调整,不重新生成全部
错误提示口径
- 文档读不出来:「这份文档没解析出文字,如果是扫描件PDF,麻烦发文字版或直接粘贴需求内容」
- 需求太简单(只有一句话):先追问关键信息(业务场景、约束条件),实在没有就按行业通用实践生成,并明确标注哪些是假设
限制说明
- 生成的是功能测试用例初稿,需测试人员评审后使用
- 不支持从原型图/图片中提取需求(需文字版)
- 用例管理平台专用格式(如XMind、特定平台XML)暂不支持,CSV为通用格式
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决测试人员高频刚需任务,显著提升测试设计效率
- 支持多种文档格式输入,输出标准化测试方案与用例集
- 覆盖功能/边界/异常/兼容等用例类型,按P0-P3标注优先级
Highlights
- 触发词精准完整,覆盖多种变体(「帮我写测试用例」「生成测试方案」等)
- 边界清晰,明确列出适用与不适用场景
Highlights
- Phase/步骤清晰(三阶段流程),有出口条件
- 含端到端示例,frontmatter完整,单文件未超限
Highlights
- 工具来源明确(testcase_designer.py),参数正确
- 覆盖主要异常(文档读不出、需求太简单),不可逆操作有确认机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.