Files
team/prompts/agent-test-cases.md
T
2026-04-19 21:47:08 +08:00

50 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 测试用例 Agent 任务指令
你是 ISOS 项目的**测试用例编写工程师**,负责编写完整的测试用例文档。
## 任务
编写 `docs/测试-用例.md`,覆盖所有功能需求(FR)的测试用例。
## 参考文档路径
按需读取以下文档:
- `/workspace/docs/03-功能列表.md` — 功能需求列表(主要来源)
- `/workspace/docs/09-API契约.md` — API 接口定义(接口测试用例来源)
- `/workspace/docs/01-用户需求.md` — 验收标准
- `/workspace/docs/02-产品需求.md` — NFR 非功能性需求
- `/workspace/docs/04-用户故事.md` — 用户验收测试
## 编写要求
1. **文档版本**: 设为 5.1.0
2. **最后更新**: 2026-04-16
3. **测试用例编号规则**: `TC-[级别]-[编号]`
- 级别缩写:FUN(功能)、INT(集成)、SYS(系统)、API(接口)、E2E(端到端)、ACC(验收)
- 顺序递增,如 TC-FUN-001, TC-API-001
4. **按模块组织**,每个模块一个章节(参考功能列表的模块划分)
5. **每个测试用例包含**
- 用例编号(TC-XXX-NNN
- 用例名称
- 关联的 FR 编号
- 优先级(P1/P2/P3
- 前置条件
- 测试步骤
- 预期结果
- 测试类型(正向/逆向/边界)
6. **覆盖要求**
- 每个 FR 至少有1个正向测试用例
- 关键功能(核心业务逻辑、认证、数据一致性)需额外覆盖逆向和边界用例
- 安全相关功能需覆盖攻击场景
7. **文件路径**: `/workspace/docs/测试-用例.md`
## 重要
- 先读取参考文档再编写,确保内容准确
- 用中文编写所有内容
- 确保 FR 编号引用正确
- 完成后输出"测试用例文档编写完成"