Closed NerdishShah closed 5 years ago
Can you share the entire stack trace?
Can you share the entire stack trace?
java.util.NoSuchElementException: No value present
at java.base/java.util.Optional.get(Optional.java:148)
at com.aventstack.extentreports.reporter.ExtentKlovReporter.getConfigValue(ExtentKlovReporter.java:351)
at com.aventstack.extentreports.reporter.ExtentKlovReporter.loadInitializationParams(ExtentKlovReporter.java:314)
at com.aventstack.extentreports.reporter.ExtentKlovReporter.loadInitializationParams(ExtentKlovReporter.java:303)
at com.aventstack.extentreports.service.ExtentService$ExtentReportsLoader.initKlov(ExtentService.java:205)
at com.aventstack.extentreports.service.ExtentService$ExtentReportsLoader.createViaProperties(ExtentService.java:119)
at com.aventstack.extentreports.service.ExtentService$ExtentReportsLoader.
Can you add this to klov.properties and try again?
mongodb.uri=
Please do not delete any keys from this file.
Can you add this to klov.properties and try again?
mongodb.uri=
Please do not delete any keys from this file.
Its resolved now. Thanks for the quick response.
Enabling klov reporter throws java.util.NoSuchElementException: No value present
Below are the configs used:
/ extent.properties /
extent.reporter.avent.start=false extent.reporter.bdd.start=false extent.reporter.cards.start=false extent.reporter.email.start=false extent.reporter.html.start=true extent.reporter.klov.start=true extent.reporter.logger.start=true extent.reporter.tabular.start=false
extent.reporter.avent.config= extent.reporter.bdd.config= extent.reporter.cards.config= extent.reporter.email.config= extent.reporter.html.config= extent.reporter.klov.config=src/test/resources/klov.properties extent.reporter.logger.config=
extent.reporter.tabular.config=src/test/resources/tabular-config.xml extent.reporter.avent.out=test-output/AventReport/ extent.reporter.bdd.out=test-output/BddReport/ extent.reporter.cards.out=test-output/CardsReport/ extent.reporter.email.out=test-output/EmailReport/ExtentEmail.html extent.reporter.html.out=test-output/HtmlReport/ExtentHtml.html extent.reporter.logger.out=test-output/LoggerReport/ extent.reporter.tabular.out=test-output/TabularReport/
/ klov.properties /
project.name=adaptor 4 report.name=Build mongodb.host=localhost mongodb.port=27017 klov.host=http://localhost klov.port=80