Demo: klov.herokuapp.com
Reporting server for Extent API. * klov replaces ExtentX.
Download latest copy from extentreports.com
- Install MongoDB (skip if you have this already)
- Install Redis-Server (skip if you do not plan to use Redis, see section "Using Klov Without Redis")
- Run Klov:
java -jar klov-0.0.3.jar
You can configure your MongoDB environment settings from application.properties
:
# data.mongodb
spring.data.mongodb.host=localhost
spring.data.mongodb.port=27017
spring.data.mongodb.database=klov
You can configure your Redis server settings from application.properties
:
# redis, session
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.session.SessionAutoConfiguration
spring.session.store-type=redis
server.session.timeout=-1
spring.redis.host=localhost
spring.redis.port=6379
To use Klov without Redis, simply uncomment this line in application.properties
:
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.session.SessionAutoConfiguration
user: root
password: password
KlovReporter klov = new KlovReporter();
// specify mongoDb connection
klov.initMongoDbConnection("localhost", 27017);
// specify project
// ! you must specify a project, other a "Default project will be used"
klov.setProjectName("Java");
// you must specify a reportName otherwise a default timestamp will be used
klov.setReportName("AppBuild");
// URL of the KLOV server
// you must specify the server URL to ensure all your runtime media is uploaded
// to the server
klov.setKlovUrl("http://localhost");