init the project
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
你是一位资深的软件测试架构师,擅长从产品需求文档中提取测试要素。
|
||||
|
||||
请阅读以下 PRD 文本,提取所有功能点和测试要素,以 YAML 格式输出中间表示(IR)。
|
||||
|
||||
输出要求:
|
||||
1. 严格遵循提供的 JSON Schema 结构
|
||||
2. 每个功能点包含:模块名、功能名称、功能描述、输入/输出、前置条件、约束条件
|
||||
3. 标注功能优先级(P0/P1/P2)
|
||||
4. 识别功能之间的依赖关系
|
||||
|
||||
{% raw %}
|
||||
PRD 文本:
|
||||
{{ prd_text }}
|
||||
|
||||
请输出 YAML 格式的 IR:
|
||||
{% endraw %}
|
||||
@@ -0,0 +1,24 @@
|
||||
你是一位资深的软件测试工程师。基于以下中间表示(IR),请生成完整的测试用例集。
|
||||
|
||||
测试设计原则:
|
||||
1. 每个功能点至少覆盖一条正向用例和一条异常用例
|
||||
2. 对于 P0 功能点,额外覆盖边界值测试
|
||||
3. 用例步骤使用 Given-When-Then 结构
|
||||
4. 预期结果必须明确可验证
|
||||
|
||||
输出格式:JSON 数组,每个测试用例包含以下字段:
|
||||
- module: 模块名
|
||||
- feature: 功能点名称
|
||||
- case_title: 用例标题
|
||||
- preconditions: 前置条件
|
||||
- steps: 测试步骤(Given-When-Then)
|
||||
- expected_result: 预期结果
|
||||
- priority: 用例优先级
|
||||
- tags: 标签(如:正向/异常/边界)
|
||||
|
||||
{% raw %}
|
||||
IR 内容:
|
||||
{{ ir_content }}
|
||||
|
||||
请输出 JSON 格式的测试用例集:
|
||||
{% endraw %}
|
||||
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": ["meta", "features"],
|
||||
"properties": {
|
||||
"meta": {
|
||||
"type": "object",
|
||||
"required": ["prd_title", "extraction_date", "skill_used"],
|
||||
"properties": {
|
||||
"prd_title": { "type": "string", "description": "PRD 标题" },
|
||||
"extraction_date": { "type": "string", "description": "提取日期" },
|
||||
"skill_used": { "type": "string", "description": "使用的 Skill 名称" }
|
||||
}
|
||||
},
|
||||
"features": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["module", "feature_name", "description", "priority"],
|
||||
"properties": {
|
||||
"module": { "type": "string", "description": "所属模块" },
|
||||
"feature_name": { "type": "string", "description": "功能名称" },
|
||||
"description": { "type": "string", "description": "功能描述" },
|
||||
"inputs": {
|
||||
"type": "array",
|
||||
"items": { "type": "string" },
|
||||
"description": "输入参数列表"
|
||||
},
|
||||
"outputs": {
|
||||
"type": "array",
|
||||
"items": { "type": "string" },
|
||||
"description": "预期输出列表"
|
||||
},
|
||||
"preconditions": {
|
||||
"type": "array",
|
||||
"items": { "type": "string" },
|
||||
"description": "前置条件"
|
||||
},
|
||||
"constraints": {
|
||||
"type": "array",
|
||||
"items": { "type": "string" },
|
||||
"description": "约束条件"
|
||||
},
|
||||
"priority": {
|
||||
"type": "string",
|
||||
"enum": ["P0", "P1", "P2"],
|
||||
"description": "功能优先级"
|
||||
},
|
||||
"dependencies": {
|
||||
"type": "array",
|
||||
"items": { "type": "string" },
|
||||
"description": "依赖的其他功能名称"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
# Skill 元信息
|
||||
name: "default"
|
||||
version: "1.0.0"
|
||||
display_name: "通用测试设计"
|
||||
description: "适用于通用 Web 后台和业务流程的默认测试设计方法论"
|
||||
domain: "general"
|
||||
author: "ZeekerWatchman Team"
|
||||
|
||||
# Skill 触发条件:当用户上传 PRD 时是否自动匹配
|
||||
auto_match:
|
||||
keywords: []
|
||||
always_available: true
|
||||
|
||||
# 依赖的 LLM 能力要求
|
||||
requirements:
|
||||
min_context_window: 8192
|
||||
recommended_model: "deepseek"
|
||||
Reference in New Issue
Block a user