Class BrowserPerformanceExecutionReport
java.lang.Object
com.shaft.tools.io.internal.BrowserPerformanceExecutionReport
Aggregates Playwright browser action and page-load timings into performance budget reports.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidgeneratePerformanceReport(long startTime, long endTime) static AssertionErrorgeneratePerformanceReportAndGetFailure(long startTime, long endTime) static voidrecordBrowserAction(String actionName, long durationNanos) static voidrecordPageLoad(String pageName, long durationNanos) static voidreset()static boolean
-
Method Details
-
getBrowserActionPerformanceData
-
getPageLoadPerformanceData
-
reset
public static void reset() -
recordBrowserAction
-
recordPageLoad
-
shouldRecord
public static boolean shouldRecord() -
generatePerformanceReport
public static void generatePerformanceReport(long startTime, long endTime) -
generatePerformanceReportAndGetFailure
-