Skip to main content

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
2. Enter email: "test@example.com"
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:

  1. Note which step failed / 记录哪一步失败
  2. Document actual result / 记录实际结果
  3. Take screenshots at the point of failure / 在失败点截图
  4. Submit a bug report referencing the test case / 提交 Bug 报告并引用测试用例
  5. Mark test case as Failed / 标记测试用例为失败