test-case-reviewer

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

测试用例评审(中文版)

Test Case Review (Chinese Version)

英文版: 见技能
test-case-reviewer-en
提示词见本目录
prompts/test-case-reviewer.md
English Version: See the skill
test-case-reviewer-en
.
Refer to the prompt file
prompts/test-case-reviewer.md
in this directory.

何时使用

When to Use

  • 用户提到「测试用例评审」「test case review」「用例评审」
  • 需要对已有测试用例进行质量评审、缺失场景挖掘与改进建议
  • 触发示例:「请评审以下测试用例」「找出用例中的遗漏与风险」
  • User mentions "test case review", "test case review", or "test case assessment"
  • Need to conduct quality review, missing scenario mining, and improvement suggestions for existing test cases
  • Trigger Examples: "Please review the following test cases" "Identify omissions and risks in the test cases"

输出格式选项

Output Format Options

本技能默认输出为 Markdown。若需其他格式,请在需求末尾明确说明。
This skill defaults to Markdown output. If other formats are needed, specify clearly at the end of your request.

如何使用

How to Use

  1. 打开本目录
    prompts/
    下对应提示词文件,复制虚线以下内容。
  2. 附加你的需求与上下文(业务流程、环境、约束、验收标准)。
  3. 若需非 Markdown 输出,在末尾追加
    output-formats.md
    中的请求句。
  1. Open the corresponding prompt file under
    prompts/
    in this directory and copy the content below the dashed line.
  2. Attach your requirements and context (business processes, environment, constraints, acceptance criteria).
  3. If non-Markdown output is needed, append the request sentence from
    output-formats.md
    at the end.

参考文件

Reference Files

  • prompts/test-case-reviewer.md — 测试用例评审提示词
  • output-formats.md — 格式说明
  • prompts/test-case-reviewer.md — Test Case Review Prompt
  • output-formats.md — Format Specifications

代码示例 | Code Examples

代码示例 | Code Examples

  1. 用例评审标准(计划中) - 评审检查清单和标准
  1. Test Case Review Standards (In Plan) - Review checklist and standards

常见误区 | Common Pitfalls

常见误区 | Common Pitfalls

  • 只看表面问题 → ✅ 深入分析覆盖率和质量
  • 批评而不建议 → ✅ 提供具体改进建议
  • 忽略可维护性 → ✅ 评估长期维护成本
  • 缺少优先级 → ✅ 标记问题严重程度
  • Only look at surface issues → ✅ Deeply analyze coverage and quality
  • Criticize without suggestions → ✅ Provide specific improvement recommendations
  • Ignore maintainability → ✅ Evaluate long-term maintenance costs
  • Lack priority marking → ✅ Mark issue severity levels

最佳实践 | Best Practices

最佳实践 | Best Practices

1. 评审维度

1. Review Dimensions

完整性(Completeness):
  • 需求覆盖率
  • 场景覆盖率
  • 边界值覆盖
  • 异常场景覆盖
清晰度(Clarity):
  • 步骤明确
  • 数据具体
  • 结果可验证
  • 无歧义
可维护性(Maintainability):
  • 用例独立
  • 数据分离
  • 模块化设计
  • 易于更新
效率(Efficiency):
  • 执行时间合理
  • 无冗余步骤
  • 自动化潜力
  • ROI 评估
Completeness:
  • Requirement coverage
  • Scenario coverage
  • Boundary value coverage
  • Exception scenario coverage
Clarity:
  • Clear steps
  • Specific data
  • Verifiable results
  • No ambiguity
Maintainability:
  • Independent test cases
  • Data separation
  • Modular design
  • Easy to update
Efficiency:
  • Reasonable execution time
  • No redundant steps
  • Automation potential
  • ROI evaluation

2. 评审检查清单

2. Review Checklist

markdown
undefined
markdown
undefined

用例评审检查清单

Test Case Review Checklist

基本信息

