Package utils
Class ExtentReporter
java.lang.Object
utils.ExtentReporter
Extent Report class for the Report generation
- Author:
- Nayeem John
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidextentLog(com.aventstack.extentreports.ExtentTest extentTest, com.aventstack.extentreports.Status status, String message) Method to add the log the step to extent reportstatic voidextentLogWithScreenshot(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.ExtentReportsgetExtentReporter(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
ExtentReportsinstance - 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- -ExtentTeststatus- -Statusmessage- -Stringlog 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
-