public abstract class BasicFileReporter extends AbstractReporter
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
destination |
protected java.lang.String |
filePath |
protected java.util.Map<java.lang.String,java.lang.Object> |
templateMap |
endTime, levels, startTimeconfigContext| Modifier | Constructor and Description |
|---|---|
protected |
BasicFileReporter(java.io.File path) |
protected |
BasicFileReporter(java.lang.String path) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsStatus(Status status) |
boolean |
containsStatus(java.lang.String status) |
protected java.lang.Boolean |
enforceOfflineMode() |
void |
flush(ReportAggregates reportAggregates)
Write to or update the target source (file, database)
|
TestAttributeTestContextProvider<Author> |
getAuthorContextInfo() |
TestAttributeTestContextProvider<Category> |
getCategoryContextInfo() |
TestAttributeTestContextProvider<Device> |
getDeviceContextInfo() |
java.util.Date |
getEndTime() |
ExceptionTestContextImpl |
getExceptionContextInfo() |
java.io.File |
getFileFile() |
java.lang.String |
getFilePath() |
protected freemarker.template.Configuration |
getFreemarkerConfig() |
ReportStatusStats |
getReportStatusStats() |
protected java.lang.String |
getSource() |
java.util.Date |
getStartTime() |
java.util.List<Status> |
getStatusList() |
SystemAttributeContext |
getSystemAttributeContext() |
java.util.List<Test> |
getTestList() |
java.util.List<java.lang.String> |
getTestRunnerLogs() |
protected void |
init(java.lang.String[] configFilePath,
BasicFileConfiguration userConfig) |
protected void |
loadUserConfig() |
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 |
onScreencastAdded(Test test,
Screencast screencast)
Invoked each time a screencast is added
|
void |
onTestRemoved(Test test)
Invoked when a test is removed using
removeTest() |
void |
onTestStarted(Test test)
Invoked when a test is started using
createTest() |
protected void |
processTemplate(freemarker.template.Template template,
java.io.File outputFile) |
protected void |
setFilePath(java.lang.String filePath) |
void |
start()
Starts passing run information to the reporter
|
void |
stop()
Stops the reporter.
|
getAnalysisStrategy, getLongRunDuration, getRunDuration, setAnalysisStrategy, setEndTimegetConfigContext, loadConfig, loadConfig, loadConfig, loadXMLConfig, loadXMLConfig, loadXMLConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReporterNameprotected java.lang.String filePath
protected java.lang.String destination
protected java.util.Map<java.lang.String,java.lang.Object> templateMap
protected BasicFileReporter(java.lang.String path)
protected BasicFileReporter(java.io.File path)
protected void setFilePath(java.lang.String filePath)
public java.lang.String getFilePath()
public java.io.File getFileFile()
protected void init(java.lang.String[] configFilePath,
BasicFileConfiguration userConfig)
protected void loadUserConfig()
public void start()
ExtentReporterpublic void flush(ReportAggregates reportAggregates)
ExtentReporterflush in interface ExtentReporterflush in class AbstractReporterreportAggregates - a ReportAggregates objectpublic java.util.List<Test> getTestList()
public java.util.List<java.lang.String> getTestRunnerLogs()
public TestAttributeTestContextProvider<Category> getCategoryContextInfo()
public TestAttributeTestContextProvider<Author> getAuthorContextInfo()
public TestAttributeTestContextProvider<Device> getDeviceContextInfo()
public ExceptionTestContextImpl getExceptionContextInfo()
public SystemAttributeContext getSystemAttributeContext()
public ReportStatusStats getReportStatusStats()
public java.util.List<Status> getStatusList()
getStatusList in class AbstractReporterpublic void onTestStarted(Test test)
TestListenercreateTest()test - Test objectpublic void onTestRemoved(Test test)
TestListenerremoveTest()test - Test objectpublic void onNodeStarted(Test node)
TestListenercreateNode()node - Test objectpublic void onLogAdded(Test test, Log log)
TestListenerpublic void onCategoryAssigned(Test test, Category category)
TestListenerpublic void onAuthorAssigned(Test test, Author author)
TestListenerpublic void onDeviceAssigned(Test test, Device device)
TestListenerpublic void onScreenCaptureAdded(Test test, ScreenCapture screenCapture) throws java.io.IOException
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
TestListenerlog - Log objectscreenCapture - ScreenCapture objectjava.io.IOException - Exception thrown if the media object is not foundpublic void stop()
ExtentReporterpublic java.util.Date getStartTime()
getStartTime in class AbstractReporterpublic java.util.Date getEndTime()
getEndTime in class AbstractReporterpublic void onScreencastAdded(Test test, Screencast screencast) throws java.io.IOException
TestListenertest - Test objectscreencast - Screencast objectjava.io.IOException - Exception thrown if the media object is not foundpublic boolean containsStatus(java.lang.String status)
public boolean containsStatus(Status status)
protected void processTemplate(freemarker.template.Template template,
java.io.File outputFile)
throws freemarker.template.TemplateException,
java.io.IOException
freemarker.template.TemplateExceptionjava.io.IOExceptionprotected java.lang.String getSource()
protected freemarker.template.Configuration getFreemarkerConfig()
protected java.lang.Boolean enforceOfflineMode()
Copyright © 2018. All Rights Reserved.