maayehkhaled / klov-1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

klov.

Report server for the ExtentReports API. * Klov replaces ExtentX.

Join the chat at https://gitter.im/anshooarora/klov Codacy Badge

Demo 0.1.0: klov.herokuapp.com

Download

Download latest copy from extentreports.com

Klov Installation

  1. Install MongoDB 3.2 (other versions may not work correctly) (skip if you have this already)
  2. Install Redis-Server (skip if you do not plan to use Redis, see section "Using Klov Without Redis")
  3. Run Klov:
java -jar klov-0.1.0.jar

MongoDB Settings

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

Redis settings

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

Using Klov without Redis

To use Klov without Redis, simply uncomment this line in application.properties:

spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.session.SessionAutoConfiguration

Default admin

user:  root
password:  password

Setting up KlovReporter with ExtentReports API

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");

// finally, attach the reporter:
extent.attachReporter(klov);

About

License:GNU General Public License v3.0


Languages

Language:CSS 41.1%Language:JavaScript 28.1%Language:FreeMarker 15.8%Language:Java 15.0%