Introduction

KlovReporter works with the Extent Framework to push data into a MongoDB instance and the Klov server (media). This reporter does not print to a destination unlike the FileReporters.


Usage


Initialize

Start and attach KlovReporter using attachReporter:

// intialize with a project name, build name
ExtentKlovReporter klov = new ExtentKlovReporter("project", "build");
// address, host/port of MongoDB
klov.initMongoDbConnection("localhost", 27017);
// Klov server address
klov.initKlovServerConnection("http://localhost");

The project name you provide will appear as a dropdown in the Klov server and the build will be available from /build/list uri.

KlovReporter can also be setup using a properties file:

project.name=Default
report.name=Build
mongodb.host=localhost
mongodb.port=27017
klov.host=http://localhost
klov.port=80
klov.loadInitializationParams("klov.properties");