public class ExtentEmailReporter extends BasicFileReporter implements SourceProvider
config()
method.destination, filePath, templateMap
endTime, levels, startTime
configContext
Constructor and Description |
---|
ExtentEmailReporter(File file) |
ExtentEmailReporter(String path) |
Modifier and Type | Method and Description |
---|---|
ExtentEmailFormatterConfiguration |
config() |
void |
flush(ReportAggregates reportAggregates)
Write to or update the target source (file, database)
|
String |
getReporterName()
Get the reporter name
|
String |
getSource() |
List<Test> |
getTestListFail() |
List<Test> |
getTestListPass() |
List<Test> |
getTestListSkip() |
void |
setTemplate(EmailTemplate emailTemplate)
Allows selecting from available email templates:
DEFAULT
NEWSLETTER
NEWSLETTER_COMPLETE
|
containsStatus, containsStatus, enforceOfflineMode, getAuthorContextInfo, getCategoryContextInfo, getDeviceContextInfo, getEndTime, getExceptionContextInfo, getFileFile, getFilePath, getFreemarkerConfig, getReportStatusStats, getStartTime, getStatusList, getSystemAttributeContext, getTestList, getTestRunnerLogs, init, loadUserConfig, onAuthorAssigned, onCategoryAssigned, onDeviceAssigned, onLogAdded, onNodeStarted, onScreenCaptureAdded, onScreenCaptureAdded, onScreencastAdded, onTestRemoved, onTestStarted, processTemplate, setFilePath, start, stop
getAnalysisStrategy, getLongRunDuration, getRunDuration, setAnalysisStrategy, setEndTime
getConfigContext, loadConfig, loadConfig, loadConfig, loadXMLConfig, loadXMLConfig, loadXMLConfig
public ExtentEmailReporter(String path)
public ExtentEmailReporter(File file)
public ExtentEmailFormatterConfiguration config()
public void flush(ReportAggregates reportAggregates)
ExtentReporter
flush
in interface ExtentReporter
flush
in class BasicFileReporter
reportAggregates
- a ReportAggregates
objectpublic void setTemplate(EmailTemplate emailTemplate)
emailTemplate
- A value from EmailTemplate
public String getReporterName()
ExtentReporter
getReporterName
in interface ExtentReporter
public String getSource()
getSource
in interface SourceProvider
getSource
in class BasicFileReporter
Copyright © 2018. All rights reserved.