public class ExtentXReporter extends AbstractReporter implements ReportAppendable
Constructor and Description |
---|
ExtentXReporter(java.util.List<com.mongodb.ServerAddress> seeds) |
ExtentXReporter(java.util.List<com.mongodb.ServerAddress> seeds,
java.util.List<com.mongodb.MongoCredential> credentialsList) |
ExtentXReporter(java.util.List<com.mongodb.ServerAddress> seeds,
java.util.List<com.mongodb.MongoCredential> credentialsList,
com.mongodb.MongoClientOptions options) |
ExtentXReporter(java.util.List<com.mongodb.ServerAddress> seeds,
com.mongodb.MongoClientOptions options) |
ExtentXReporter(com.mongodb.MongoClientURI uri) |
ExtentXReporter(com.mongodb.ServerAddress addr) |
ExtentXReporter(com.mongodb.ServerAddress addr,
java.util.List<com.mongodb.MongoCredential> credentialsList) |
ExtentXReporter(com.mongodb.ServerAddress addr,
java.util.List<com.mongodb.MongoCredential> credentialsList,
com.mongodb.MongoClientOptions options) |
ExtentXReporter(com.mongodb.ServerAddress addr,
com.mongodb.MongoClientOptions options) |
ExtentXReporter(java.lang.String host) |
ExtentXReporter(java.lang.String host,
int port) |
ExtentXReporter(java.lang.String host,
com.mongodb.MongoClientOptions options) |
Modifier and Type | Method and Description |
---|---|
ExtentXReporterConfiguration |
config() |
void |
flush() |
org.bson.types.ObjectId |
getProjectId() |
org.bson.types.ObjectId |
getReportId() |
java.util.List<Test> |
getTestList() |
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 |
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
|
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 ExtentXReporter(java.lang.String host)
public ExtentXReporter(java.lang.String host, com.mongodb.MongoClientOptions options)
public ExtentXReporter(java.lang.String host, int port)
public ExtentXReporter(com.mongodb.MongoClientURI uri)
public ExtentXReporter(com.mongodb.ServerAddress addr)
public ExtentXReporter(java.util.List<com.mongodb.ServerAddress> seeds)
public ExtentXReporter(java.util.List<com.mongodb.ServerAddress> seeds, java.util.List<com.mongodb.MongoCredential> credentialsList)
public ExtentXReporter(java.util.List<com.mongodb.ServerAddress> seeds, java.util.List<com.mongodb.MongoCredential> credentialsList, com.mongodb.MongoClientOptions options)
public ExtentXReporter(java.util.List<com.mongodb.ServerAddress> seeds, com.mongodb.MongoClientOptions options)
public ExtentXReporter(com.mongodb.ServerAddress addr, java.util.List<com.mongodb.MongoCredential> credentialsList)
public ExtentXReporter(com.mongodb.ServerAddress addr, java.util.List<com.mongodb.MongoCredential> credentialsList, com.mongodb.MongoClientOptions options)
public ExtentXReporter(com.mongodb.ServerAddress addr, com.mongodb.MongoClientOptions options)
public ExtentXReporterConfiguration config()
public void start()
ExtentReporter
start
in interface ExtentReporter
public void stop()
ExtentReporter
stop
in interface ExtentReporter
public void flush()
flush
in interface ExtentReporter
public void onTestStarted(Test test)
TestListener
createTest(args)
onTestStarted
in interface TestListener
test
- Test
objectpublic void onNodeStarted(Test node)
TestListener
createNode(args)
onNodeStarted
in interface TestListener
node
- Test
objectpublic void onLogAdded(Test test, Log log)
TestListener
onLogAdded
in interface TestListener
test
- Test
objectlog
- Log
objectpublic void onCategoryAssigned(Test test, Category category)
TestListener
onCategoryAssigned
in interface TestListener
test
- Test
objectcategory
- Category
objectpublic void onAuthorAssigned(Test test, Author author)
TestListener
onAuthorAssigned
in interface TestListener
test
- Test
objectauthor
- Author
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 onScreenCaptureAdded(Log log, ScreenCapture screenCapture) throws java.io.IOException
TestListener
onScreenCaptureAdded
in interface 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
onScreencastAdded
in interface TestListener
test
- Test
objectscreencast
- Screencast
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 void setAppendExisting(java.lang.Boolean b)
setAppendExisting
in interface ReportAppendable
public org.bson.types.ObjectId getProjectId()
public org.bson.types.ObjectId getReportId()