public class ExtentHtmlReporter extends BasicFileReporter implements ReportAppendable
config()
method.authorContext, categoryContext, configContext, configMap, endTime, exceptionContext, filePath, levels, sc, startTime, systemAttributeContext, templateMap, testList, testRunnerLogs
Constructor and Description |
---|
ExtentHtmlReporter(java.io.File file) |
ExtentHtmlReporter(java.lang.String filePath) |
Modifier and Type | Method and Description |
---|---|
ExtentHtmlReporterConfiguration |
config() |
boolean |
containsStatus(Status status) |
void |
flush() |
ConfigMap |
getConfigContext() |
java.lang.String |
getLongRunDuration() |
java.util.List<Test> |
getTestList() |
void |
onScreenCaptureAdded(Test test,
ScreenCapture screenCapture)
Invoked each time a screencapture is added to test
|
void |
setAppendExisting(java.lang.Boolean b) |
void |
setTestList(java.util.List<Test> reportTestList)
Allows sharing the complete list of tests with the reporter
|
void |
start()
Starts passing run information to the reporter
|
getStatusCollection, onAuthorAssigned, onCategoryAssigned, onLogAdded, onNodeStarted, onScreenCaptureAdded, onScreencastAdded, onTestStarted, refreshStatusCollection, stop
getAnalysisStrategy, getAuthorContextInfo, getCategoryContextInfo, getEndTime, getExceptionContextInfo, getRunDuration, getStartTime, getStatusCount, getSystemAttributeContext, getTestRunnerLogs, loadConfig, loadConfig, loadConfig, loadXMLConfig, loadXMLConfig, setAnalysisStrategy, setAuthorContextInfo, setCategoryContextInfo, setEndTime, setExceptionContextInfo, setStartTime, setStatusCount, setSystemAttributeContext, setTestRunnerLogs
public ExtentHtmlReporter(java.lang.String filePath)
public ExtentHtmlReporter(java.io.File file)
public ExtentHtmlReporterConfiguration config()
public void start()
ExtentReporter
start
in interface ExtentReporter
public void flush()
flush
in interface ExtentReporter
public void onScreenCaptureAdded(Test test, ScreenCapture screenCapture) throws java.io.IOException
TestListener
onScreenCaptureAdded
in interface TestListener
test
- Test
objectscreenCapture
- ScreenCapture
objectjava.io.IOException
- Exception thrown if the media object is not foundpublic void setTestList(java.util.List<Test> reportTestList)
ReportAggregatesListener
setTestList
in interface ReportAggregatesListener
reportTestList
- list of all tests created by ExtentReports
public java.util.List<Test> getTestList()
public boolean containsStatus(Status status)
public ConfigMap getConfigContext()
public void setAppendExisting(java.lang.Boolean b)
setAppendExisting
in interface ReportAppendable
public java.lang.String getLongRunDuration()
getLongRunDuration
in class BasicFileReporter
Copyright © 2018. All Rights Reserved.