public class ConsoleLogger extends AbstractReporter
endTime, levels, startTime, statusList
configContext
Constructor and Description |
---|
ConsoleLogger() |
Modifier and Type | Method and Description |
---|---|
String |
getReporterName()
Get the reporter name
|
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 |
onDeviceAssigned(Test test,
Device device)
Invoked each time a device 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() |
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
|
void |
onScreencastAdded(Test test,
Screencast screencast)
Invoked each time a screencast is added
|
void |
onTestRemoved(Test test)
Invoked when a test is removed using
removeTest() |
void |
onTestStarted(Test test)
Invoked when a test is started using
createTest() |
void |
start()
Starts passing run information to the reporter
|
void |
stop()
Stops the reporter.
|
flush, getAnalysisStrategy, getEndTime, getLongRunDuration, getRunDuration, getStartTime, getStatusList, setAnalysisStrategy, setEndTime
getConfigContext, loadConfig, loadConfig, loadConfig, loadXMLConfig, loadXMLConfig, loadXMLConfig
public void start()
ExtentReporter
public void stop()
ExtentReporter
public void onTestStarted(Test test)
TestListener
createTest()
test
- Test
objectpublic void onTestRemoved(Test test)
TestListener
removeTest()
test
- Test
objectpublic void onNodeStarted(Test node)
TestListener
createNode()
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 onDeviceAssigned(Test test, Device device)
TestListener
public void onScreenCaptureAdded(Test test, ScreenCapture screenCapture) throws IOException
TestListener
test
- Test
objectscreenCapture
- ScreenCapture
objectIOException
- Exception thrown if the media object is not foundpublic void onScreenCaptureAdded(Log log, ScreenCapture screenCapture)
TestListener
log
- Log
objectscreenCapture
- ScreenCapture
objectpublic void onScreencastAdded(Test test, Screencast screencast)
TestListener
test
- Test
objectscreencast
- Screencast
objectpublic String getReporterName()
ExtentReporter
Copyright © 2018. All rights reserved.