extent-framework / extentreports-java

Extent Reporting Library, Java
http://extentreports.com
Apache License 2.0
226 stars 130 forks source link

ExtentService 5 does not generate any report #363

Open nicholaswkc opened 2 years ago

nicholaswkc commented 2 years ago

Dear Programmer, I using extentService 5 to generate report but it did not generate any report although i provided extent.properties and html-config.xml.

Below is my code: @Listeners({ExtentIReporterSuiteClassListenerAdapter.class}) public class ChromeTestManager extends TestManager {

@Test public void testLogin() {} }

I"m using intellij in folder src/main/resources, I put the extent.properties as follow:

extent.properties

extent.reporter.html.start=true extent.reporter.html.config=html-config.xml extent.reporter.html.out=test-output/HtmlReport/TestReport.html

Why it does not generate any report? Does it need to write any code to it?

nicholaswkc commented 2 years ago

ANyone can help me with this issue??

nicholaswkc commented 2 years ago

I had stuck for few days, Whoever please help me.

nicholaswkc commented 2 years ago

I need your help. Please help me.

grasshopper7 commented 2 years ago

Hi, I am willing to have a look if you can create a public repository with a minimum example. Have not worked with the listener adapter you are using but have worked with extent report.

anshooarora commented 2 years ago

I"m using intellij in folder src/main/resources, I put the extent.properties as follow:

See here: https://github.com/extent-framework/extentreports-testng-adapter

The properties file must be in src/test/resources.

nicholaswkc commented 2 years ago

I had move the extent.properties to src/test/resources but still there is no report generated.

anshooarora commented 2 years ago

Can you share a minimal example? @grasshopper7 https://github.com/extent-framework/extentreports-java/issues/363#issuecomment-1283786642

nicholaswkc commented 2 years ago

Automation_Framework_v4.zip

grasshopper7 commented 2 years ago

The extent version 5 has removed the html report. You need to use the spark report. Replace html by spark in the extent.properties and check if it works.

nicholaswkc commented 2 years ago

I had change the html to spark but did not works either. Why wrong with it?

nicholaswkc commented 2 years ago

Why no one willing to help me?

anshooarora commented 2 years ago

Ran your project after moving all artifacts under src/main to src/test and do see the following report generated under ../report/:

Screen Shot 2022-11-02 at 12 01 21 PM