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

4
  • Apparently the library is not in your PATH. Can you confirm it? Commented Jul 5, 2020 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
    Commented Jul 5, 2020 at 15:26
  • Was the ChartLocation class removed from on this major update? Commented Jul 5, 2020 at 16:08
  • HTML report is deprecated for java use spark
    – PDHide
    Commented Jul 5, 2020 at 19:44

1 Answer 1

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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