{ "id": "material-stock", "name": "재고현황 테스트", "screenshotPolicy": { "onErrorOnly": true, "captureOn": ["error", "fail", "timeout", "404", "500", "blocked"] }, "description": "자재관리 > 재고현황 메뉴의 재고 현황 조회/검색/필터/다운로드 기능 테스트", "baseUrl": "https://dev.codebridge-x.com", "menuNavigation": { "level1": "자재관리", "level2": "재고현황", "expectedUrl": "/material/stock-status", "searchWithinParent": true, "closeOtherMenus": true }, "auth": { "username": "TestUser5", "password": "password123!" }, "steps": [ { "id": 1, "name": "메뉴 진입: 자재관리 > 재고현황", "action": "menu_navigate", "level1": "자재관리", "level2": "재고현황", "expected": { "url_contains": "/material/stock", "visible": ["재고현황", "재고"] } }, { "id": 2, "name": "필수 검증 #5: 목업 페이지 감지", "action": "verify_not_mockup", "checks": [ "재고 목록 표시", "검색 기능 존재", "필터 존재" ], "expected": "정상 페이지 (목업 아님)" }, { "id": 3, "name": "재고현황 테이블 구조 확인", "action": "verify_table", "checks": [ "품목코드 컬럼", "품목명 컬럼", "현재고 컬럼", "안전재고 컬럼", "위치/창고 컬럼" ], "expected": "재고 테이블 표시" }, { "id": 4, "phase": "READ", "name": "[READ] 재고 데이터 확인", "action": "verify_detail", "checks": [ "재고 데이터 행 존재 또는 '데이터 없음' 메시지" ], "expected": "재고 데이터 표시" }, { "id": 5, "phase": "SEARCH", "name": "[SEARCH] 품목 검색", "action": "click_if_exists", "target": "input[type='search'], input[placeholder*='검색']", "value": "테스트", "submit": true }, { "id": 6, "phase": "SEARCH", "name": "[SEARCH] 검색 결과 확인", "action": "verify_detail", "checks": [ "검색 결과 표시 또는 결과 없음 메시지" ], "expected": "검색 기능 동작" }, { "id": 7, "phase": "SEARCH", "name": "[SEARCH] 검색 초기화", "action": "click_if_exists", "target": "button:has-text('초기화'), button:has-text('리셋'), button[class*='clear']", "expected": "검색 초기화" }, { "id": 8, "phase": "FILTER", "name": "[FILTER] 창고/위치 필터", "action": "click_if_exists", "target": "select[name*='warehouse'], select[name*='location'], button:has-text('창고')", "expected": "창고 필터 옵션 표시" }, { "id": 9, "phase": "FILTER", "name": "[FILTER] 재고 상태 필터", "action": "verify_elements", "checks": [ "재고 부족/적정/과다 필터 가능" ], "expected": "재고 상태 필터 표시" }, { "id": 10, "name": "안전재고 이하 품목 확인", "action": "verify_elements", "checks": [ "안전재고 이하 품목 강조 표시", "부족 재고 경고 표시" ], "expected": "안전재고 알림 표시" }, { "id": 11, "name": "재고 이동 이력 링크", "action": "verify_elements", "checks": [ "재고 이동 이력 조회 버튼 또는 링크" ], "expected": "이력 조회 기능 표시" }, { "id": 12, "name": "재고 현황 요약", "action": "verify_elements", "checks": [ "총 품목 수", "재고 금액 합계", "부족 품목 수" ], "expected": "요약 정보 표시" }, { "id": 13, "name": "필수 검증 #1: 엑셀 다운로드", "action": "click_if_exists", "target": "button:has-text('엑셀'), button:has-text('Excel'), button:has-text('다운로드')", "verify": { "api_call": "GET /api/v1/material/stock/export", "file_download": true }, "expected": "엑셀 파일 다운로드" }, { "id": 14, "name": "인쇄 기능 확인", "action": "verify_elements", "checks": [ "인쇄 버튼 존재" ], "expected": "인쇄 기능 표시" }, { "id": 15, "name": "재고 조정 버튼 확인", "action": "verify_elements", "checks": [ "재고 조정 버튼 존재 여부" ], "expected": "재고 조정 기능 확인" } ], "expectedAPIs": [ { "method": "GET", "endpoint": "/api/v1/material/stock", "description": "재고현황 조회" }, { "method": "GET", "endpoint": "/api/v1/material/stock/export", "description": "재고현황 엑셀 다운로드" }, { "method": "GET", "endpoint": "/api/v1/material/warehouses", "description": "창고 목록 조회" } ], "requiredVerifications": [ { "id": 1, "name": "엑셀 다운로드", "steps": [13], "criteria": "API 호출 + 파일 다운로드" }, { "id": 3, "name": "검색/필터", "steps": [5, 6, 7], "criteria": "검색 + 필터 기능 동작" }, { "id": 5, "name": "목업 페이지 감지", "steps": [2], "criteria": "재고 목록, 검색 기능, 필터 존재" } ], "rollbackPlan": { "note": "조회 전용 페이지로 데이터 변경 없음" } }