{ "name": "Items BOM 데이터 조회 테스트", "description": "GET /items/{id} 호출 시 BOM 데이터가 확장되어 반환되는지 테스트 (child_item_code, child_item_name, unit 포함)", "version": "1.0", "config": { "baseUrl": "", "timeout": 30000, "stopOnFailure": true }, "variables": { "user_id": "{{$env.FLOW_TESTER_USER_ID}}", "user_pwd": "{{$env.FLOW_TESTER_USER_PWD}}", "test_item_id": "818", "test_item_type": "FG" }, "steps": [ { "id": "login", "name": "로그인", "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": "get_items_list", "name": "품목 목록 조회 (FG/PT 타입)", "method": "GET", "endpoint": "/items?type=FG,PT&size=10", "headers": { "Authorization": "Bearer {{login.token}}" }, "expect": { "status": [200], "jsonPath": { "$.success": true } } }, { "id": "get_item_detail", "name": "품목 상세 조회 (BOM 확장 확인)", "method": "GET", "endpoint": "/items/{{test_item_id}}?item_type={{test_item_type}}", "headers": { "Authorization": "Bearer {{login.token}}" }, "expect": { "status": [200], "jsonPath": { "$.success": true, "$.data.id": "@isNumber", "$.data.item_type": "@isString", "$.data.code": "@isString", "$.data.name": "@isString" } }, "extract": { "item_id": "$.data.id", "item_code": "$.data.code", "item_bom": "$.data.bom" } }, { "id": "get_item_bom_api", "name": "Items BOM API 조회", "description": "GET /items/{id}/bom 엔드포인트 테스트", "method": "GET", "endpoint": "/items/{{test_item_id}}/bom", "headers": { "Authorization": "Bearer {{login.token}}" }, "expect": { "status": [200], "jsonPath": { "$.success": true } } }, { "id": "get_item_bom_tree", "name": "Items BOM 트리 조회", "description": "GET /items/{id}/bom/tree 엔드포인트 테스트", "method": "GET", "endpoint": "/items/{{test_item_id}}/bom/tree", "headers": { "Authorization": "Bearer {{login.token}}" }, "expect": { "status": [200], "jsonPath": { "$.success": true } } } ] }