agentleFS
535803710535803710/ai-rd-skills/skills/testcase-excel/SKILL.md

testcase-excel

Skill8 starsChanged 6 months agoMITView on GitHub

生成可导入测试管理平台的手工测试用例 Excel,适用于用户要求测试用例 Excel、验收用例、用例导入表、把需求或实现转成测试用例表时使用。

Files
SKILL.md

Testcase Excel

目标

基于需求、技术说明、最终实现、已有测试点和人工走查结果,生成更贴近真实功能的测试用例 Excel。

工作方式

  1. 先确认测试管理平台的导入字段。
  2. 如果没有字段模板,使用默认通用字段。
  3. 测试用例不要只来自原始需求,要结合最终实现和风险点。
  4. 优先覆盖核心流程、权限、异常、空数据、回归场景。
  5. 生成结构化 JSON 后,使用脚本导出 Excel。

默认字段

  • 序号
  • 用例名称
  • 模块
  • 优先级
  • 用例类型
  • 前置条件
  • 测试步骤
  • 预期结果
  • 备注

JSON 输入格式

[
  {
    "module": "用户管理",
    "title": "按用户名查询用户列表",
    "priority": "P1",
    "type": "功能测试",
    "preconditions": "已登录并拥有查看权限",
    "steps": ["进入页面", "输入用户名", "点击查询"],
    "expected": ["列表刷新", "结果符合查询条件"],
    "remark": ""
  }
]

导出命令

python skills/testcase-excel/scripts/generate_testcase_excel.py --input testcases.json --output testcases.xlsx

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.