79418017

Date: 2025-02-06 13:15:16
Score: 7 🚩
Natty:
Report link

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();
      

      
      }
Reasons:
  • RegEx Blacklisted phrase (3): Did you get find solution
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I am also facing same issue
  • User mentioned (1): @BeforeAll
  • Low reputation (1):
Posted by: vinod kumar