public abstract class AbstractReporter extends java.lang.Object implements ExtentReporter
| Modifier and Type | Field and Description |
|---|---|
protected TestAttributeTestContextProvider<Author> |
authorContext |
protected TestAttributeTestContextProvider<Category> |
categoryContext |
protected ConfigMap |
configContext |
protected java.util.Map<java.lang.String,java.lang.Object> |
configMap |
protected java.util.Date |
endTime |
protected ExceptionTestContextImpl |
exceptionContext |
protected java.lang.String |
filePath |
protected java.util.List<Status> |
levels |
protected SessionStatusStats |
sc |
protected java.util.Date |
startTime |
protected SystemAttributeContext |
systemAttributeContext |
protected java.util.Map<java.lang.String,java.lang.Object> |
templateMap |
protected java.util.List<Test> |
testList |
protected java.util.List<java.lang.String> |
testRunnerLogs |
| Constructor and Description |
|---|
AbstractReporter() |
| Modifier and Type | Method and Description |
|---|---|
AnalysisStrategy |
getAnalysisStrategy() |
TestAttributeTestContextProvider<Author> |
getAuthorContextInfo() |
TestAttributeTestContextProvider<Category> |
getCategoryContextInfo() |
java.util.Date |
getEndTime() |
ExceptionTestContextImpl |
getExceptionContextInfo() |
long |
getRunDuration() |
java.util.Date |
getStartTime() |
SessionStatusStats |
getStatusCount() |
SystemAttributeContext |
getSystemAttributeContext() |
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 |
setAnalysisStrategy(AnalysisStrategy strategy) |
void |
setAuthorContextInfo(TestAttributeTestContextProvider<Author> authorContext)
Allows sharing the complete list of author and associated tests with the reporter
|
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 |
setTestRunnerLogs(java.util.List<java.lang.String> testRunnerLogs)
Passes the complete list of logs to the reporter
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, start, stoponAuthorAssigned, onCategoryAssigned, onLogAdded, onNodeStarted, onScreenCaptureAdded, onScreenCaptureAdded, onScreencastAdded, onTestStartedsetTestListprotected java.util.Date startTime
protected java.util.Date endTime
protected java.util.List<Status> levels
protected java.util.List<Test> testList
protected java.util.List<java.lang.String> testRunnerLogs
protected java.util.Map<java.lang.String,java.lang.Object> configMap
protected java.util.Map<java.lang.String,java.lang.Object> templateMap
protected java.lang.String filePath
protected ConfigMap configContext
protected ExceptionTestContextImpl exceptionContext
protected TestAttributeTestContextProvider<Category> categoryContext
protected TestAttributeTestContextProvider<Author> authorContext
protected SystemAttributeContext systemAttributeContext
protected SessionStatusStats sc
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)
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 setAuthorContextInfo(TestAttributeTestContextProvider<Author> authorContext)
ReportAggregatesListenersetAuthorContextInfo in interface ReportAggregatesListenerauthorContext - collection containing author and all associated testspublic TestAttributeTestContextProvider<Author> getAuthorContextInfo()
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)
setEndTime in interface ExtentReporterpublic java.util.Date getEndTime()
public void setStartTime(java.util.Date startTime)
setStartTime in interface ExtentReporterpublic java.util.Date getStartTime()
public long getRunDuration()
public void setAnalysisStrategy(AnalysisStrategy strategy)
setAnalysisStrategy in interface IAnalysisStrategypublic AnalysisStrategy getAnalysisStrategy()
getAnalysisStrategy in interface IAnalysisStrategyCopyright © 2018. All Rights Reserved.