首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Gherkin + Behat场景大纲抛出Behat\Gherkin\Exception\ParserException

Gherkin + Behat场景大纲抛出Behat\Gherkin\Exception\ParserException
EN

Stack Overflow用户
提问于 2013-04-19 17:50:53
回答 1查看 2.7K关注 0票数 9

我正在尝试运行注册示例,但我被卡住了。

代码语言:javascript
复制
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预期的注释或场景、大纲或步骤标记,但有示例

我做错了什么?我在贝哈特医生身上找不到任何帮助。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-04-21 06:53:55

对于示例,您必须使用“场景大纲”而不是“场景”。

票数 18
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16110645

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档