Files
sam-scenarios/accounting-cost.json
김보곤 5d7482a3e9 refactor: 회계/생산/구매/자재 시나리오 B/A등급 개선
- accounting-ledger, accounting-payment, accounting-daily-report: C→B (조회/필터/다운로드)
- accounting-financial, accounting-cost: C→B (재무제표/원가 조회)
- production-dashboard, production-worker: C→B (현황판/작업자화면)
- production-item, production-work-result: C→A (CRUD 전체)
- purchase-status: C→B (구매현황 조회)
- purchase-client, purchase-pricing: C→A (거래처/단가 CRUD)
- material-stock: C→B (재고현황 조회)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 13:49:08 +09:00

213 lines
5.6 KiB
JSON

{
"id": "accounting-cost",
"name": "원가관리 테스트",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
},
"description": "회계관리 > 원가관리 메뉴의 원가 분석/조회/필터/다운로드 기능 테스트",
"baseUrl": "https://dev.codebridge-x.com",
"menuNavigation": {
"level1": "회계관리",
"level2": "원가관리",
"expectedUrl": "/accounting/cost-management",
"searchWithinParent": true,
"closeOtherMenus": true
},
"auth": {
"username": "TestUser5",
"password": "password123!"
},
"steps": [
{
"id": 1,
"name": "메뉴 진입: 회계관리 > 원가관리",
"action": "menu_navigate",
"level1": "회계관리",
"level2": "원가관리",
"expected": {
"url_contains": "/accounting",
"visible": ["원가관리", "원가"]
}
},
{
"id": 2,
"name": "필수 검증 #5: 목업 페이지 감지",
"action": "verify_not_mockup",
"checks": [
"원가 데이터 표시 또는 조회 폼",
"기간 선택 가능",
"품목/제품 선택 가능"
],
"expected": "정상 페이지 (목업 아님)"
},
{
"id": 3,
"name": "원가관리 페이지 구조 확인",
"action": "verify_elements",
"checks": [
"품목/제품 선택",
"기간 선택 (시작일/종료일)",
"조회 버튼",
"원가 테이블 또는 차트"
],
"expected": "원가관리 페이지 정상 표시"
},
{
"id": 4,
"phase": "FILTER",
"name": "[FILTER] 품목/제품 선택",
"action": "click",
"target": "select[name*='item'], select[name*='product'], button:has-text('품목'), input[placeholder*='품목']",
"expected": "품목 선택 옵션 표시"
},
{
"id": 5,
"phase": "FILTER",
"name": "[FILTER] 기간 - 시작일",
"action": "fill",
"target": "input[type='date']:first-of-type, input[name*='start']",
"value": "2025-01-01",
"expected": "시작일 입력"
},
{
"id": 6,
"phase": "FILTER",
"name": "[FILTER] 기간 - 종료일",
"action": "fill",
"target": "input[type='date']:last-of-type, input[name*='end']",
"value": "2025-12-31",
"expected": "종료일 입력"
},
{
"id": 7,
"phase": "FILTER",
"name": "[FILTER] 조회 버튼 클릭",
"action": "click",
"target": "button:has-text('조회'), button:has-text('검색')",
"expected": {
"data_loaded": true,
"api_call": "GET /api/v1/accounting/cost"
}
},
{
"id": 8,
"phase": "READ",
"name": "[READ] 원가 테이블 구조 확인",
"action": "verify_table",
"checks": [
"품목명 컬럼",
"재료비 컬럼",
"노무비 컬럼",
"경비 컬럼",
"합계 컬럼"
],
"expected": "원가 테이블 정상 표시"
},
{
"id": 9,
"name": "원가 데이터 확인",
"action": "verify_detail",
"checks": [
"데이터 행 존재 또는 '데이터 없음' 메시지",
"금액 포맷 정상"
],
"expected": "원가 데이터 표시"
},
{
"id": 10,
"name": "원가 구성 비율 확인",
"action": "verify_elements",
"checks": [
"재료비 비율",
"노무비 비율",
"경비 비율"
],
"expected": "원가 구성 비율 표시"
},
{
"id": 11,
"name": "원가 차트 확인",
"action": "verify_elements",
"checks": [
"원가 추이 차트 또는 구성 차트"
],
"expected": "차트 시각화 표시"
},
{
"id": 12,
"name": "필수 검증 #1: 엑셀 다운로드",
"action": "click",
"target": "button:has-text('엑셀'), button:has-text('Excel'), button:has-text('다운로드')",
"critical": true,
"verify": {
"api_call": "GET /api/v1/accounting/cost/export",
"file_download": true
},
"expected": "엑셀 파일 다운로드"
},
{
"id": 13,
"name": "인쇄 기능 확인",
"action": "verify_elements",
"checks": [
"인쇄 버튼 존재"
],
"expected": "인쇄 기능 표시"
},
{
"id": 14,
"name": "원가율 표시 확인",
"action": "verify_detail",
"checks": [
"매출원가율 표시",
"목표 원가율 대비 현황"
],
"expected": "원가율 분석 표시"
},
{
"id": 15,
"name": "기간별 비교 기능",
"action": "verify_elements",
"checks": [
"전월/전년 대비 비교 기능"
],
"expected": "비교 분석 기능 확인"
}
],
"expectedAPIs": [
{
"method": "GET",
"endpoint": "/api/v1/accounting/cost",
"description": "원가 데이터 조회"
},
{
"method": "GET",
"endpoint": "/api/v1/accounting/cost/export",
"description": "원가 데이터 엑셀 다운로드"
},
{
"method": "GET",
"endpoint": "/api/v1/products",
"description": "품목 목록 조회"
}
],
"requiredVerifications": [
{
"id": 1,
"name": "엑셀 다운로드",
"steps": [12],
"criteria": "API 호출 + 파일 다운로드"
},
{
"id": 5,
"name": "목업 페이지 감지",
"steps": [2],
"criteria": "원가 데이터/조회 폼, 기간 선택, 품목 선택 존재"
}
],
"rollbackPlan": {
"note": "조회 전용 페이지로 데이터 변경 없음"
}
}