9

登録例を実行しようとしていますが、行き詰まります

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] コメントまたはシナリオまたはアウトラインまたはステップ トークンが必要でしたが、例を取得しました

私は何を間違っていますか?behat docなどでヘルプが見つかりません。

4

1 に答える 1

18

例では、「シナリオ」の代わりに「シナリオ概要」を使用する必要があります。

于 2013-04-21T06:53:55.180 に答える