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

Issue java.lang.NoSuchMethodError: com.aventstack.extentreports.reporter.ExtentHtmlReporter.loadXMLConfig(Ljava/io/File;) #28

Open
Younus544 opened this issue Jun 15, 2020 · 0 comments

Comments

@Younus544
Copy link

I am trying to generate extent report in my Maven+Selenium+Java+Cucumber+Junit project. I have not included testrunner class in my project and the same is been configured in my pom.xml file as below.

com.github.temyers cucumber-jvm-parallel-plugin ${cucumber.jvm.parallel.version} generateRunners generate-test-sources generateRunners com.sample.automation.step_definitions com.api.automation.Hooks ${project.build.directory}/generated-test-sources/cucumber src/test/resources/feature/ target/cucumber-parallel com.vimalselvam.cucumber.listener.ExtentCucumberFormatter ${extentReportDir} html true true ${tags} false simple Parallel{c}IT FEATURE I am trying to include the below code in hooks @after method Reporter.loadXMLConfig(new File("src/test/resource/extent-config.xml")); But i am getting the Issue java.lang.NoSuchMethodError: com.aventstack.extentreports.reporter.ExtentHtmlReporter.loadXMLConfig(Ljava/io/File;)V at com.vimalselvam.cucumber.listener.Reporter.loadXMLConfig error even if the dependencies are added in pom.xml
<dependency>
<groupId>com.vimalselvam</groupId>
<artifactId>cucumber-extentsreport</artifactId>
<version>3.1.1</version>
</dependency>
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
<version>4.0.9</version>
</dependency>

I need help in

  1. How to configure the @BeforeClass and @afterclass methods of TestRunner class in pom.xml without adding TestRunner class in my project.
  2. Include additional step logs in extent report.
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

1 participant