UNPKG

omni-dashboard-playwright-reporter

Version:

Playwright client for publishing test results to Omni Dashboard - Transform Your Test Automation with AI-Powered Insights

45 lines (44 loc) 1.01 kB
export interface SingleTestCase { name: string; module?: string; priority?: 'P0' | 'P1' | 'P2' | 'P3'; tags?: string[]; status: 'failed' | 'passed' | 'skipped'; duration: number; steps?: Array<{ name: string; sequence_number: number; duration: number; status: 'failed' | 'passed'; }>; stdout?: Array<{ timestamp: string; level: 'INFO' | 'ERROR'; message: string; }>; screenshots?: Array<{ name: string; timestamp: string; }>; traces?: Array<{ name: string; }>; annotations?: any[]; error_message?: string; error_stack_trace?: string; } export interface UploadTestCasesRequestBody { build_id: string; test_cases: SingleTestCase[]; } export interface Screenshot { name: string; path: string; metadata: Record<string, any>; timestamp: string; upload_url: string; } export interface Trace { name: string; upload_url: string; }