sebaslogen / CleanGUITestArchitecture

Sample project of Android GUI test automation using Espresso, Cucumber and the Page Object Pattern
MIT License
137 stars 31 forks source link

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

Open Younus544 opened 4 years ago

Younus544 commented 4 years ago

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 com.vimalselvam cucumber-extentsreport 3.1.1 com.aventstack extentreports 4.0.9 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.