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.temyerscucumber-jvm-parallel-plugin${cucumber.jvm.parallel.version}generateRunnersgenerate-test-sourcesgenerateRunnerscom.sample.automation.step_definitionscom.api.automation.Hooks${project.build.directory}/generated-test-sources/cucumbersrc/test/resources/feature/target/cucumber-parallelcom.vimalselvam.cucumber.listener.ExtentCucumberFormatter${extentReportDir}htmltruetrue${tags}falsesimpleParallel{c}ITFEATURE
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.vimalselvamcucumber-extentsreport3.1.1com.aventstackextentreports4.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.
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.