1

I cannot figure out the problem. After the picture, another problem is here. htmlReporter.config() is not working and I'm not able to fix it.

This is my dependency:

<dependency>
 <groupId>com.aventstack</groupId>
 <artifactId>extentreports</artifactId>
 <version>4.1.5</version>
</dependency>

And this is HTML reporter config:

htmlReporter.config().setDocumentTitle("eBanking Test Project"); // Tile of report
htmlReporter.config().setReportName("Functional Test Automation Report"); // name of the report
htmlReporter.config().setTestViewChartLocation(ChartLocation.TOP); //location of the chart
htmlReporter.config().setTheme(Theme.DARK);]

And here is the code: Screenshot of the code and errors in IDE

  • Apparently the library is not in your PATH. Can you confirm it? – João Farias Jul 5 at 8:13
  • the same code is running without any problem in aventstack version 3.1.2(which is previous version) but I am using latest 4.1.5 version and that problem occurs. – Sm B Jul 5 at 15:26
  • Was the ChartLocation class removed from on this major update? – João Farias Jul 5 at 16:08
  • HTML report is deprecated for java use spark – PDHide Jul 5 at 19:44
2

Htmle report in extente report is deprecated from v4.1.3:

http://extentreports.com/docs/versions/4/java/v3-html-reporter.html

Use spark report instead,

http://extentreports.com/docs/versions/4/java/spark-reporter.html

The steps remain the same. Only the name changed and everything else works almost the same

| improve this answer | |
  • thanks a lot. I followed your instruction and it works – Sm B Jul 6 at 11:11
  • @SmB please accept the answer – PDHide Jul 6 at 11:15
  • @SmB you can accept the answer by clicking the tick sign near to my answer – PDHide Jul 6 at 15:36
  • I did it. I didn't know before, how to accept answer. thanks for helping – Sm B Jul 7 at 16:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.