Class LightHouseGenerateReport

java.lang.Object
com.shaft.performance.internal.LightHouseGenerateReport

public class LightHouseGenerateReport extends Object
Generates Google Lighthouse performance reports for web pages by invoking the Lighthouse CLI tool via Node.js.

Reports are saved to the project's performance report directory and can be attached to Allure reports for CI/CD integration.

  • Constructor Details

    • LightHouseGenerateReport

      public LightHouseGenerateReport(org.openqa.selenium.WebDriver driver)
  • Method Details

    • generateLightHouseReport

      public void generateLightHouseReport()
    • createLighthouseReportFolderInProjectDirectory

      public void createLighthouseReportFolderInProjectDirectory()
    • openLighthouseReportWhileExecution

      public void openLighthouseReportWhileExecution()
    • writeReportPathToFilesInProjectDirectory

      public void writeReportPathToFilesInProjectDirectory(String pageName)
    • writeNodeScriptFileInProjectDirectory

      public void writeNodeScriptFileInProjectDirectory()
    • getPageName

      public String getPageName()