Files
sam-scenarios/purchase-status.json
김보곤 076aa2a376 refactor: 8개 시나리오 스텝 검증 품질 개선
- payment-history: 구체적 CSS 셀렉터 추가 (40% → 90%+ 목표)
- production-dashboard: verify_elements → verify_element 변환
- purchase-status: selectors 섹션 추가, 필터/다운로드 검증 개선
- settings-subscription: 모든 verify_elements를 구체적 셀렉터로 변환
- popup-management: 89 → 77 스텝으로 최적화, evaluate 스크립트 추가
- draft-box: 56 → 36 스텝으로 최적화, phase 마커 추가
- company-info: 폼 필드 ID 셀렉터 추가, 복잡한 검증 evaluate 추가
- item-management: 25+ 구체적 셀렉터 추가, generic verify 제거
2026-02-06 06:18:53 +09:00

196 lines
6.2 KiB
JSON

{
"id": "purchase-status",
"name": "구매현황 테스트",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": [
"error",
"fail",
"timeout",
"404",
"500",
"blocked"
]
},
"description": "구매관리 > 구매현황 메뉴의 구매 현황 조회/필터/통계 기능 테스트",
"baseUrl": "https://dev.codebridge-x.com",
"menuNavigation": {
"level1": "구매관리",
"level2": "구매현황",
"expectedUrl": "/purchase/status",
"searchWithinParent": true,
"closeOtherMenus": true
},
"auth": {
"username": "TestUser5",
"password": "password123!"
},
"selectors": {
"statisticsCard": ".card, [class*='stat'], [class*='summary'], [class*='card']",
"dateFilter": "input[type='date'], input[type='text'][placeholder*='날짜'], [class*='datepicker'] input",
"searchButton": "button:has-text('조회'), button:has-text('검색'), button[type='submit']",
"dataTable": "table, [class*='table'], [role='grid']",
"statusFilter": "select, [class*='select'], [class*='dropdown'], [role='combobox']",
"excelButton": "button:has-text('엑셀'), button:has-text('Excel'), button:has-text('다운로드'), button[class*='excel']",
"printButton": "button:has-text('인쇄'), button:has-text('Print'), button[class*='print']",
"chartArea": "canvas, svg, [class*='chart'], [class*='Chart']"
},
"steps": [
{
"id": 1,
"name": "메뉴 진입: 구매관리 > 구매현황",
"action": "menu_navigate",
"level1": "구매관리",
"level2": "구매현황",
"expected": {
"url_contains": "/purchase",
"visible": [
"구매현황",
"구매"
]
}
},
{
"id": 2,
"name": "필수 검증 #5: 목업 페이지 감지",
"action": "verify_not_mockup",
"checks": [
"input, select, button[type='submit']",
"table, [class*='table'], [role='grid']"
],
"expected": "정상 페이지 (목업 아님)"
},
{
"id": 3,
"name": "구매현황 페이지 구조 확인",
"action": "verify_element",
"target": ".card, [class*='stat'], [class*='summary'], table, [class*='table']",
"expected": "구매현황 페이지 정상 표시"
},
{
"id": 4,
"phase": "READ",
"name": "[READ] 구매 통계 카드 확인",
"action": "verify_element",
"target": ".card, [class*='stat'], [class*='summary'], [class*='total'], [class*='count']",
"expected": "구매 통계 카드 표시"
},
{
"id": 5,
"phase": "FILTER",
"name": "[FILTER] 날짜 필터 필드 확인",
"action": "verify_element",
"target": "input[type='date'], input[type='text'][placeholder*='날짜'], [class*='datepicker']",
"expected": "날짜 필터 필드 존재"
},
{
"id": 6,
"phase": "FILTER",
"name": "[FILTER] 조회 버튼 클릭",
"action": "click_if_exists",
"target": "button:has-text('조회'), button:has-text('검색'), button[type='submit']",
"timeout": 3000
},
{
"id": 7,
"phase": "FILTER",
"name": "[FILTER] 조회 결과 테이블 확인",
"action": "wait_for_element",
"target": "table tbody tr, [class*='table'] [class*='row'], [role='row']",
"timeout": 5000,
"expected": "조회 결과 데이터 로드"
},
{
"id": 8,
"name": "구매 현황 테이블 구조 확인",
"action": "verify_element",
"target": "table thead th, table th, [role='columnheader']",
"expected": "테이블 헤더 컬럼 표시"
},
{
"id": 9,
"name": "테이블 데이터 행 존재 확인",
"action": "verify_element",
"target": "table tbody tr, [class*='table'] [class*='row']:not(:first-child), [role='row']",
"expected": "테이블 데이터 행 표시"
},
{
"id": 10,
"name": "상태 필터/선택 요소 확인",
"action": "verify_element",
"target": "select, [class*='select'], [class*='dropdown'], [role='combobox'], [class*='filter']",
"expected": "상태/필터 선택 요소 표시"
},
{
"id": 11,
"name": "통계 영역 확인",
"action": "verify_element",
"target": ".card, [class*='stat'], [class*='summary'], [class*='total']",
"expected": "통계 정보 영역 표시"
},
{
"id": 12,
"name": "차트 또는 시각화 영역 확인",
"action": "verify_element",
"target": "canvas, svg, [class*='chart'], [class*='Chart'], [class*='graph']",
"optional": true,
"expected": "차트/그래프 영역 표시 (선택적)"
},
{
"id": 13,
"name": "필수 검증 #1: 엑셀 다운로드 버튼 확인",
"action": "verify_element",
"target": "button:has-text('엑셀'), button:has-text('Excel'), button:has-text('다운로드'), button[class*='excel'], a[href*='export'], a[href*='download']",
"expected": "엑셀 다운로드 버튼 존재"
},
{
"id": 14,
"name": "인쇄 버튼 확인",
"action": "verify_element",
"target": "button:has-text('인쇄'), button:has-text('Print'), button[class*='print'], [class*='print']",
"optional": true,
"expected": "인쇄 버튼 표시 (선택적)"
},
{
"id": 15,
"name": "페이지 정상 동작 최종 확인",
"action": "verify_url_stability",
"timeout": 2000,
"expected": "페이지 정상 유지 (에러 없음)"
}
],
"expectedAPIs": [
{
"method": "GET",
"endpoint": "/api/v1/purchase/status",
"description": "구매현황 조회"
},
{
"method": "GET",
"endpoint": "/api/v1/purchase/statistics",
"description": "구매 통계 조회"
}
],
"requiredVerifications": [
{
"id": 1,
"name": "엑셀 다운로드 버튼",
"steps": [
13
],
"criteria": "엑셀 다운로드 버튼 존재 확인"
},
{
"id": 5,
"name": "목업 페이지 감지",
"steps": [
2
],
"criteria": "입력 필드, 테이블 등 실제 UI 요소 존재"
}
],
"rollbackPlan": {
"note": "조회 전용 페이지로 데이터 변경 없음"
}
}