extentreports-cucumber7-adapter
extentreports-cucumber7-adapter copied to clipboard
Support for Klov reporter
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?
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.
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
Are you getting an exception in the console?
No error in the console.
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.