當使用場景概要時,報告會生成兩個情景,一個沒有顏色,另一個沒有顏色(如圖所示)。黃瓜報告使用場景時的重複情況概要
使用方案大綱時,使用方案沒有發生這種情況時只。
這是我的pom.xml ' http://maven.apache.org/xsd/maven-4.0.0.xsd「> 4.0.0 GroupMaven ArtifactMaven 0.0.1-SNAPSHOT POM ProjectMaven http://maven.apache.org
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<executions>
<execution>
<configuration>
<includes>
<include>**/*Test.java</include>
</includes>
</configuration>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.2.4</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.2.4</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.53.1</version>
</dependency>
<dependency>
<groupId>com.opencsv</groupId>
<artifactId>opencsv</artifactId>
<version>3.8</version>
</dependency>
</dependencies>
'
這是我的黃瓜亞軍類
'
@RunWith(Cucumber.class) @CucumberOptions(格式= { 「HTML:黃瓜-HTML的報告/第一」, 「JSON:黃瓜 - HTML的報告/ cucumber.json」},特徵= { 「測試/特徵/ FirstFeature.feature」}) 公共類CucumberCukesTest { } '
,我用單色,嚴格,dryrum等選項,沒有什麼會工作。我也用插件而不是格式。
Cucumber report for scenario using Scenario Outline keyword
嘗試使用[qaf小黃瓜客戶端](https://qmetry.github.io/qaf/latest/gherkin_client.html)它會生成非常[描述性報告](https://qmetry.github.io/qaf/latest /qaf_reporting.html)。 – user861594