extentreports-cucumber7-adapter icon indicating copy to clipboard operation
extentreports-cucumber7-adapter copied to clipboard

Support for Klov reporter

Open nitin-vavdiya opened this issue 2 years ago • 5 comments

Hey, I am using Klov as reporting server for my automation and currently, I am generating klov reports using a custom listener. Code to create klov reporter

ExtentKlovReporter klov = new ExtentKlovReporter("My project");
klov.initKlovServerConnection(ReportConfig.getKlovServerURL()).initMongoDbConnection(uri);
ExtentReports extentReport = new ExtentReports();
extentReport.attachReporter(klov);

How can I generate klov report ( ExtentKlovReporter) using your adapter?

nitin-vavdiya avatar Dec 08 '22 09:12 nitin-vavdiya

U just need to set extent.reporter.klov.start=true and path to config file with extent.reporter.klov.config.

I have not tested it as setting up klov is very frustrating and error prone. Best of luck.

grasshopper7 avatar Dec 08 '22 09:12 grasshopper7

Hey, Created 2 files under test/resources folder

extent.properties
-----------------
extent.reporter.klov.start=true
extent.reporter.klov.config=klov.properties


klov.properties
-----------------
klov.project.name=Test
klov.report.name=Test
report.name=QA
mongodb.uri=mongodb://username:password@ip:port
klov.host=http:/localhost
klov.port=80

using this setting, report is not getting published in klov server

nitin-vavdiya avatar Dec 08 '22 10:12 nitin-vavdiya

Are you getting an exception in the console?

grasshopper7 avatar Dec 08 '22 13:12 grasshopper7

No error in the console.

nitin-vavdiya avatar Dec 08 '22 13:12 nitin-vavdiya

I am sorry but as mentioned earlier I will not be able to help you out. Currently I do not have the time to install klov to debug this, it is too painful. I suggest you look into the ExtentService class, in the adapter code, which has the initKlov() method which contains all the connection logic. As you already have a setup this should be easy to figure out what is wrong.

grasshopper7 avatar Dec 08 '22 18:12 grasshopper7