/// /// import { Attribute, Issue } from './common'; import { TEST_ITEM_TYPES, LOG_LEVELS, LAUNCH_MODES } from '../constants'; import { TestStep } from '@playwright/test/reporter'; export interface StartLaunchObjType { startTime?: string | number; attributes?: Array; description?: string; name?: string; rerun?: boolean; rerunOf?: string; mode?: LAUNCH_MODES; id?: string; } export interface StartTestObjType { name: string; type: TEST_ITEM_TYPES; attributes?: Array; description?: string; startTime?: string | number; codeRef?: string; testCaseId?: string; retry?: boolean; } export interface FinishTestItemObjType { endTime?: string | number; status?: string; attributes?: Attribute[]; description?: string; testCaseId?: string; issue?: Issue; } export interface Attachment { name: string; type: string; content: string | Buffer; } export interface LogRQ { level?: LOG_LEVELS; message?: string; time?: string | number; file?: Attachment; } export interface TestStepWithId extends TestStep { id: string; attachments: Array<{ name: string; contentType: string; path?: string; body?: Buffer; }>; }