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, setTestRunnerLogspublic 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()
ExtentReporterstart in interface ExtentReporterpublic void stop()
ExtentReporterstop in interface ExtentReporterpublic void flush()
flush in interface ExtentReporterpublic void onTestStarted(Test test)
TestListenercreateTest(args)onTestStarted in interface TestListenertest - Test objectpublic void onNodeStarted(Test node)
TestListenercreateNode(args)onNodeStarted in interface TestListenernode - Test objectpublic void onLogAdded(Test test, Log log)
TestListeneronLogAdded in interface TestListenertest - Test objectlog - Log objectpublic void onCategoryAssigned(Test test, Category category)
TestListeneronCategoryAssigned in interface TestListenertest - Test objectcategory - Category objectpublic void onAuthorAssigned(Test test, Author author)
TestListeneronAuthorAssigned in interface TestListenertest - Test objectauthor - Authorpublic void onScreenCaptureAdded(Test test, ScreenCapture screenCapture) throws java.io.IOException
TestListeneronScreenCaptureAdded in interface 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
TestListeneronScreenCaptureAdded in interface 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
TestListeneronScreencastAdded in interface TestListenertest - Test objectscreencast - Screencast objectjava.io.IOException - Exception thrown if the media object is not foundpublic void setTestList(java.util.List<Test> reportTestList)
ReportAggregatesListenersetTestList in interface ReportAggregatesListenerreportTestList - list of all tests created by ExtentReportspublic java.util.List<Test> getTestList()
public void setAppendExisting(java.lang.Boolean b)
setAppendExisting in interface ReportAppendablepublic org.bson.types.ObjectId getProjectId()
public org.bson.types.ObjectId getReportId()