feat: [flow-tester] API 로그 캡처 및 UI 개선
- ApiLogCapturer 추가: 플로우 실행 중 API 로그 캡처
- resolveBaseUrl() 추가: .env 환경변수 기반 baseUrl 지원
- 실행 상세 페이지: 스텝별 접기/펼치기 기능 (성공=접힘, 실패=펼침)
- JSON 가이드 및 예제 플로우 최신화
- AI 프롬프트 템플릿 업데이트
- bindExpectVariables() 추가: expect jsonPath 값에 변수 바인딩 적용
- areNumericEqual() 추가: 숫자 타입 유연 비교 ("2" == 2)
This commit is contained in:
@@ -22,7 +22,7 @@ class FlowTesterController extends Controller
|
||||
public function index(): View
|
||||
{
|
||||
$flows = AdminApiFlow::with(['runs' => fn ($q) => $q->latest()->limit(1)])
|
||||
->orderByDesc('updated_at')
|
||||
->orderByDesc('created_at')
|
||||
->paginate(20);
|
||||
|
||||
return view('dev-tools.flow-tester.index', compact('flows'));
|
||||
@@ -231,6 +231,7 @@ public function run(int $id)
|
||||
'failed_step' => $result['failedStep'],
|
||||
'execution_log' => $result['executionLog'],
|
||||
'error_message' => $result['errorMessage'],
|
||||
'api_logs' => $result['apiLogs'] ?? [],
|
||||
]);
|
||||
|
||||
return response()->json([
|
||||
|
||||
Reference in New Issue
Block a user