- workflow-*: 다중 모듈 비즈니스 워크플로우 5종 - perf-*: 20개 주요 페이지 성능 측정 시나리오 - edge-*: 폼 검증, 경계값, 특수문자, 빠른 클릭 등 15종 - a11y-*: WCAG 2.1 AA 접근성 검사 20개 페이지
119 lines
4.8 KiB
JSON
119 lines
4.8 KiB
JSON
{
|
|
"id": "workflow-sales-lifecycle",
|
|
"name": "비즈니스 워크플로우: 거래처→단가→수주→매출 흐름",
|
|
"version": "1.0.0",
|
|
"category": "workflow",
|
|
"auth": {
|
|
"role": "admin"
|
|
},
|
|
"menuNavigation": {
|
|
"level1": "판매관리",
|
|
"level2": "거래처관리"
|
|
},
|
|
"screenshotPolicy": {
|
|
"captureOnFail": true,
|
|
"captureOnPass": false
|
|
},
|
|
"steps": [
|
|
{
|
|
"id": 1,
|
|
"name": "[판매 > 거래처관리] wait",
|
|
"action": "wait",
|
|
"timeout": 3000
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "[판매 > 거래처관리] wait_for_table",
|
|
"action": "wait_for_table",
|
|
"timeout": 5000
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "[판매 > 거래처관리] CAPTURE_CLIENT",
|
|
"action": "evaluate",
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'CAPTURE_CLIENT'};await w(1500);const rows=Array.from(document.querySelectorAll('table tbody tr')).filter(r=>r.offsetParent!==null);R.rowCount=rows.length;if(rows.length===0){R.warn='테이블에 데이터 없음';R.ok=true;return JSON.stringify(R);}const cells=rows[0].querySelectorAll('td');let val='';const indices=[1,2,3];for(const i of indices){ const t=cells[i]?.innerText?.trim(); if(t&&t.length>=2&&t.length<=40&&!/^[\\d,.]+$/.test(t)&&!/^\\d{4}[-/]/.test(t)){val=t;break;}}R.clientName=val;if(!val){R.warn='clientName 추출 실패';R.ok=true;return JSON.stringify(R);}if(!window.__WORKFLOW_CTX__)window.__WORKFLOW_CTX__={};window.__WORKFLOW_CTX__.clientName=val;R.ok=true;R.info='캐처: '+val;return JSON.stringify(R);})()",
|
|
"phase": "CAPTURE_CLIENT"
|
|
},
|
|
{
|
|
"id": 4,
|
|
"name": "[판매 > 단가관리] 메뉴 이동",
|
|
"action": "menu_navigate",
|
|
"level1": "판매관리",
|
|
"level2": "단가관리",
|
|
"timeout": 10000
|
|
},
|
|
{
|
|
"id": 5,
|
|
"name": "[판매 > 단가관리] wait",
|
|
"action": "wait",
|
|
"timeout": 3000
|
|
},
|
|
{
|
|
"id": 6,
|
|
"name": "[판매 > 단가관리] wait_for_table",
|
|
"action": "wait_for_table",
|
|
"timeout": 5000
|
|
},
|
|
{
|
|
"id": 7,
|
|
"name": "[판매 > 단가관리] CAPTURE_PRICE_ITEM",
|
|
"action": "evaluate",
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'CAPTURE_PRICE_ITEM'};await w(1500);const rows=Array.from(document.querySelectorAll('table tbody tr')).filter(r=>r.offsetParent!==null);R.rowCount=rows.length;if(rows.length===0){R.warn='테이블에 데이터 없음';R.ok=true;return JSON.stringify(R);}const cells=rows[0].querySelectorAll('td');let val='';const indices=[1,2,3];for(const i of indices){ const t=cells[i]?.innerText?.trim(); if(t&&t.length>=2&&t.length<=40&&!/^[\\d,.]+$/.test(t)&&!/^\\d{4}[-/]/.test(t)){val=t;break;}}R.itemName=val;if(!val){R.warn='itemName 추출 실패';R.ok=true;return JSON.stringify(R);}if(!window.__WORKFLOW_CTX__)window.__WORKFLOW_CTX__={};window.__WORKFLOW_CTX__.itemName=val;R.ok=true;R.info='캐처: '+val;return JSON.stringify(R);})()",
|
|
"phase": "CAPTURE_PRICE_ITEM"
|
|
},
|
|
{
|
|
"id": 8,
|
|
"name": "[판매 > 수주관리] 메뉴 이동",
|
|
"action": "menu_navigate",
|
|
"level1": "판매관리",
|
|
"level2": "수주관리",
|
|
"timeout": 10000
|
|
},
|
|
{
|
|
"id": 9,
|
|
"name": "[판매 > 수주관리] wait",
|
|
"action": "wait",
|
|
"timeout": 3000
|
|
},
|
|
{
|
|
"id": 10,
|
|
"name": "[판매 > 수주관리] wait_for_table",
|
|
"action": "wait_for_table",
|
|
"timeout": 5000
|
|
},
|
|
{
|
|
"id": 11,
|
|
"name": "[판매 > 수주관리] CHECK_ORDERS",
|
|
"action": "evaluate",
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'CHECK_ORDERS'};await w(1500);const rows=Array.from(document.querySelectorAll('table tbody tr')).filter(r=>r.offsetParent!==null);R.rowCount=rows.length;R.ok=true;R.info='테이블 행: '+rows.length;return JSON.stringify(R);})()",
|
|
"phase": "CHECK_ORDERS"
|
|
},
|
|
{
|
|
"id": 12,
|
|
"name": "[회계 > 매출관리] 메뉴 이동",
|
|
"action": "menu_navigate",
|
|
"level1": "회계관리",
|
|
"level2": "매출관리",
|
|
"timeout": 10000
|
|
},
|
|
{
|
|
"id": 13,
|
|
"name": "[회계 > 매출관리] wait",
|
|
"action": "wait",
|
|
"timeout": 3000
|
|
},
|
|
{
|
|
"id": 14,
|
|
"name": "[회계 > 매출관리] wait_for_table",
|
|
"action": "wait_for_table",
|
|
"timeout": 5000
|
|
},
|
|
{
|
|
"id": 15,
|
|
"name": "[회계 > 매출관리] CHECK_SALES",
|
|
"action": "evaluate",
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'CHECK_SALES'};await w(1500);const rows=Array.from(document.querySelectorAll('table tbody tr')).filter(r=>r.offsetParent!==null);R.rowCount=rows.length;R.ok=true;R.info='테이블 행: '+rows.length;return JSON.stringify(R);})()",
|
|
"phase": "CHECK_SALES"
|
|
}
|
|
]
|
|
} |