2013-04-19 20 views
8

Próbuję uruchomić przykład rejestracyjnej i jestem utknięciekorniszon + Behat Scenariusz zarys rzuca Behat Korniszon Wyjątek 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 | 

Następnie pojawia się następujący błąd:

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

Co czy robię źle? Nie mogę znaleźć żadnej pomocy dotyczącej dokumentu behat.

Odpowiedz

15

Na przykładach należy użyć "Zarys scenariusza" zamiast "Scenariusz".

+1

Zobacz http://docs.behat.org/guides/1.gherkin.html#scenario- linie do dokumentów. – Klaasvaak

Powiązane problemy