Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

I am not able to generate cucumber extent reports #247

Open
Madhav1357 opened this issue Sep 3, 2020 · 0 comments
Open

I am not able to generate cucumber extent reports #247

Madhav1357 opened this issue Sep 3, 2020 · 0 comments

Comments

@Madhav1357
Copy link

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


4.0.0
com.first.automation
initial
0.0.1-SNAPSHOT



org.apache.maven.plugins
maven-compiler-plugin
3.8.1

1.8
1.8

		<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 org.seleniumhq.selenium selenium-chrome-driver 3.14.0
	<dependency>
		<groupId>io.cucumber</groupId>
		<artifactId>cucumber-java</artifactId>
		<version>4.8.1</version>
	</dependency>

	<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-core -->
	<dependency>
		<groupId>io.cucumber</groupId>
		<artifactId>cucumber-core</artifactId>
		<version>4.8.1</version>
	</dependency>




		<dependency>
		<groupId>io.cucumber</groupId>
		<artifactId>cucumber-picocontainer</artifactId>
		<version>4.8.1</version>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>io.cucumber</groupId>
		<artifactId>cucumber-junit</artifactId>
		<version>4.8.1</version>
		<scope>test</scope>
	</dependency>

	<!-- http://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-server -->
	<dependency>
		<groupId>org.seleniumhq.selenium</groupId>
		<artifactId>selenium-server</artifactId>
		<version>3.8.1</version>
	</dependency>

<!-- https://mvnrepository.com/artifact/io.github.bonigarcia/webdrivermanager -->
	<dependency>
		<groupId>io.github.bonigarcia</groupId>
		<artifactId>webdrivermanager</artifactId>
		<version>3.8.1</version>
	</dependency>




	<dependency>
		<groupId>io.cucumber</groupId>
		<artifactId>cucumber-testng</artifactId>
		<version>4.8.1</version>
		<scope>test</scope>
	</dependency>
	
	
	<!-- Extent Reports 4 Plugin-->
	
	<dependency>
		<groupId>com.aventstack</groupId>
		<artifactId>extentreports-cucumber4-adapter</artifactId>
		<version>1.0.12</version>
		<exclusions>
			<exclusion>
				<groupId>io.cucumber</groupId>
				<artifactId>cucumber-java</artifactId>
			</exclusion>
			<exclusion>
				<groupId>io.cucumber</groupId>
				<artifactId>cucumber-core</artifactId>
			</exclusion>
		</exclusions>
	</dependency>
	

	<!-- TestNG -->
	<dependency>
		<groupId>org.testng</groupId>
		<artifactId>testng</artifactId>
		<version>6.8</version>
		<scope>test</scope>
	</dependency>
	<!-- https://mvnrepository.com/artifact/org.hamcrest/hamcrest-all -->
	<dependency>
		<groupId>org.hamcrest</groupId>
		<artifactId>hamcrest-all</artifactId>
		<version>1.3</version>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>org.assertj</groupId>
		<artifactId>assertj-core</artifactId>
		<version>3.11.1</version>
	</dependency>
	<dependency>
		<groupId>org.hamcrest</groupId>
		<artifactId>hamcrest-core</artifactId>
		<version>1.3</version>
	</dependency>
	<dependency>
		<groupId>org.apache.commons</groupId>
		<artifactId>commons-lang3</artifactId>
		<version>3.8</version>
	</dependency>
	<dependency>
		<groupId>com.google.guava</groupId>
		<artifactId>guava</artifactId>
		<version>26.0-jre</version>
	</dependency>
	<dependency>
		<groupId>com.microsoft.sqlserver</groupId>
		<artifactId>mssql-jdbc</artifactId>
		<version>8.4.0.jre11</version>
	</dependency>
	<dependency>
		<groupId>org.seleniumhq.selenium</groupId>
		<artifactId>selenium-java</artifactId>
		<version>3.141.59</version>
	</dependency>
	<dependency>
		<groupId>org.apache.poi</groupId>
		<artifactId>poi-ooxml</artifactId>
		<version>3.9</version>
	</dependency>
	<dependency>
		<groupId>org.apache.poi</groupId>
		<artifactId>poi</artifactId>
		<version>3.11-beta3</version>
	</dependency>
	<dependency>
		<groupId>org.seleniumhq.selenium</groupId>
		<artifactId>selenium-server</artifactId>
		<version>3.13.0</version>
	</dependency>
	<dependency>
		<groupId>org.seleniumhq.selenium</groupId>
		<artifactId>selenium-java</artifactId>
		<version>3.141.59</version>
	</dependency>
	<dependency>
		<groupId>org.seleniumhq.selenium</groupId>
		<artifactId>selenium-api</artifactId>
		<version>3.13.0</version>
	</dependency>
	<dependency>
		<groupId>org.seleniumhq.selenium</groupId>
		<artifactId>selenium-support</artifactId>
		<version>3.13.0</version>
	</dependency>
	<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-remote-driver -->
	<dependency>
		<groupId>org.seleniumhq.selenium</groupId>
		<artifactId>selenium-remote-driver</artifactId>
		<version>3.141.59</version>
	</dependency>
junit junit 4.13 test
</dependencies>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant