2013-04-19 8 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

क्या क्या मैं गलत कर रहा हूँ? मुझे व्यवहार दस्तावेज़ पर कोई मदद नहीं मिल रही है।

उत्तर

15

उदाहरण के साथ, आपको "परिदृश्य" के बजाय "परिदृश्य रूपरेखा" का उपयोग करना होगा।

+1

दस्तावेज़ों के लिए http://docs.behat.org/guides/1.gherkin.html#scenario-outlines देखें। – Klaasvaak

संबंधित मुद्दे