serenity-bdd / serenity-cucumber

Cucumber integration for the Serenity BDD Reporting library
Other
78 stars 74 forks source link

I am not able to generate cucumber extent reports #247

Open Madhav1357 opened 3 years ago

Madhav1357 commented 3 years ago

getting error : java.lang.NoSuchMethodError: cucumber.runtime.formatter.PluginFactory.isStepDefinitionReporterName(Ljava/lang/String;)Z my pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">

4.0.0
<groupId>com.first.automation</groupId>
<artifactId>initial</artifactId>
<version>0.0.1-SNAPSHOT</version>
<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.8.1</version>
            <configuration>
                <source>1.8</source>
                <target>1.8</target>
            </configuration>
        </plugin>

        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.18.1</version>
            <!--  <configuration>
                <testFailureIgnore>true</testFailureIgnore>
            </configuration>-->

            <configuration>
                <testFailureIgnore>false</testFailureIgnore>
                <suiteXmlFiles>
                    <suiteXmlFile>src/test/resources/runner/testng.xml</suiteXmlFile>

                </suiteXmlFiles>
            </configuration>
        </plugin>

        <!-- Latest Cucumber JVM Reports Plugin-->

        <plugin>
            <groupId>net.masterthought</groupId>
            <artifactId>maven-cucumber-reporting</artifactId>
            <version>5.0.0</version>

            <executions>
                <execution>
                    <id>execution</id>
                    <phase>verify</phase>
                    <goals>
                        <goal>generate</goal>
                    </goals>
                    <configuration>
                        <projectName>Way2Automation Cucumber Reports</projectName> <!-- Replace with project name -->
                        <outputDirectory>target/cucumber-reports/advanced-reports</outputDirectory>
                        <cucumberOutput>target/cucumber-reports/cucumber.json</cucumberOutput>
                        <buildNumber>1</buildNumber>
                        <parallelTesting>false</parallelTesting>
                        <skip>false</skip>
                        <inputDirectory>${project.build.directory}/cucumber-reports</inputDirectory>
                        <jsonFiles> <!-- supports wildcard or name pattern -->
                            <param>**/*.json</param>
                        </jsonFiles> <!-- optional, defaults to outputDirectory if not specified -->
                        <classificationDirectory>${project.build.directory}/cucumber-reports</classificationDirectory>
                        <checkBuildResult>false</checkBuildResult>
                    </configuration>
                </execution>
            </executions>

        </plugin>

    </plugins>
</build>

<dependencies>
org.seleniumhq.selenium selenium-java 3.141.59
    <!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-remote-driver 
org.seleniumhq.selenium selenium-remote-driver 3.14.0 --> org.seleniumhq.selenium selenium-chrome-driver 3.14.0 io.cucumber cucumber-java 4.8.1 io.cucumber cucumber-core 4.8.1 io.cucumber cucumber-picocontainer 4.8.1 test io.cucumber cucumber-junit 4.8.1 test org.seleniumhq.selenium selenium-server 3.8.1 io.github.bonigarcia webdrivermanager 3.8.1 io.cucumber cucumber-testng 4.8.1 test com.aventstack extentreports-cucumber4-adapter 1.0.12 io.cucumber cucumber-java io.cucumber cucumber-core org.testng testng 6.8 test org.hamcrest hamcrest-all 1.3 test org.assertj assertj-core 3.11.1 org.hamcrest hamcrest-core 1.3 org.apache.commons commons-lang3 3.8 com.google.guava guava 26.0-jre com.microsoft.sqlserver mssql-jdbc 8.4.0.jre11 org.seleniumhq.selenium selenium-java 3.141.59 org.apache.poi poi-ooxml 3.9 org.apache.poi poi 3.11-beta3 org.seleniumhq.selenium selenium-server 3.13.0 org.seleniumhq.selenium selenium-java 3.141.59 org.seleniumhq.selenium selenium-api 3.13.0 org.seleniumhq.selenium selenium-support 3.13.0 org.seleniumhq.selenium selenium-remote-driver 3.141.59 junit junit 4.13 test