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, wait
flush, start, stop
onAuthorAssigned, onCategoryAssigned, onLogAdded, onNodeStarted, onScreenCaptureAdded, onScreenCaptureAdded, onScreencastAdded, onTestStarted
setTestList
public 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)
ReportAggregatesListener
setStatusCount
in interface ReportAggregatesListener
sc
- SessionStatusStats
represents stats of each hierarchical level of test/eventpublic SessionStatusStats getStatusCount()
public void setSystemAttributeContext(SystemAttributeContext systemAttributeContext)
ReportAggregatesListener
setSystemAttributeContext
in interface ReportAggregatesListener
systemAttributeContext
- system informationpublic SystemAttributeContext getSystemAttributeContext()
public void setCategoryContextInfo(TestAttributeTestContextProvider<Category> categoryContext)
ReportAggregatesListener
setCategoryContextInfo
in interface ReportAggregatesListener
categoryContext
- collection containing categories and all associated testspublic TestAttributeTestContextProvider<Category> getCategoryContextInfo()
public void setTestRunnerLogs(java.util.List<java.lang.String> testRunnerLogs)
ReportAggregatesListener
setTestRunnerLogs
in interface ReportAggregatesListener
testRunnerLogs
- testrunner logspublic java.util.List<java.lang.String> getTestRunnerLogs()
public void setExceptionContextInfo(ExceptionTestContextImpl exceptionContext)
ReportAggregatesListener
setExceptionContextInfo
in interface ReportAggregatesListener
exceptionContext
- 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 ExtentReporter
public java.util.Date getStartTime()
public long getRunDuration()
public void setTestDisplayOrder(TestDisplayOrder order)
TestDisplayOrderSetting
setTestDisplayOrder
in interface TestDisplayOrderSetting
order
- TestDisplayOrder
public TestDisplayOrder getTestDisplayOrder()
TestDisplayOrderSetting
getTestDisplayOrder
in interface TestDisplayOrderSetting
TestDisplayOrder