2013-04-19 3 views
8

を投げる私は、登録例を実行しようとしていますし、私はガーキン+ BehatシナリオアウトラインがBehat ガーキン例外のをParserException

Scenario: New user registration; poor password 
    Given I am on "/register" 
    When I fill in "username" with "admin" 
    And I fill in "password1" with "<pw>" 
    And I fill in "password2" with "<pw>" 
    And I press "Login" 
    Then I should be on "/register" 
    And I should see an "pwError" element 

    Examples: 
    | pw | 
    | 12 | 
    | 20 | 

を立ち往生していますそれから私は、次のエラーを取得する:

[Behat\Gherkin\Exception\ParserException] Expected Comment or Scenario or Outline or Step token, but got Examples

何私は間違っている?私はbehatのdocかそれ以上の助けを見つけることができません。

答えて

15

例では、「シナリオ」の代わりに「シナリオのアウトライン」を使用する必要があります。

+1

ドキュメントについてはhttp://docs.behat.org/guides/1.gherkin.html#scenario-outlinesをご覧ください。 – Klaasvaak

関連する問題