Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nicholaswkc34 opened this issue Nov 9, 2022 · 3 comments
Open

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

nicholaswkc34 opened this issue Nov 9, 2022 · 3 comments

Comments

@nicholaswkc34
Copy link

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
Copy link
Author

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

@robinmatz
Copy link

robinmatz commented Dec 13, 2022

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
Copy link

robinmatz commented Dec 13, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants