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 의사 또는 너무에 대한 도움을 찾을 수 없습니다.

답변

15

예를 들어, "시나리오"대신 "시나리오 개요"를 사용해야합니다.

+1

문서는 http://docs.behat.org/guides/1.gherkin.html#scenario-outlines를 참조하십시오. – Klaasvaak