- Test Case ID: TC_API_[MODULE]_[NUMBER]
- Test Case Name: [Descriptive name]
- Module/Feature: [Feature name]
- API Endpoint: [Endpoint path]
- HTTP Method: [GET/POST/PUT/DELETE/PATCH]
- Priority: [Critical/High/Medium/Low]
- Type: [Functional/Security/Performance/Integration]
- Created By: [Tester name]
- Created Date: [DD/MM/YYYY]
- Last Updated: [DD/MM/YYYY]
[Mô tả chi tiết mục đích của test case]
- Condition 1
- Condition 2
- Condition 3
- Environment: [Dev/Staging/Production]
- Base URL: https://api.example.com
- API Version: v1
[METHOD] /api/v1/[resource]
Content-Type: application/json Authorization: Bearer {token} Accept: application/json
?param1=value1¶m2=value2
/api/v1/users/{user_id}
{
"field1": "value1",
"field2": "value2"
}Valid Data:
- field1: "valid_value"
- field2: "valid_value"
Invalid Data:
- field1: "invalid_value"
- field2: null
[Step 1]
[Step 2]
[Step 3]
[Expected HTTP status code]
{ "expected": "response", "structure": "here" }
Response Headers
Content-Type: application/json X-Custom-Header: value
Response Time < [time] ms