2013-04-19 13 views
8

atar ve benGherkin + Behat Senaryo anahat ben kayıt örneği çalıştırmak çalışıyorum Behat Gherkin İstisna 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 | 

Sonra aşağıdaki hatayı alıyorum saplanıyor ediyorum:

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

neler yanlış mı yapıyorum Behat belgesinde herhangi bir yardım bulamıyorum.

cevap

15

Örneklerle "Senaryo" yerine "Senaryo Çizimi" ni kullanmanız gerekir.

+1

Dokümanlar için http://docs.behat.org/guides/1.gherkin.html#scenario-outlines sayfasına bakın. – Klaasvaak

İlgili konular