extent-framework / extentreports-testng-adapter

TestNG Adapter for Extent Framework
http://extentreports.com/docs/versions/4/java/testng.html
Apache License 2.0
50 stars 14 forks source link

extentreports-testng-adapter does not generate test report #25

Open nicholaswkc34 opened 2 years ago

nicholaswkc34 commented 2 years ago

Dear All, I had coded extent service 5 and extent.properties and html.config but it cannot generate the test report. I don't know why. Anyone please help me.

I attached my sample project. Automation_Framework_v4.zip

nicholaswkc34 commented 2 years ago

Anyone please help me on this as i struggle quite some time..

robinmatz commented 1 year ago

Hi,

The first thing that looks suspicious is this line in your sec/test/resources/extent.properties file

extent.reporter.spark.config=html-config.xml

You should change it to extent.reporter.spark.config=src/test/resources/html-config.xml to point to the correct file.

This line extent.reporter.spark.out=../report/TestReport1.html should be changed to extent.reporter.spark.out=report/TestReport1.html

Does this resolve the issue?

robinmatz commented 1 year ago

I also noticed that you have your own ExtentManager class and create tests from this. Note that extentreports-testng-adapter is there so you do not have to create your own ExtentManager.

I assume it would be safest to delete this class and all references to it in order to not interfere with the adapter.