2016-11-16 6 views
0

シナリオアウトラインを使用する場合、レポートはシナリオの2つのシナリオを生成します.1つはカラーなし、もう1つはカラーです(画像に示されています)。シナリオのアウトラインを使用中にキュウリレポートの複製

シナリオを使用しない場合、シナリオ概要を使用した場合にのみ発生します。ここで

は私ののpom.xml 「 http://maven.apache.org/xsd/maven-4.0.0.xsd "> 4.0.0 GroupMaven ArtifactMaven 0.0.1-SNAPSHOTです ポンポン 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:cucumber- HTML-レポート/ cucumber.json」}、機能= { "テスト/特徴/ FirstFeature.feature"}) パブリッククラスCucumberCukesTest { } '

iは、モノクロ、厳密、dryrumを使用するなどのオプション何も動作しません。また、私はフォーマットの代わりにプラグインを使用しました。

Cucumber report for scenario using Scenario Outline keyword

+0

[qaf gherkin client](https://qmetry.github.io/qaf/latest/gherkin_client.html)を使用してみてください。非常に[記述レポート](https://qmetry.github.io/qaf/latest)が生成されます。 /qaf_reporting.html)。 – user861594

答えて

0

最初のものを使用すると、フィーチャーファイルに書かれたもの、すなわち、あなたのシナリオの概要の一般詳細です。 6日と7日のステップをチェックしてください。

例の数に応じて2番目と他は、useridとpasswordの実際の値で置き換えられたシナリオです。同じ手順で<>が存在しないことに注意してください。

+0

しかし、私は出力キュウリの報告書の最初のものは欲しくない、私は報告書に2番目のもの(着色)を欲しいだけです。どうすれば設定できますか? –

+0

設定するオプションがあるかどうかわかりません。ソースコードを要件に合わせて変更してください。または、レポートツールを使用して見ることもできます。 – Grasshopper