198 lines
4.4 KiB
JSON
198 lines
4.4 KiB
JSON
{
|
|
"name": "ItemMaster Init & Structure API Flow Test",
|
|
"description": "품목기준관리 초기화 및 구조 조회 API 테스트 - 로그인, 초기화, 페이지구조조회",
|
|
"version": "1.0",
|
|
"config": {
|
|
"baseUrl": "",
|
|
"timeout": 30000,
|
|
"stopOnFailure": true
|
|
},
|
|
"variables": {
|
|
"user_id": "{{$env.FLOW_TESTER_USER_ID}}",
|
|
"user_pwd": "{{$env.FLOW_TESTER_USER_PWD}}"
|
|
},
|
|
"steps": [
|
|
{
|
|
"id": "login",
|
|
"name": "1. 로그인",
|
|
"method": "POST",
|
|
"endpoint": "/login",
|
|
"body": {
|
|
"user_id": "{{user_id}}",
|
|
"user_pwd": "{{user_pwd}}"
|
|
},
|
|
"expect": {
|
|
"status": [200],
|
|
"jsonPath": {
|
|
"$.access_token": "@isString"
|
|
}
|
|
},
|
|
"extract": {
|
|
"token": "$.access_token"
|
|
}
|
|
},
|
|
{
|
|
"id": "init",
|
|
"name": "2. ItemMaster 초기화 데이터 조회",
|
|
"method": "GET",
|
|
"endpoint": "/item-master/init",
|
|
"headers": {
|
|
"Authorization": "Bearer {{login.token}}"
|
|
},
|
|
"expect": {
|
|
"status": [200],
|
|
"jsonPath": {
|
|
"$.success": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "list_pages_fg",
|
|
"name": "3. 페이지 목록 조회 (완제품 FG)",
|
|
"method": "GET",
|
|
"endpoint": "/item-master/pages",
|
|
"params": {
|
|
"item_type": "FG"
|
|
},
|
|
"headers": {
|
|
"Authorization": "Bearer {{login.token}}"
|
|
},
|
|
"expect": {
|
|
"status": [200],
|
|
"jsonPath": {
|
|
"$.success": true
|
|
}
|
|
},
|
|
"extract": {
|
|
"fg_pages": "$.data"
|
|
}
|
|
},
|
|
{
|
|
"id": "list_pages_sm",
|
|
"name": "4. 페이지 목록 조회 (부자재 SM)",
|
|
"method": "GET",
|
|
"endpoint": "/item-master/pages",
|
|
"params": {
|
|
"item_type": "SM"
|
|
},
|
|
"headers": {
|
|
"Authorization": "Bearer {{login.token}}"
|
|
},
|
|
"expect": {
|
|
"status": [200],
|
|
"jsonPath": {
|
|
"$.success": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "list_pages_rm",
|
|
"name": "5. 페이지 목록 조회 (원자재 RM)",
|
|
"method": "GET",
|
|
"endpoint": "/item-master/pages",
|
|
"params": {
|
|
"item_type": "RM"
|
|
},
|
|
"headers": {
|
|
"Authorization": "Bearer {{login.token}}"
|
|
},
|
|
"expect": {
|
|
"status": [200],
|
|
"jsonPath": {
|
|
"$.success": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "list_sections",
|
|
"name": "6. 독립 섹션 목록 조회",
|
|
"method": "GET",
|
|
"endpoint": "/item-master/sections",
|
|
"headers": {
|
|
"Authorization": "Bearer {{login.token}}"
|
|
},
|
|
"expect": {
|
|
"status": [200],
|
|
"jsonPath": {
|
|
"$.success": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "list_fields",
|
|
"name": "7. 독립 필드 목록 조회",
|
|
"method": "GET",
|
|
"endpoint": "/item-master/fields",
|
|
"headers": {
|
|
"Authorization": "Bearer {{login.token}}"
|
|
},
|
|
"expect": {
|
|
"status": [200],
|
|
"jsonPath": {
|
|
"$.success": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "list_bom_items",
|
|
"name": "8. BOM 항목 목록 조회",
|
|
"method": "GET",
|
|
"endpoint": "/item-master/bom-items",
|
|
"headers": {
|
|
"Authorization": "Bearer {{login.token}}"
|
|
},
|
|
"expect": {
|
|
"status": [200],
|
|
"jsonPath": {
|
|
"$.success": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "list_section_templates",
|
|
"name": "9. 섹션 템플릿 목록 조회",
|
|
"method": "GET",
|
|
"endpoint": "/item-master/section-templates",
|
|
"headers": {
|
|
"Authorization": "Bearer {{login.token}}"
|
|
},
|
|
"expect": {
|
|
"status": [200],
|
|
"jsonPath": {
|
|
"$.success": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "list_custom_tabs",
|
|
"name": "10. 커스텀 탭 목록 조회",
|
|
"method": "GET",
|
|
"endpoint": "/item-master/custom-tabs",
|
|
"headers": {
|
|
"Authorization": "Bearer {{login.token}}"
|
|
},
|
|
"expect": {
|
|
"status": [200],
|
|
"jsonPath": {
|
|
"$.success": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "list_unit_options",
|
|
"name": "11. 단위 옵션 목록 조회",
|
|
"method": "GET",
|
|
"endpoint": "/item-master/unit-options",
|
|
"headers": {
|
|
"Authorization": "Bearer {{login.token}}"
|
|
},
|
|
"expect": {
|
|
"status": [200],
|
|
"jsonPath": {
|
|
"$.success": true
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|