Skip to content

KlovReporter: provide ability to specify a database name #269

@anshooarora

Description

@anshooarora

KlovReporter to have ability to specify a database using a setter as well as klov.properties as used by TestNG and Cucumber adapters:

mongodb.host=localhost
mongodb.port=27017
mongodb.uri=
database.name=DatabaseName
klov.host=http://localhost
klov.port=80
klov.project.name=KlovReporter
klov.report.name=

As in the properties file above, the database.name is the target setting. To load:

File f = new File("config/klov.properties");
ExtentKlovReporter klov = new ExtentKlovReporter();
klov.loadInitializationParams(new FileInputStream(f));

or via method signature:

klov.setDatabaseName("DatabaseName");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions