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 제거
This commit is contained in:
@@ -25,6 +25,16 @@
|
||||
"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,
|
||||
@@ -45,137 +55,108 @@
|
||||
"name": "필수 검증 #5: 목업 페이지 감지",
|
||||
"action": "verify_not_mockup",
|
||||
"checks": [
|
||||
"구매 현황 표시",
|
||||
"기간 필터 존재",
|
||||
"통계 또는 차트 존재"
|
||||
"input, select, button[type='submit']",
|
||||
"table, [class*='table'], [role='grid']"
|
||||
],
|
||||
"expected": "정상 페이지 (목업 아님)"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"name": "구매현황 페이지 구조 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"구매 통계 카드",
|
||||
"기간 선택 필터",
|
||||
"구매 목록 테이블 또는 차트"
|
||||
],
|
||||
"action": "verify_element",
|
||||
"target": ".card, [class*='stat'], [class*='summary'], table, [class*='table']",
|
||||
"expected": "구매현황 페이지 정상 표시"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"phase": "READ",
|
||||
"name": "[READ] 구매 통계 확인",
|
||||
"action": "verify_detail",
|
||||
"checks": [
|
||||
"총 구매금액",
|
||||
"구매 건수",
|
||||
"평균 구매금액"
|
||||
],
|
||||
"expected": "구매 통계 표시"
|
||||
"name": "[READ] 구매 통계 카드 확인",
|
||||
"action": "verify_element",
|
||||
"target": ".card, [class*='stat'], [class*='summary'], [class*='total'], [class*='count']",
|
||||
"expected": "구매 통계 카드 표시"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"phase": "FILTER",
|
||||
"name": "[FILTER] 기간 필터 - 시작일",
|
||||
"action": "click_if_exists",
|
||||
"target": "input[type='date']:first-of-type, input[name*='start']"
|
||||
"name": "[FILTER] 날짜 필터 필드 확인",
|
||||
"action": "verify_element",
|
||||
"target": "input[type='date'], input[type='text'][placeholder*='날짜'], [class*='datepicker']",
|
||||
"expected": "날짜 필터 필드 존재"
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"phase": "FILTER",
|
||||
"name": "[FILTER] 기간 필터 - 종료일",
|
||||
"name": "[FILTER] 조회 버튼 클릭",
|
||||
"action": "click_if_exists",
|
||||
"target": "input[type='date']:last-of-type, input[name*='end']"
|
||||
"target": "button:has-text('조회'), button:has-text('검색'), button[type='submit']",
|
||||
"timeout": 3000
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"phase": "FILTER",
|
||||
"name": "[FILTER] 조회 실행",
|
||||
"action": "click_if_exists",
|
||||
"target": "button:has-text('조회'), button:has-text('검색')",
|
||||
"expected": {
|
||||
"data_loaded": true,
|
||||
"api_call": "GET /api/v1/purchase/status"
|
||||
}
|
||||
"name": "[FILTER] 조회 결과 테이블 확인",
|
||||
"action": "wait_for_element",
|
||||
"target": "table tbody tr, [class*='table'] [class*='row'], [role='row']",
|
||||
"timeout": 5000,
|
||||
"expected": "조회 결과 데이터 로드"
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"name": "구매 현황 테이블 확인",
|
||||
"action": "verify_table",
|
||||
"checks": [
|
||||
"발주일 컬럼",
|
||||
"거래처 컬럼",
|
||||
"품목 컬럼",
|
||||
"금액 컬럼",
|
||||
"상태 컬럼"
|
||||
],
|
||||
"expected": "구매 현황 테이블 표시"
|
||||
"name": "구매 현황 테이블 구조 확인",
|
||||
"action": "verify_element",
|
||||
"target": "table thead th, table th, [role='columnheader']",
|
||||
"expected": "테이블 헤더 컬럼 표시"
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"name": "상태별 필터 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"진행중/완료/취소 상태 필터"
|
||||
],
|
||||
"expected": "상태 필터 표시"
|
||||
"name": "테이블 데이터 행 존재 확인",
|
||||
"action": "verify_element",
|
||||
"target": "table tbody tr, [class*='table'] [class*='row']:not(:first-child), [role='row']",
|
||||
"expected": "테이블 데이터 행 표시"
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"name": "거래처별 통계 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"거래처별 구매금액 표시"
|
||||
],
|
||||
"expected": "거래처별 통계 표시"
|
||||
"name": "상태 필터/선택 요소 확인",
|
||||
"action": "verify_element",
|
||||
"target": "select, [class*='select'], [class*='dropdown'], [role='combobox'], [class*='filter']",
|
||||
"expected": "상태/필터 선택 요소 표시"
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"name": "품목별 통계 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"품목별 구매금액 표시"
|
||||
],
|
||||
"expected": "품목별 통계 표시"
|
||||
"name": "통계 영역 확인",
|
||||
"action": "verify_element",
|
||||
"target": ".card, [class*='stat'], [class*='summary'], [class*='total']",
|
||||
"expected": "통계 정보 영역 표시"
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"name": "월별 추이 차트 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"월별 구매 추이 차트"
|
||||
],
|
||||
"expected": "추이 차트 표시"
|
||||
"name": "차트 또는 시각화 영역 확인",
|
||||
"action": "verify_element",
|
||||
"target": "canvas, svg, [class*='chart'], [class*='Chart'], [class*='graph']",
|
||||
"optional": true,
|
||||
"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/purchase/status/export",
|
||||
"file_download": true
|
||||
},
|
||||
"expected": "엑셀 파일 다운로드"
|
||||
"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_elements",
|
||||
"checks": [
|
||||
"인쇄 버튼 존재"
|
||||
],
|
||||
"expected": "인쇄 기능 표시"
|
||||
"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_elements",
|
||||
"checks": [
|
||||
"전년 동기 대비 증감 표시"
|
||||
],
|
||||
"expected": "비교 분석 표시"
|
||||
"name": "페이지 정상 동작 최종 확인",
|
||||
"action": "verify_url_stability",
|
||||
"timeout": 2000,
|
||||
"expected": "페이지 정상 유지 (에러 없음)"
|
||||
}
|
||||
],
|
||||
"expectedAPIs": [
|
||||
@@ -188,21 +169,16 @@
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/purchase/statistics",
|
||||
"description": "구매 통계 조회"
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/purchase/status/export",
|
||||
"description": "구매현황 엑셀 다운로드"
|
||||
}
|
||||
],
|
||||
"requiredVerifications": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "엑셀 다운로드",
|
||||
"name": "엑셀 다운로드 버튼",
|
||||
"steps": [
|
||||
13
|
||||
],
|
||||
"criteria": "API 호출 + 파일 다운로드"
|
||||
"criteria": "엑셀 다운로드 버튼 존재 확인"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
@@ -210,10 +186,10 @@
|
||||
"steps": [
|
||||
2
|
||||
],
|
||||
"criteria": "구매 현황, 기간 필터, 통계/차트 존재"
|
||||
"criteria": "입력 필드, 테이블 등 실제 UI 요소 존재"
|
||||
}
|
||||
],
|
||||
"rollbackPlan": {
|
||||
"note": "조회 전용 페이지로 데이터 변경 없음"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user