extentreports-java icon indicating copy to clipboard operation
extentreports-java copied to clipboard

ExtentService 5 does not generate any report

Open nicholaswkc opened this issue 3 years ago • 12 comments

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 avatar Oct 01 '22 07:10 nicholaswkc

ANyone can help me with this issue??

nicholaswkc avatar Oct 17 '22 06:10 nicholaswkc

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

nicholaswkc avatar Oct 18 '22 01:10 nicholaswkc

I need your help. Please help me.

nicholaswkc avatar Oct 19 '22 08:10 nicholaswkc

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.

grasshopper7 avatar Oct 19 '22 10:10 grasshopper7

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.

anshooarora avatar Oct 19 '22 14:10 anshooarora

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

nicholaswkc avatar Oct 20 '22 11:10 nicholaswkc

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

anshooarora avatar Oct 20 '22 12:10 anshooarora

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.

grasshopper7 avatar Oct 20 '22 17:10 grasshopper7

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

nicholaswkc avatar Oct 21 '22 09:10 nicholaswkc

Why no one willing to help me?

nicholaswkc avatar Nov 01 '22 03:11 nicholaswkc

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

anshooarora avatar Nov 02 '22 17:11 anshooarora