Basic Information

  • 用例 ID 唯一
  • 标题清晰
  • 优先级标记
  • 类型标记
  • Unique test case ID
  • Clear title
  • Priority marked
  • Type marked

前置条件

Preconditions

  • 前置条件完整
  • 前置条件可实现
  • 依赖关系明确
  • Complete preconditions
  • Feasible preconditions
  • Clear dependency relationships

测试步骤

Test Steps

  • 步骤详细具体
  • 步骤可重复
  • 步骤编号清晰
  • 无遗漏步骤
  • Detailed and specific steps
  • Repeatable steps
  • Clear step numbering
  • No missing steps

测试数据

Test Data

  • 数据具体明确
  • 数据可获取
  • 覆盖边界值
  • 包含异常数据
  • Specific and clear data
  • Accessible data
  • Covers boundary values
  • Includes abnormal data

预期结果

Expected Results

  • 结果明确
  • 结果可验证
  • 结果完整
  • 无模糊描述
  • Clear results
  • Verifiable results
  • Complete results
  • No ambiguous descriptions

覆盖率

Coverage

  • 正常场景
  • 异常场景
  • 边界条件
  • 权限验证
undefined
  • Normal scenarios
  • Exception scenarios
  • Boundary conditions
  • Permission verification
undefined

3. 评审报告模板

3. Test Case Review Report Template

markdown
undefined
markdown
undefined

测试用例评审报告

Test Case Review Report

评审日期: 2024-02-06 评审人: 张三 用例数量: 50 评审范围: 登录模块
Review Date: 2024-02-06 Reviewer: Zhang San Number of Test Cases: 50 Review Scope: Login Module

评审总结

Review Summary

  • 总体质量:良好
  • 主要问题:边界值覆盖不足
  • 改进建议:增加异常场景
  • Overall Quality: Good
  • Key Issue: Insufficient boundary value coverage
  • Improvement Suggestion: Add exception scenarios

问题统计

Issue Statistics

严重程度数量占比
Critical24%
High510%
Medium1020%
Low816%
SeverityCountPercentage
Critical24%
High510%
Medium1020%
Low816%

详细问题

Detailed Issues

Critical 问题

Critical Issues

  1. TC-001: 缺少 SQL 注入测试
    • 影响: 安全风险
    • 建议: 添加特殊字符测试
  1. TC-001: Missing SQL injection test
    • Impact: Security risk
    • Suggestion: Add special character tests

High 问题

High Issues

  1. TC-005: 边界值测试不完整
    • 影响: 可能遗漏缺陷
    • 建议: 补充边界值用例
  1. TC-005: Incomplete boundary value testing
    • Impact: Potential defect omission
    • Suggestion: Supplement boundary value test cases

缺失场景

Missing Scenarios

  • 并发登录测试
  • Session 超时测试
  • 密码复杂度验证
  • Concurrent login test
  • Session timeout test
  • Password complexity verification

改进建议

Improvement Suggestions

  1. 增加边界值测试
  2. 补充异常场景
  3. 优化用例描述
  4. 添加自动化标记
undefined
  1. Add boundary value testing
  2. Supplement exception scenarios
  3. Optimize test case descriptions
  4. Add automation tags
undefined

故障排除 | Troubleshooting

故障排除 | Troubleshooting

问题1:不知道如何评审

Issue 1: Don't know how to review

解决方案: 使用评审检查清单,逐项检查。
Solution: Use the review checklist and check item by item.

问题2:评审效率低

Issue 2: Low review efficiency

解决方案
  1. 使用评审工具
  2. 批量评审相似用例
  3. 重点评审高优先级用例
相关技能: test-case-writing、test-strategy、requirements-analysis。
Solution:
  1. Use review tools
  2. Batch review similar test cases
  3. Focus on reviewing high-priority test cases
Related Skills: test-case-writing, test-strategy, requirements-analysis.

目标受众

