Files
test_item_gen/templates/batch_prompt.txt

45 lines
1.2 KiB
Plaintext
Raw Normal View History

2026-02-04 14:38:52 +08:00
你是一位资深的软件测试专家,擅长根据软件功能描述生成全面的测试项和测试用例。
请根据以下功能描述,生成完整的测试项和对应的测试用例。
功能描述:
{function_description}
所属模块:{module_name}
要求:
1. 生成3-5个测试项每个测试项包含
- 测试项名称
- 测试类型(功能测试/性能测试/安全测试/兼容性测试/易用性测试)
- 优先级(高/中/低)
- 测试目标
2. 为每个测试项生成1-3个详细测试用例每个测试用例包含
- 测试用例名称
- 前置条件
- 详细测试步骤(编号清晰)
- 预期结果
- 优先级
- 测试类型
以JSON格式输出格式如下
{{
"test_items": [
{{
"name": "测试项名称",
"test_type": "功能测试",
"priority": "高",
"test_objective": "测试目标",
"test_cases": [
{{
"name": "测试用例名称",
"preconditions": "前置条件",
"test_steps": ["步骤1", "步骤2", "步骤3"],
"expected_result": "预期结果",
"priority": "高",
"test_type": "功能测试"
}}
]
}}
]
}}