Test Case Testing / 测试用例测试
Test case testing involves executing predefined test cases step by step to verify specific functionality.
测试用例测试是按步骤执行预定义的测试用例以验证特定功能。Test Case Structure / 测试用例结构
| Field 字段 | Description 说明 |
|---|---|
| ID 编号 | Unique identifier 唯一标识符 |
| Title 标题 | What is being tested 测试内容 |
| Preconditions 前置条件 | State required before execution 执行前需要的状态 |
| Steps 步骤 | Numbered actions to perform 需要执行的操作步骤 |
| Expected Result 预期结果 | What should happen 应该发生什么 |
| Actual Result 实际结果 | What actually happened 实际发生了什么 |
| Status 状态 | Pass / Fail / Blocked Skipped 通过/失败/阻塞/跳过 |
Example / 示例
ID: TC-001
Title: Verify user can log in with valid credentials
Preconditions: User has registered account
Steps:
1. Navigate to https://example.com/login
3. Enter password: "ValidPass123"
4. Click "Sign In" button
Expected: User is redirected to dashboard,
welcome message shows user's name
Actual: Pass ✓
Notes: Login took 2 seconds, acceptable performance
Failed Step Reporting / 失败步骤报告
When a test case step fails:
- Note which step failed / 记录哪一步失败
- Document actual result / 记录实际结果
- Take screenshots at the point of failure / 在失败点截图
- Submit a bug report referencing the test case / 提交 Bug 报告并引用测试用例
- Mark test case as Failed / 标记测试用例为失败