UNPKG

wdio-performancetotal-service

Version:

WebdriverIO service for analyzing test flow performance

19 lines (18 loc) 797 B
import { PartialLogEntry } from "./entities/partial-log-entry"; import { PerformanceLogEntry } from "./entities/performance-log-entry"; export declare class PerformanceCache { _startLogEntries: Array<PartialLogEntry>; _endLogEntries: Array<PartialLogEntry>; _performanceEntries: Array<PerformanceLogEntry>; constructor(); sampleStart(stepName: string, instanceId: string): void; sampleEnd(stepName: string, instanceId: string): void; getSampleTime(stepName: string): number; flush(fileName: string, browser: WebdriverIO.Browser, isTestPassed: boolean): Promise<void>; private setSample; private getPerformanceEntryTime; private createPerformanceEntries; private getStartIdByStepName; private clearData; private writePerformanceDataToFile; }