Package utils

Class ExtentReporter

java.lang.Object
utils.ExtentReporter

public class ExtentReporter extends Object
Extent Report class for the Report generation
Author:
Nayeem John
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    extentLog(com.aventstack.extentreports.ExtentTest extentTest, com.aventstack.extentreports.Status status, String message)
    Method to add the log the step to extent report
    static void
    extentLogWithScreenshot(com.aventstack.extentreports.ExtentTest extentTest, com.aventstack.extentreports.Status status, String message, String base64Path)
    Method to add the log step with the screenshot to the extent report
    static com.aventstack.extentreports.ExtentReports
    Method to configure and get the ExtentReporter instance

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getExtentReporter

      public static com.aventstack.extentreports.ExtentReports getExtentReporter(TestProperties testProperties) throws IOException
      Method to configure and get the ExtentReporter instance
      Parameters:
      testProperties - - TestProperties
      Returns:
      ExtentReports - Returns ExtentReports instance
      Throws:
      IOException - - Throws IOException
    • extentLog

      public static void extentLog(com.aventstack.extentreports.ExtentTest extentTest, com.aventstack.extentreports.Status status, String message)
      Method to add the log the step to extent report
      Parameters:
      extentTest - - ExtentTest
      status - - Status
      message - - String log message
    • extentLogWithScreenshot

      public static void extentLogWithScreenshot(com.aventstack.extentreports.ExtentTest extentTest, com.aventstack.extentreports.Status status, String message, String base64Path)
      Method to add the log step with the screenshot to the extent report
      Parameters:
      extentTest - - ExtentTest
      status - - Status
      message - - String log message
      base64Path - - Base64 String of screenshot