init the project

This commit is contained in:
evyzacq
2026-05-25 15:09:42 +08:00
commit 7fc0e7852e
122 changed files with 14557 additions and 0 deletions
@@ -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": "依赖的其他功能名称"
}
}
}
}
}
}
+17
View File
@@ -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"
@@ -0,0 +1,26 @@
你是一位资深的电商后台测试架构师,精通订单、商品、库存、支付、会员、营销等电商核心业务。
请阅读以下电商后台 PRD 文本,提取所有功能点和测试要素,以 YAML 格式输出中间表示(IR)。
## 电商领域测试要点
在分析时,请额外关注以下电商特有场景:
1. **并发冲突**:库存扣减、优惠券领取、秒杀下单等并发场景
2. **状态流转**:订单状态(待支付→已支付→发货→完成→售后)、退款状态
3. **金额计算**:满减、折扣叠加、运费计算、税费计算
4. **时效控制**:支付超时取消、售后申请期限、优惠券有效期
5. **数据一致性**:库存、订单、支付三方数据一致性
6. **权限控制**:买家/卖家/管理员不同角色的操作权限
## 输出要求
1. 每个功能点包含:模块名(从给定枚举中选择)、功能名称、功能描述、输入/输出、前置条件、约束条件、业务规则、数据一致性要求
2. P0 功能点:下单、支付、库存扣减、退款等核心交易链路
3. P1 功能点:商品管理、会员管理、营销活动等支撑功能
4. P2 功能点:数据分析、日志查询等辅助功能
5. 识别功能之间的依赖关系和调用链
PRD 文本:
{{ prd_text }}
请输出 YAML 格式的 IR
@@ -0,0 +1,35 @@
你是一位资深的电商后台测试工程师。基于以下中间表示(IR),请生成完整的测试用例集。
## 电商测试设计原则
1. **交易链路优先**:P0 功能点(下单、支付、库存)必须覆盖:
- 正向流程 ×1
- 异常场景(支付失败、库存不足、网络超时) ×2+
- 并发场景(同时下单、重复提交) ×1+
- 边界值(最大金额、最小库存、超时临界点) ×1+
2. **金额精度**:涉及金额的场景需验证小数精度、优惠叠加计算、退款金额
3. **状态机覆盖**:订单、售后等需覆盖合法/非法状态转换和并发状态冲突
4. **数据一致性**:库存-订单-支付三方数据校验
5. 用例步骤使用 Given-When-Then 结构,预期结果必须量化可验证
## 输出格式
纯 JSON 数组,每个测试用例包含:
- id: 唯一标识(如 EC-001
- module: 模块名
- feature: 功能点名称
- case_title: 用例标题
- preconditions: 前置条件
- steps: 测试步骤(Given-When-Then
- expected_result: 预期结果(必须量化)
- priority: P0/P1/P2
- tags: 标签数组(如:["正向", "异常", "并发", "边界", "金额"]
## IR 内容:
{{ ir_content }}
请只输出 JSON 数组,不要用 ```json 代码块包裹。
@@ -0,0 +1,73 @@
{
"$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": "所属模块",
"enum": ["商品管理", "订单管理", "库存管理", "会员管理", "营销活动", "支付结算", "物流配送", "售后管理", "数据分析", "系统管理"]
},
"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": "依赖的其他功能名称"
},
"business_rules": {
"type": "array",
"items": { "type": "string" },
"description": "电商特有:业务规则(如满减规则、优惠券叠加逻辑、库存预留策略)"
},
"data_consistency": {
"type": "string",
"enum": ["强一致", "最终一致", "不要求"],
"description": "电商特有:数据一致性要求级别"
}
}
}
}
}
}
@@ -0,0 +1,23 @@
# Skill 元信息 - 电商后台领域
name: "ecommerce"
version: "1.0.0"
display_name: "PRD管理"
description: "PRD的版本管理"
domain: "ecommerce"
author: "ZeekerWatchman Team"
auto_match:
keywords:
- "订单"
- "商品管理"
- "库存"
- "营销"
- "会员"
- "支付"
- "电商"
- "购物车"
always_available: true
requirements:
min_context_window: 8192
recommended_model: "deepseek"