public abstract class AbstractReporter extends java.lang.Object implements ExtentReporter
| Constructor and Description |
|---|
AbstractReporter() |
| Modifier and Type | Method and Description |
|---|---|
TestAttributeTestContextProvider<Category> |
getCategoryContextInfo() |
java.util.Date |
getEndTime() |
ExceptionTestContextImpl |
getExceptionContextInfo() |
long |
getRunDuration() |
java.util.Date |
getStartTime() |
SessionStatusStats |
getStatusCount() |
SystemAttributeContext |
getSystemAttributeContext() |
TestDisplayOrder |
getTestDisplayOrder()
Gets the display order used by the reporter
|
java.util.List<java.lang.String> |
getTestRunnerLogs() |
void |
loadConfig(java.io.InputStream stream) |
void |
loadConfig(java.util.Properties properties) |
void |
loadConfig(java.lang.String filePath) |
void |
loadXMLConfig(java.io.File file) |
void |
loadXMLConfig(java.lang.String filePath) |
void |
setCategoryContextInfo(TestAttributeTestContextProvider<Category> categoryContext)
Allows sharing the complete list of category and associated tests with the reporter
|
void |
setEndTime(java.util.Date endTime) |
void |
setExceptionContextInfo(ExceptionTestContextImpl exceptionContext)
Allows sharing the complete list of exceptions and associated tests with the reporter
|
void |
setStartTime(java.util.Date startTime) |
void |
setStatusCount(SessionStatusStats sc)
Passes the stats of the run session for all possible levels:
Features/Tests
Scenarios/Logs
Steps
|
void |
setSystemAttributeContext(SystemAttributeContext systemAttributeContext)
Passes all system information to the reporter
|
void |
setTestDisplayOrder(TestDisplayOrder order)
Allows setting the display order of tests (newest first, oldest first) for the
reporter
|
void |
setTestRunnerLogs(java.util.List<java.lang.String> testRunnerLogs)
Passes the complete list of logs to the reporter
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, start, stoponAuthorAssigned, onCategoryAssigned, onLogAdded, onNodeStarted, onScreenCaptureAdded, onScreenCaptureAdded, onScreencastAdded, onTestStartedsetTestListpublic void loadXMLConfig(java.lang.String filePath)
public void loadXMLConfig(java.io.File file)
public void loadConfig(java.util.Properties properties)
public void loadConfig(java.io.InputStream stream)
public void loadConfig(java.lang.String filePath)
public void setStatusCount(SessionStatusStats sc)
ReportAggregatesListenersetStatusCount in interface ReportAggregatesListenersc - SessionStatusStats represents stats of each hierarchical level of test/eventpublic SessionStatusStats getStatusCount()
public void setSystemAttributeContext(SystemAttributeContext systemAttributeContext)
ReportAggregatesListenersetSystemAttributeContext in interface ReportAggregatesListenersystemAttributeContext - system informationpublic SystemAttributeContext getSystemAttributeContext()
public void setCategoryContextInfo(TestAttributeTestContextProvider<Category> categoryContext)
ReportAggregatesListenersetCategoryContextInfo in interface ReportAggregatesListenercategoryContext - collection containing categories and all associated testspublic TestAttributeTestContextProvider<Category> getCategoryContextInfo()
public void setTestRunnerLogs(java.util.List<java.lang.String> testRunnerLogs)
ReportAggregatesListenersetTestRunnerLogs in interface ReportAggregatesListenertestRunnerLogs - testrunner logspublic java.util.List<java.lang.String> getTestRunnerLogs()
public void setExceptionContextInfo(ExceptionTestContextImpl exceptionContext)
ReportAggregatesListenersetExceptionContextInfo in interface ReportAggregatesListenerexceptionContext - collection containing exception and all associated testspublic ExceptionTestContextImpl getExceptionContextInfo()
public void setEndTime(java.util.Date endTime)
public java.util.Date getEndTime()
public void setStartTime(java.util.Date startTime)
setStartTime in interface ExtentReporterpublic java.util.Date getStartTime()
public long getRunDuration()
public void setTestDisplayOrder(TestDisplayOrder order)
TestDisplayOrderSettingsetTestDisplayOrder in interface TestDisplayOrderSettingorder - TestDisplayOrderpublic TestDisplayOrder getTestDisplayOrder()
TestDisplayOrderSettinggetTestDisplayOrder in interface TestDisplayOrderSettingTestDisplayOrder