2017-05-06 8 views
0

私はそれを見ましたが、私はフィーチャファイルのステップを生成するための手順に従おうとしました。STS(Eclipse)でキュウリの特徴のステップを生成する方法は?

<dependencies> 

     <dependency> 
      <groupId>org.seleniumhq.selenium</groupId> 
      <artifactId>selenium-java</artifactId> 
      <version>3.4.0</version> 
     </dependency> 

     <dependency> 
      <groupId>info.cukes</groupId> 
      <artifactId>cucumber-junit</artifactId> 
      <version>1.2.5</version> 
      <scope>test</scope> 
     </dependency> 

     <dependency> 
      <groupId>junit</groupId> 
      <artifactId>junit</artifactId> 
      <version>4.12</version> 
      <scope>test</scope> 
     </dependency> 

     <dependency> 
      <groupId>info.cukes</groupId> 
      <artifactId>cucumber-java8</artifactId> 
      <version>1.2.5</version> 
      <scope>test</scope> 
     </dependency> 
    </dependencies> 

、私は以下のようにランナークラスを定義している:ここにpom.xmlの私の依存関係である

import cucumber.api.CucumberOptions; 
import cucumber.api.junit.Cucumber; 
import org.junit.runner.RunWith; 

@RunWith(Cucumber.class) 
@CucumberOptions(plugin = {"pretty", "html:target/cucumber"}) 
public class RunCukesTest { 
} 

と機能のファイルがプロジェクトにsrc/featuresに位置しています:

問題があります、いつi right click on the feature file-> Run as-> Cucumber

何も起こりません。

私がいることを期待して、キュウリのランナーが実行され、何が間違っている、だから、私の手順

を与えますか?

特徴は次のとおりです。

特集:あなたの機能のタイトル 私はregisterationフォームにデータを提出したい

Scenario: Register into the forum 
Given I want to register into the main forum 
When I enter name 
    And I enter passwrod 
    And I repeat the password 
    And I enter username 
    And I enter email 
Then I click the submit 
+0

最初の試み

  • 1キュウリの特徴としてルーシ
  • それをクリックし、ファイル
  • を開く必要がありますランニングランナークラス – kushal

  • 答えて

    0

    私はall.The時点でRunCukesTestCucumber-jvmをインストールしたことを必要はありませんでしたSTSのプラグインであり、非常に簡単にステップを生成します。 This質問も非常に便利でした。

    また、Eclipseの機能ファイルを実行するために、あなたは

    関連する問題