public class ExtentReports extends Object
| Constructor and Description |
|---|
ExtentReports(String filePath,
Boolean replaceExisting)
Initializes the reporting by setting the file-path
|
ExtentReports(String filePath,
Boolean replaceExisting,
DisplayOrder displayOrder)
Initializes the reporting by setting the file-path and test DisplayOrder
|
| Modifier and Type | Method and Description |
|---|---|
ExtentReports |
addSystemInfo(Map<String,String> info)
Add system information to the SystemInfo view
|
ExtentReports |
addSystemInfo(String param,
String value)
Add system information to the SystemInfo view
|
void |
close()
Closes the underlying stream and clears all resources
If any of your test ended abruptly causing any side-affects (not all logs sent to ExtentReports, information missing), this method will ensure that the test is still appended to the report with a warning message. |
com.relevantcodes.extentreports.ReportInstance.ReportConfig |
config()
Allows various configurations to be applied to the report file
|
void |
endTest(ExtentTest test)
Ends the current toggle level
|
void |
flush()
Writes all info to the report file
|
ExtentTest |
startTest(String testName)
Calling startTest() generates a toggle for the test in the HTML file and adds all
log events under this level.
|
ExtentTest |
startTest(String testName,
String description)
Calling startTest() generates a toggle for the test in the HTML file and adds all
log events under this level.
|
public ExtentReports(String filePath, Boolean replaceExisting, DisplayOrder displayOrder)
filePath - Path of the file, in .htm or .html formatreplaceExisting - Setting to overwrite (TRUE) the existing file or append (FALSE) to it
displayOrder - Determines the order in which your tests will be displayed
public ExtentReports(String filePath, Boolean replaceExisting)
filePath - Path of the file, in .htm or .html formatreplaceExisting - Setting to overwrite (TRUE) the existing file or append (FALSE) to it
public ExtentTest startTest(String testName)
testName - Name of the testExtentTestpublic ExtentTest startTest(String testName, String description)
testName - Name of the testdescription - A short description of the testExtentTestpublic void endTest(ExtentTest test)
test - ExtentTestpublic com.relevantcodes.extentreports.ReportInstance.ReportConfig config()
ReportInstance.ReportConfigpublic ExtentReports addSystemInfo(Map<String,String> info)
info - SystemInfo values as Key-Value pairsExtentReportspublic ExtentReports addSystemInfo(String param, String value)
param - Name of system parametervalue - ValueExtentReportspublic void flush()
public void close()
Copyright © 2015. All rights reserved.