- auth-login.json: 로그인, 토큰 갱신, 로그아웃 검증 ✅ - auth-menus.json: 메뉴 목록, 동기화, 권한 매트릭스 검증 ✅ - items-crud.json: 품목 조회 테스트 (조회 전용) - items-bom.json: BOM 조회/트리/요약/검증 테스트 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
117 lines
2.7 KiB
JSON
117 lines
2.7 KiB
JSON
{
|
|
"name": "Items CRUD Test",
|
|
"description": "품목 관리 테스트 (조회 위주)",
|
|
"version": "1.0",
|
|
"config": {
|
|
"baseUrl": "",
|
|
"timeout": 30000,
|
|
"stopOnFailure": false
|
|
},
|
|
"variables": {
|
|
"user_id": "{{$env.FLOW_TESTER_USER_ID}}",
|
|
"user_pwd": "{{$env.FLOW_TESTER_USER_PWD}}"
|
|
},
|
|
"steps": [
|
|
{
|
|
"id": "login",
|
|
"name": "1. 로그인",
|
|
"method": "POST",
|
|
"endpoint": "/api/v1/login",
|
|
"body": {
|
|
"user_id": "{{user_id}}",
|
|
"user_pwd": "{{user_pwd}}"
|
|
},
|
|
"expect": {
|
|
"status": [200],
|
|
"jsonPath": {
|
|
"$.access_token": "@isString"
|
|
}
|
|
},
|
|
"extract": {
|
|
"token": "$.access_token"
|
|
}
|
|
},
|
|
{
|
|
"id": "list_items",
|
|
"name": "2. 품목 목록 조회",
|
|
"method": "GET",
|
|
"endpoint": "/api/v1/items?page=1&size=10&type=FG",
|
|
"headers": {
|
|
"Authorization": "Bearer {{login.token}}"
|
|
},
|
|
"expect": {
|
|
"status": [200],
|
|
"jsonPath": {
|
|
"$.success": true
|
|
}
|
|
},
|
|
"extract": {
|
|
"firstItemId": "$.data.data[0].id",
|
|
"firstItemCode": "$.data.data[0].code"
|
|
}
|
|
},
|
|
{
|
|
"id": "list_items_by_type",
|
|
"name": "3. 품목 목록 조회 (타입별 FG)",
|
|
"method": "GET",
|
|
"endpoint": "/api/v1/items?page=1&size=10&type=FG",
|
|
"headers": {
|
|
"Authorization": "Bearer {{login.token}}"
|
|
},
|
|
"expect": {
|
|
"status": [200],
|
|
"jsonPath": {
|
|
"$.success": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "list_items_search",
|
|
"name": "4. 품목 검색",
|
|
"method": "GET",
|
|
"endpoint": "/api/v1/items?q=test&size=10&type=FG",
|
|
"headers": {
|
|
"Authorization": "Bearer {{login.token}}"
|
|
},
|
|
"expect": {
|
|
"status": [200],
|
|
"jsonPath": {
|
|
"$.success": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "get_item_by_id",
|
|
"name": "5. 품목 상세 조회 (ID)",
|
|
"method": "GET",
|
|
"endpoint": "/api/v1/items/{{list_items.firstItemId}}?type=FG",
|
|
"headers": {
|
|
"Authorization": "Bearer {{login.token}}"
|
|
},
|
|
"expect": {
|
|
"status": [200],
|
|
"jsonPath": {
|
|
"$.success": true
|
|
}
|
|
},
|
|
"continueOnFailure": true
|
|
},
|
|
{
|
|
"id": "get_item_by_code",
|
|
"name": "6. 품목 상세 조회 (Code)",
|
|
"method": "GET",
|
|
"endpoint": "/api/v1/items/code/{{list_items.firstItemCode}}?type=FG",
|
|
"headers": {
|
|
"Authorization": "Bearer {{login.token}}"
|
|
},
|
|
"expect": {
|
|
"status": [200],
|
|
"jsonPath": {
|
|
"$.success": true
|
|
}
|
|
},
|
|
"continueOnFailure": true
|
|
}
|
|
]
|
|
}
|