I am also facing same issue , Did you get find solution for this
enter code here
@BeforeAll
public static void setup() {
// Create a new report folder with a timestamp
reportFolderPath = ReportManager.createReportFolder();
System.setProperty("C:\Users\Vinod Kumar\Documents\reportfile", reportFolderPath); // Optional: Make it available system-wide
LoggerHelper.info("********** Starting Test Execution **********");
BaseClass.getDriver(); // Initialize WebDriver
BaseClass.openUrl(); // Navigate to URL
}
@AfterStep
public void handleFailure(Scenario scenario) {
if (scenario.isFailed()) {
LoggerHelper.error("Step failed: " + scenario.getName());
takeScreenshot(scenario);
}
}
@AfterAll public static void tearDown() throws EmailException, InterruptedException, IOException {
LoggerHelper.info("********** Ending Test Execution **********");
BaseClass.closeBrowser(); // Close Browser
// Send the report via email
Thread.sleep(5000);
EmailUtility.sendReport();
}