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, setTestRunnerLogs
public void start()
ExtentReporter
public void stop()
ExtentReporter
public void flush()
public void onTestStarted(Test test)
TestListener
createTest(args)
test
- Test
objectpublic void onNodeStarted(Test node)
TestListener
createNode(args)
node
- Test
objectpublic void onLogAdded(Test test, Log log)
TestListener
public void onCategoryAssigned(Test test, Category category)
TestListener
public void onAuthorAssigned(Test test, Author author)
TestListener
public void onScreenCaptureAdded(Test test, ScreenCapture screenCapture) throws java.io.IOException
TestListener
test
- 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
TestListener
log
- 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
TestListener
test
- Test
objectscreencast
- Screencast
objectjava.io.IOException
- Exception thrown if the media object is not foundpublic void setTestList(java.util.List<Test> testList)
ReportAggregatesListener
testList
- list of all tests created by ExtentReports