public abstract class AbstractReporter extends java.lang.Object implements ExtentReporter
| Constructor and Description |
|---|
AbstractReporter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
autoCreateRelativePathMedia(ScreenCapture screenCapture,
java.lang.Boolean autoCreateRelativePath,
java.lang.String destination) |
void |
flush(ReportAggregates reportAggregates)
Write to or update the target source (file, database)
|
AnalysisStrategy |
getAnalysisStrategy() |
TestAttributeTestContextStore<Author> |
getAuthorContextInfo() |
TestAttributeTestContextStore<Category> |
getCategoryContextInfo() |
TestAttributeTestContextStore<Device> |
getDeviceContextInfo() |
java.util.Date |
getEndTime() |
ExceptionTestContextStore |
getExceptionContextInfo() |
java.lang.String |
getLongRunDuration() |
ReportStatusStats |
getReportStatusStats() |
long |
getRunDuration() |
java.util.Date |
getStartTime() |
java.util.Collection<Status> |
getStatusCollection() |
SystemAttributeContext |
getSystemAttributeContext() |
java.util.List<Test> |
getTestList() |
java.util.List<java.lang.String> |
getTestRunnerLogs() |
void |
onAuthorAssigned(Test test,
Author author)
Invoked each time an author is assigned to any test/node
|
void |
onCategoryAssigned(Test test,
Category category)
Invoked each time a category is assigned to any test/node
|
void |
onDeviceAssigned(Test test,
Device device)
Invoked each time a device is assigned to any test/node
|
void |
onLogAdded(Test test,
Log log)
Invoked each time a log is added to any test/node
|
void |
onNodeStarted(Test node)
Invoked when a node is started using
createNode() |
void |
onScreenCaptureAdded(Log log,
ScreenCapture screenCapture)
Invoked each time a screencapture is added to log
|
void |
onScreenCaptureAdded(Test test,
ScreenCapture screenCapture)
Invoked each time a screencapture is added to test
|
void |
onTestRemoved(Test test)
Invoked when a test is removed using
removeTest() |
void |
onTestStarted(Test test)
Invoked when a test is started using
createTest() |
void |
setAnalysisStrategy(AnalysisStrategy strategy) |
void |
setEndTime(java.util.Date endTime) |
void |
setStartTime(java.util.Date startTime) |
void |
stop()
Stops the reporter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReporterName, startpublic void flush(ReportAggregates reportAggregates)
ExtentReporterflush in interface ExtentReporterreportAggregates - a ReportAggregates objectpublic java.util.Date getStartTime()
public void setStartTime(java.util.Date startTime)
public void setEndTime(java.util.Date endTime)
public java.util.Date getEndTime()
public void setAnalysisStrategy(AnalysisStrategy strategy)
setAnalysisStrategy in interface IAnalysisStrategyMethodpublic AnalysisStrategy getAnalysisStrategy()
getAnalysisStrategy in interface IAnalysisStrategyMethodpublic long getRunDuration()
public java.lang.String getLongRunDuration()
public java.util.List<Test> getTestList()
public java.util.List<java.lang.String> getTestRunnerLogs()
public TestAttributeTestContextStore<Category> getCategoryContextInfo()
public TestAttributeTestContextStore<Author> getAuthorContextInfo()
public TestAttributeTestContextStore<Device> getDeviceContextInfo()
public ExceptionTestContextStore getExceptionContextInfo()
public SystemAttributeContext getSystemAttributeContext()
public ReportStatusStats getReportStatusStats()
public java.util.Collection<Status> getStatusCollection()
public void onTestStarted(Test test)
TestListenercreateTest()onTestStarted in interface TestListenertest - Test objectpublic void onTestRemoved(Test test)
TestListenerremoveTest()onTestRemoved in interface TestListenertest - Test objectpublic void onNodeStarted(Test node)
TestListenercreateNode()onNodeStarted in interface TestListenernode - Test objectpublic void onLogAdded(Test test, Log log)
TestListeneronLogAdded in interface TestListenertest - Test objectlog - Log objectpublic void onCategoryAssigned(Test test, Category category)
TestListeneronCategoryAssigned in interface TestListenertest - Test objectcategory - Category objectpublic void onAuthorAssigned(Test test, Author author)
TestListeneronAuthorAssigned in interface TestListenertest - Test objectauthor - Author objectpublic void onDeviceAssigned(Test test, Device device)
TestListeneronDeviceAssigned in interface TestListenertest - Test objectdevice - Device objectpublic void onScreenCaptureAdded(Test test, ScreenCapture screenCapture) throws java.io.IOException
TestListeneronScreenCaptureAdded in interface TestListenertest - Test objectscreenCapture - ScreenCapture
objectjava.io.IOException - Exception thrown if the media object is not foundpublic void onScreenCaptureAdded(Log log, ScreenCapture screenCapture) throws java.io.IOException
TestListeneronScreenCaptureAdded in interface TestListenerlog - Log objectscreenCapture - ScreenCapture
objectjava.io.IOException - Exception thrown if the media object is not foundprotected void autoCreateRelativePathMedia(ScreenCapture screenCapture, java.lang.Boolean autoCreateRelativePath, java.lang.String destination) throws java.io.IOException
java.io.IOExceptionpublic void stop()
ExtentReporterstop in interface ExtentReporterCopyright © 2020. All Rights Reserved.