无法在黄瓜中生成范围报告。我正在使用黄瓜版本 4
Unable to generate extent report in cucumber. I am using cucumber version 4
我用过extentreports-cucumber4-adapter,cucumber-java(4.2.0),cucumber-core(4.2.0),cucumber-junit(4.2.0),gherkin(2.12.2 ),cucumber-reporting-4.10.0,junit-3.8.1,cucumber-picocontainer-4.2.0,cucumber-extentsreport-com.vimalselvam(3.1.1)
我能够生成执行测试用例,但没有得到报告 generated.Do除此之外,我需要在 TestRunner 文件中提供任何特定路径
插件 = {"com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:"},?
我无法post我的pom.xml文件
你能试试 Cucumber 版本 4.0.1 和等效的依赖项吗
extentreports 4.0.9 以及 cucumber4 适配器版本 1.0.7
我建议在您的 POM.xml 中仅使用 cucumber 4 适配器,而不是 cucumber-extentsreport-com.vimalselvam(3.1.1) 库
这是pom.xml文件
org.seleniumhq.selenium
硒-java
3.141.59
io.cucumber
黄瓜芯
4.0.1
<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-java -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>4.0.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-junit -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
<version>4.0.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/info.cukes/gherkin -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>gherkin</artifactId>
<version>2.12.2</version>
<scope>provided</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/net.masterthought/cucumber-reporting -->
<dependency>
<groupId>net.masterthought</groupId>
<artifactId>cucumber-reporting</artifactId>
<version>4.10.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-picocontainer -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-picocontainer</artifactId>
<version>4.0.1</version>
</dependency>
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports-cucumber4-adapter</artifactId>
<version>1.0.7</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.aventstack/extentreports -->
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
<version>4.0.9</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.7</version>
</plugin>
</plugins>
</build>
</project>
可能是版本问题mismatch.You可以看看this项目,我运行是这样的。
(我修好了)
我用过extentreports-cucumber4-adapter,cucumber-java(4.2.0),cucumber-core(4.2.0),cucumber-junit(4.2.0),gherkin(2.12.2 ),cucumber-reporting-4.10.0,junit-3.8.1,cucumber-picocontainer-4.2.0,cucumber-extentsreport-com.vimalselvam(3.1.1)
我能够生成执行测试用例,但没有得到报告 generated.Do除此之外,我需要在 TestRunner 文件中提供任何特定路径 插件 = {"com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:"},?
我无法post我的pom.xml文件
你能试试 Cucumber 版本 4.0.1 和等效的依赖项吗
extentreports 4.0.9 以及 cucumber4 适配器版本 1.0.7
我建议在您的 POM.xml 中仅使用 cucumber 4 适配器,而不是 cucumber-extentsreport-com.vimalselvam(3.1.1) 库
这是pom.xml文件
org.seleniumhq.selenium
硒-java
3.141.59
io.cucumber
黄瓜芯
4.0.1
<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-java -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>4.0.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-junit -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
<version>4.0.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/info.cukes/gherkin -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>gherkin</artifactId>
<version>2.12.2</version>
<scope>provided</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/net.masterthought/cucumber-reporting -->
<dependency>
<groupId>net.masterthought</groupId>
<artifactId>cucumber-reporting</artifactId>
<version>4.10.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-picocontainer -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-picocontainer</artifactId>
<version>4.0.1</version>
</dependency>
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports-cucumber4-adapter</artifactId>
<version>1.0.7</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.aventstack/extentreports -->
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
<version>4.0.9</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.7</version>
</plugin>
</plugins>
</build>
</project>
可能是版本问题mismatch.You可以看看this项目,我运行是这样的。 (我修好了)