public abstract class BasicFileReporter extends ConfigurableReporter
| Modifier | Constructor and Description |
|---|---|
protected |
BasicFileReporter(java.io.File f) |
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)
|
java.lang.String |
getDestinationPath() |
java.io.File |
getFileFile() |
java.lang.String |
getFilePath() |
protected freemarker.template.Configuration |
getFreemarkerConfig() |
protected java.lang.String |
getSource() |
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
|
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
|
getConfigurationStore, init, loadConfig, loadConfig, loadConfig, loadInternalReporterConfiguration, loadUserConfig, loadXMLConfig, loadXMLConfig, loadXMLConfigautoCreateRelativePathMedia, getAnalysisStrategy, getAuthorContextInfo, getCategoryContextInfo, getDeviceContextInfo, getEndTime, getExceptionContextInfo, getLongRunDuration, getReportStatusStats, getRunDuration, getStartTime, getStatusCollection, getSystemAttributeContext, getTestList, getTestRunnerLogs, onAuthorAssigned, onCategoryAssigned, onDeviceAssigned, onLogAdded, onNodeStarted, onTestRemoved, onTestStarted, setAnalysisStrategy, setEndTime, setStartTime, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReporterNameprotected BasicFileReporter(java.io.File f)
protected BasicFileReporter(java.lang.String path)
protected void setFilePath(java.lang.String filePath)
public java.lang.String getFilePath()
public java.io.File getFileFile()
public java.lang.String getDestinationPath()
public void start()
ExtentReporterpublic void flush(ReportAggregates reportAggregates)
ExtentReporterflush in interface ExtentReporterflush in class AbstractReporterreportAggregates - a ReportAggregates objectpublic void onScreenCaptureAdded(Test test, ScreenCapture screenCapture) throws java.io.IOException
TestListeneronScreenCaptureAdded in interface TestListeneronScreenCaptureAdded in class AbstractReportertest - 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 TestListeneronScreenCaptureAdded in class AbstractReporterlog - Log objectscreenCapture - ScreenCapture
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 © 2020. All Rights Reserved.