Class BrowserPerformanceExecutionReport

java.lang.Object
com.shaft.tools.io.internal.BrowserPerformanceExecutionReport

public final class BrowserPerformanceExecutionReport extends Object
Aggregates Playwright browser action and page-load timings into performance budget reports.
  • Method Details

    • getBrowserActionPerformanceData

      public static Map<String, List<Double>> getBrowserActionPerformanceData()
    • getPageLoadPerformanceData

      public static Map<String, List<Double>> getPageLoadPerformanceData()
    • reset

      public static void reset()
    • recordBrowserAction

      public static void recordBrowserAction(String actionName, long durationNanos)
    • recordPageLoad

      public static void recordPageLoad(String pageName, long durationNanos)
    • shouldRecord

      public static boolean shouldRecord()
    • generatePerformanceReport

      public static void generatePerformanceReport(long startTime, long endTime)
    • generatePerformanceReportAndGetFailure

      public static AssertionError generatePerformanceReportAndGetFailure(long startTime, long endTime)