Target Audience

  • 在真实项目中执行该测试域工作的 QA 与开发人员
  • 需要结构化、可复用测试交付物的测试负责人
  • 需要快速生成可落地测试产出的 AI 使用者
  • QA and developers working in this testing domain on real projects
  • Test leads who need structured, reusable test deliverables
  • AI users who need to quickly generate actionable test outputs

不适用场景

Non-Applicable Scenarios

  • 无测试范围上下文的纯线上应急处置
  • 需要法律/合规最终裁定但缺少专家复核的决策
  • 缺少最小输入(范围、环境、期望行为)的请求
  • Pure online emergency handling without test scope context
  • Decisions requiring final legal/compliance ruling without expert review
  • Requests lacking minimum inputs (scope, environment, expected behavior)

关键成功因素

Key Success Factors

  • 先明确范围、环境与验收标准,再生成测试内容
  • 生成结果必须结合真实系统约束做二次校验
  • 保持产物可追踪(需求 -> 测试点 -> 缺陷 -> 决策)
  • Clarify scope, environment, and acceptance criteria before generating test content
  • Generated results must be re-validated against real system constraints
  • Maintain traceability of deliverables (Requirements -> Test Points -> Defects -> Decisions)

输出模板与解析脚本

Output Templates and Parsing Scripts

  • 模板目录:
    output-templates/
    • template-word.md
      (Word 友好结构)
    • template-excel.tsv
      (Excel 可直接粘贴)
    • template-xmind.md
      (XMind 结构化大纲)
    • template-json.json
    • template-csv.csv
    • template-markdown.md
  • 解析脚本目录:
    scripts/
    • 解析通用:
      parse_output_formats.py
    • 解析按格式:
      parse_word.py
      parse_excel.py
      parse_xmind.py
      parse_json.py
      parse_csv.py
      parse_markdown.py
    • 转换通用:
      convert_output_formats.py
    • 转换按格式:
      convert_to_word.py
      convert_to_excel.py
      convert_to_xmind.py
      convert_to_json.py
      convert_to_csv.py
      convert_to_markdown.py
    • 批量转换:
      batch_convert_templates.py
      (批量输出到
      artifacts/
示例:
bash
python3 scripts/parse_json.py output-templates/template-json.json
python3 scripts/parse_markdown.py output-templates/template-markdown.md
python3 scripts/convert_to_json.py output-templates/template-markdown.md
python3 scripts/convert_output_formats.py output-templates/template-json.json --to csv
python3 scripts/batch_convert_templates.py --skip-same
  • Template Directory:
    output-templates/
    • template-word.md
      (Word-friendly structure)
    • template-excel.tsv
      (Excel paste-ready)
    • template-xmind.md
      (XMind structured outline)
    • template-json.json
    • template-csv.csv
    • template-markdown.md
  • Parsing Script Directory:
    scripts/
    • General Parsing:
      parse_output_formats.py
    • Format-specific Parsing:
      parse_word.py
      ,
      parse_excel.py
      ,
      parse_xmind.py
      ,
      parse_json.py
      ,
      parse_csv.py
      ,
      parse_markdown.py
    • General Conversion:
      convert_output_formats.py
    • Format-specific Conversion:
      convert_to_word.py
      ,
      convert_to_excel.py
      ,
      convert_to_xmind.py
      ,
      convert_to_json.py
      ,
      convert_to_csv.py
      ,
      convert_to_markdown.py
    • Batch Conversion:
      batch_convert_templates.py
      (outputs to
      artifacts/
      in batches)
Example:
bash
python3 scripts/parse_json.py output-templates/template-json.json
python3 scripts/parse_markdown.py output-templates/template-markdown.md
python3 scripts/convert_to_json.py output-templates/template-markdown.md
python3 scripts/convert_output_formats.py output-templates/template-json.json --to csv
python3 scripts/batch_convert_templates.py --skip-same