Package utils
Class ExtentReporter
java.lang.Object
utils.ExtentReporter
Extent Report class for the Report generation
- Author:
- Nayeem John
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
extentLog
(com.aventstack.extentreports.ExtentTest extentTest, com.aventstack.extentreports.Status status, String message) Method to add the log the step to extent reportstatic 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 reportstatic com.aventstack.extentreports.ExtentReports
getExtentReporter
(TestProperties testProperties) Method to configure and get the ExtentReporter instance
-
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
- - ThrowsIOException
-
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
-