2013-04-19 13 views
8

Sto cercando di eseguire ad esempio la registrazione e io sono sempre bloccatoGherkin + Behat Scenario contorno getta Behat Gherkin Exception 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 | 

allora ottengo il seguente errore:

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

Cosa sto sbagliando? Non riesco a trovare alcun aiuto su behat doc o così.

risposta

15

Con esempi, è necessario utilizzare "Scenario contorno" anziché "Scenario".

+1

Vedere http://docs.behat.org/guides/1.gherkin.html#scenario-outlines per i documenti. – Klaasvaak

Problemi correlati