public class ExtentLogger extends AbstractReporter
| Constructor and Description |
|---|
ExtentLogger() |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
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 |
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(args) |
void |
onScreenCaptureAdded(Log log,
ScreenCapture screenCapture)
Invoked each time a screenshot 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 |
onTestStarted(Test test)
Invoked when a test is started using
createTest(args) |
void |
setTestList(java.util.List<Test> testList)
Allows sharing the complete list of tests with the reporter
|
void |
start()
Starts passing run information to the reporter
|
void |
stop()
Stops the reporter.
|
getCategoryContextInfo, getEndTime, getExceptionContextInfo, getRunDuration, getStartTime, getStatusCount, getSystemAttributeContext, getTestDisplayOrder, getTestRunnerLogs, loadConfig, loadConfig, loadConfig, loadXMLConfig, loadXMLConfig, setCategoryContextInfo, setEndTime, setExceptionContextInfo, setStartTime, setStatusCount, setSystemAttributeContext, setTestDisplayOrder, setTestRunnerLogspublic void start()
ExtentReporterpublic void stop()
ExtentReporterpublic void flush()
public void onTestStarted(Test test)
TestListenercreateTest(args)test - Test objectpublic void onNodeStarted(Test node)
TestListenercreateNode(args)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 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 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 void setTestList(java.util.List<Test> testList)
ReportAggregatesListenertestList - list of all tests created by ExtentReports