public class ExtentKlovReporter
extends com.aventstack.extentreports.reporter.AbstractReporter
implements com.aventstack.extentreports.observer.EntityObserver<com.aventstack.extentreports.observer.entity.ObservedEntity>
| Modifier and Type | Field and Description |
|---|---|
static String |
ID_KEY |
static String |
LOG_ID_KEY |
static String |
REPORT_ID_KEY |
static String |
TEST_ID_KEY |
| Constructor and Description |
|---|
ExtentKlovReporter()
Initializes the KlovReporter
|
ExtentKlovReporter(String projectName) |
ExtentKlovReporter(String projectName,
String reportName)
Initializes the KlovReporter with project and report names
|
| Modifier and Type | Method and Description |
|---|---|
<T extends com.aventstack.extentreports.model.NamedAttribute> |
assignAttribute(com.aventstack.extentreports.model.Test test,
com.aventstack.extentreports.model.NamedAttribute attribute,
Map<String,org.bson.types.ObjectId> attrObjectIdCollection,
com.mongodb.client.MongoCollection<org.bson.Document> mongoCollection,
com.aventstack.extentreports.model.context.NamedAttributeContextManager<T> attributeContext) |
void |
flush(com.aventstack.extentreports.observer.entity.ReportEntity entity) |
io.reactivex.rxjava3.core.Observer<com.aventstack.extentreports.observer.entity.AttributeEntity> |
getAttributesObserver() |
Set<org.bson.types.ObjectId> |
getCollectionValues(Map<String,org.bson.types.ObjectId> collection) |
io.reactivex.rxjava3.core.Observer<com.aventstack.extentreports.observer.entity.LogEntity> |
getLogObserver() |
io.reactivex.rxjava3.core.Observer<com.aventstack.extentreports.observer.entity.MediaEntity> |
getMediaObserver() |
io.reactivex.rxjava3.core.Observer<com.aventstack.extentreports.observer.entity.ReportEntity> |
getReportObserver() |
io.reactivex.rxjava3.core.Observer<com.aventstack.extentreports.observer.entity.TestEntity> |
getTestObserver() |
ExtentKlovReporter |
initKlovServerConnection(String url)
Initializes the Mongo DB connection with a connection url
|
ExtentKlovReporter |
initMongoDbConnection(List<com.mongodb.ServerAddress> seeds)
Initializes the Mongo DB connection with a list of
ServerAddress
addresses |
ExtentKlovReporter |
initMongoDbConnection(List<com.mongodb.ServerAddress> seeds,
List<com.mongodb.MongoCredential> credentialsList)
Initializes the Mongo DB connection with a list of
ServerAddress
and MongoCredential |
ExtentKlovReporter |
initMongoDbConnection(List<com.mongodb.ServerAddress> seeds,
List<com.mongodb.MongoCredential> credentialsList,
com.mongodb.MongoClientOptions options)
Initializes the Mongo DB connection with a list of
ServerAddress,
MongoCredential and MongoClientOptions |
ExtentKlovReporter |
initMongoDbConnection(List<com.mongodb.ServerAddress> seeds,
com.mongodb.MongoClientOptions options)
Initializes the Mongo DB connection with a list of
ServerAddress
and MongoClientOptions |
ExtentKlovReporter |
initMongoDbConnection(com.mongodb.MongoClientURI uri)
Initialize Mongo DB connection with a
MongoClientURI |
ExtentKlovReporter |
initMongoDbConnection(com.mongodb.ServerAddress addr)
Initializes the Mongo DB connection with
ServerAddress |
ExtentKlovReporter |
initMongoDbConnection(com.mongodb.ServerAddress addr,
List<com.mongodb.MongoCredential> credentialsList)
Initializes the Mongo DB connection with
ServerAddress and a list
of MongoCredential credentials |
ExtentKlovReporter |
initMongoDbConnection(com.mongodb.ServerAddress addr,
List<com.mongodb.MongoCredential> credentialsList,
com.mongodb.MongoClientOptions options)
Initializes the Mongo DB connection with a list of
ServerAddress,
MongoCredential and MongoClientOptions |
ExtentKlovReporter |
initMongoDbConnection(com.mongodb.ServerAddress addr,
com.mongodb.MongoClientOptions options)
Initializes the Mongo DB connection with a
ServerAddress and
MongoClientOptions |
ExtentKlovReporter |
initMongoDbConnection(String host)
Initialize Mongo DB connection with host and default port: 27017
|
ExtentKlovReporter |
initMongoDbConnection(String host,
int port)
Initialize Mongo DB connection with host and post
|
ExtentKlovReporter |
initMongoDbConnection(String host,
com.mongodb.MongoClientOptions options)
Initialize Mongo DB connection with host and
MongoClientOptions |
ExtentKlovReporter |
initWithDefaultSettings()
Initializes KlovReporter with default Klov and MongoDB settings.
|
void |
loadInitializationParams(InputStream is) |
void |
onLogAdded(com.aventstack.extentreports.model.Test test,
com.aventstack.extentreports.model.Log log) |
void |
onScreenCaptureAdded(com.aventstack.extentreports.model.Log log,
com.aventstack.extentreports.model.ScreenCapture screenCapture) |
void |
onScreenCaptureAdded(com.aventstack.extentreports.model.Test test,
com.aventstack.extentreports.model.ScreenCapture screenCapture) |
void |
setProjectName(String projectName)
Sets the project name
|
void |
setReportName(String reportName)
Sets the report name
|
public static final String ID_KEY
public static final String REPORT_ID_KEY
public static final String LOG_ID_KEY
public static final String TEST_ID_KEY
public ExtentKlovReporter()
public ExtentKlovReporter(String projectName, String reportName)
projectName - Name of the projectreportName - Name of the reportpublic ExtentKlovReporter(String projectName)
public void setProjectName(String projectName)
projectName - Name of the projectpublic void setReportName(String reportName)
reportName - Name of the reportpublic ExtentKlovReporter initMongoDbConnection(String host)
host - host nameExtentKlovReporter objectpublic ExtentKlovReporter initMongoDbConnection(String host, com.mongodb.MongoClientOptions options)
MongoClientOptionshost - host nameoptions - MongoClientOptions optionsExtentKlovReporter objectpublic ExtentKlovReporter initMongoDbConnection(String host, int port)
host - host nameport - port numberExtentKlovReporter objectpublic ExtentKlovReporter initMongoDbConnection(com.mongodb.MongoClientURI uri)
MongoClientURIuri - MongoClientURI uriExtentKlovReporter objectpublic ExtentKlovReporter initMongoDbConnection(com.mongodb.ServerAddress addr)
ServerAddressaddr - ServerAddress server addressExtentKlovReporter objectpublic ExtentKlovReporter initMongoDbConnection(List<com.mongodb.ServerAddress> seeds)
ServerAddress
addressesseeds - A list of ServerAddress server addressesExtentKlovReporter objectpublic ExtentKlovReporter initMongoDbConnection(List<com.mongodb.ServerAddress> seeds, List<com.mongodb.MongoCredential> credentialsList)
ServerAddress
and MongoCredentialseeds - A list of ServerAddress server addressescredentialsList - A list of MongoCredential credentialsExtentKlovReporter objectpublic ExtentKlovReporter initMongoDbConnection(List<com.mongodb.ServerAddress> seeds, List<com.mongodb.MongoCredential> credentialsList, com.mongodb.MongoClientOptions options)
ServerAddress,
MongoCredential and MongoClientOptionsseeds - A list of ServerAddress server addressescredentialsList - A list of MongoCredential credentialsoptions - MongoClientOptions optionsExtentKlovReporter objectpublic ExtentKlovReporter initMongoDbConnection(List<com.mongodb.ServerAddress> seeds, com.mongodb.MongoClientOptions options)
ServerAddress
and MongoClientOptionsseeds - A list of ServerAddress server addressesoptions - MongoClientOptions optionsExtentKlovReporter objectpublic ExtentKlovReporter initMongoDbConnection(com.mongodb.ServerAddress addr, List<com.mongodb.MongoCredential> credentialsList)
ServerAddress and a list
of MongoCredential credentialsaddr - ServerAddress server addresscredentialsList - A list of MongoCredential credentialsExtentKlovReporter objectpublic ExtentKlovReporter initMongoDbConnection(com.mongodb.ServerAddress addr, List<com.mongodb.MongoCredential> credentialsList, com.mongodb.MongoClientOptions options)
ServerAddress,
MongoCredential and MongoClientOptionsaddr - A list of ServerAddress server addressescredentialsList - A list of MongoCredential credentialsoptions - MongoClientOptions optionsExtentKlovReporter objectpublic ExtentKlovReporter initMongoDbConnection(com.mongodb.ServerAddress addr, com.mongodb.MongoClientOptions options)
ServerAddress and
MongoClientOptionsaddr - A list of ServerAddress server addressesoptions - MongoClientOptions optionsExtentKlovReporter objectpublic ExtentKlovReporter initKlovServerConnection(String url)
url - Url stringExtentKlovReporter objectpublic ExtentKlovReporter initWithDefaultSettings()
ExtentKlovReporter objectpublic void loadInitializationParams(InputStream is)
public void flush(com.aventstack.extentreports.observer.entity.ReportEntity entity)
public Set<org.bson.types.ObjectId> getCollectionValues(Map<String,org.bson.types.ObjectId> collection)
public io.reactivex.rxjava3.core.Observer<com.aventstack.extentreports.observer.entity.AttributeEntity> getAttributesObserver()
getAttributesObserver in interface com.aventstack.extentreports.observer.AttributesObserver<com.aventstack.extentreports.observer.entity.ObservedEntity>public <T extends com.aventstack.extentreports.model.NamedAttribute> void assignAttribute(com.aventstack.extentreports.model.Test test,
com.aventstack.extentreports.model.NamedAttribute attribute,
Map<String,org.bson.types.ObjectId> attrObjectIdCollection,
com.mongodb.client.MongoCollection<org.bson.Document> mongoCollection,
com.aventstack.extentreports.model.context.NamedAttributeContextManager<T> attributeContext)
public io.reactivex.rxjava3.core.Observer<com.aventstack.extentreports.observer.entity.LogEntity> getLogObserver()
getLogObserver in interface com.aventstack.extentreports.observer.LogObserver<com.aventstack.extentreports.observer.entity.ObservedEntity>public void onLogAdded(com.aventstack.extentreports.model.Test test,
com.aventstack.extentreports.model.Log log)
public io.reactivex.rxjava3.core.Observer<com.aventstack.extentreports.observer.entity.MediaEntity> getMediaObserver()
getMediaObserver in interface com.aventstack.extentreports.observer.MediaObserver<com.aventstack.extentreports.observer.entity.ObservedEntity>public void onScreenCaptureAdded(com.aventstack.extentreports.model.Test test,
com.aventstack.extentreports.model.ScreenCapture screenCapture)
throws IOException
IOExceptionpublic void onScreenCaptureAdded(com.aventstack.extentreports.model.Log log,
com.aventstack.extentreports.model.ScreenCapture screenCapture)
throws IOException
IOExceptionpublic io.reactivex.rxjava3.core.Observer<com.aventstack.extentreports.observer.entity.ReportEntity> getReportObserver()
getReportObserver in interface com.aventstack.extentreports.observer.ReportObserver<com.aventstack.extentreports.observer.entity.ObservedEntity>public io.reactivex.rxjava3.core.Observer<com.aventstack.extentreports.observer.entity.TestEntity> getTestObserver()
getTestObserver in interface com.aventstack.extentreports.observer.TestObserver<com.aventstack.extentreports.observer.entity.ObservedEntity>Copyright © 2020. All rights reserved.