804 B
804 B
// File: docs/ai-knowledge-base/templates/test-case.md
Test Case Specification
📋 Metadata
- Module: [e.g. Authentication]
- Type: Unit / Integration / E2E
- Author: [Name]
🧪 Test Case: [Descriptive Title]
Objective
[อธิบายว่าต้องการทดสอบอะไร]
Pre-conditions
- User logged in as [Role]
- Data [X] exists in database
Test Steps
- Call API
METHOD /v1/...with data[Y] - Verify response status is
200 - Verify database record is updated
Expected Result
- API return success
- Audit log is created
- No side effects on unrelated data
Edge Cases to Cover
- Missing
Idempotency-Key - Unauthorized role access
- Invalid UUID format
// Change Log: // - 2026-05-14: Initial test case template