extentreports-java icon indicating copy to clipboard operation
extentreports-java copied to clipboard

getting cannot find symbol variable ExtentCucumberAdapter on jenins I am using extentcucumber report adapter version 5

Open priyankaatigre opened this issue 5 years ago • 2 comments

junit junit 4.13

</dependency>
<dependency>
    <groupId>org.junit.jupiter</groupId>
    <artifactId>junit-jupiter-engine</artifactId>
    <version>5.4.0</version>
    <scope>test</scope>
</dependency>
	
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>5.4.2</version>
</dependency>


<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
<version>5.4.2</version>

</dependency>



<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-core</artifactId>
<version>5.4.2</version>
</dependency>

<dependency>
<groupId>info.cukes</groupId>
<artifactId>gherkin</artifactId>
<version>2.7.3</version>
</dependency>





<dependency>
<groupId>tech.grasshopper</groupId>
<artifactId>extentreports-cucumber5-adapter</artifactId>
<version>1.3.2</version>
</dependency>


<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
<version>4.1.5</version>
</dependency>



	<dependency>
		<groupId>org.seleniumhq.selenium</groupId>
		<artifactId>selenium-java</artifactId>
		<version>3.141.59</version>
	</dependency>
io.cucumber cucumber-picocontainer 5.7.0 io.github.bonigarcia webdrivermanager 3.8.1 junit junit-dep 4.8.2 test

priyankaatigre avatar Aug 04 '20 06:08 priyankaatigre

extent report is generated on the Jenkins but no report is available

priyankaatigre avatar Aug 04 '20 06:08 priyankaatigre

Are u referring to the adapter in the CucumberOptions plugin option? How are u using it? Attach the stacktrace.

Consider cleaning up your pom. U are mixing cucumber versions 5.4.2 and 5.7.0 plus an ancient info.cukes. For cucumber specifically, u only need to add cucumber-java, cucumber-junit and cucumber-pico in the POM. U got a mix of junit dependencies. Remove both as cucumber will get junit 4.13 as a transitive dependency. No need for extentreports dependency, the adapter will get it.

U could post this issue to this repo - https://github.com/grasshopper7/extentreports-cucumber5-adapter/issues

grasshopper7 avatar Aug 04 '20 08:08 grasshopper7