omni-dashboard-playwright-reporter
Version:
Playwright client for publishing test results to Omni Dashboard - Transform Your Test Automation with AI-Powered Insights
55 lines (54 loc) • 1.19 kB
TypeScript
export interface Build {
build_id: string;
project_id: string;
environment: string;
status: string;
duration: number;
[key: string]: any;
}
export interface StartBuildResponse {
build: Build;
}
export interface CompleteBuildResponse {
build: Build;
}
export interface StdoutLog {
timestamp: string;
level: string;
message: string;
}
export interface Step {
name: string;
status: string;
duration: number;
sequence_number: number;
error_message?: string;
stack_trace?: string;
}
export interface ScreenshotMeta {
name: string;
timestamp: string;
}
export interface TestCasePayload {
name: string;
module: string;
status: 'passed' | 'failed' | 'skipped';
duration: number;
steps: Step[];
stdout: StdoutLog[];
screenshots?: ScreenshotMeta[];
errorMessage?: string;
errorStack?: string;
priority?: 'P0' | 'P1' | 'P2' | 'P3';
tags?: string[];
}
export interface OmniReporterConfig {
baseUrl?: string;
projectId: string;
apiKey: string;
environment: string;
}
export interface OmniReporterOptions {
config?: OmniReporterConfig;
customOption?: string;
}