0

我的黄瓜功能文件使用如下场景大纲:

Scenario Outline: 
  And user searches for item "<item>"
  Then homepage is active
  And user selects "<type>" Type(s)

Examples:
  | item | type |
  | car | bmw   |
  | car | honda  |

抛出以下错误消息:

undefined method `steps' for #<Cucumber::Ast::OutlineTable::ExampleRow:0x007f83buyg71120> 
(NoMethodError)

我正在使用 cucumber 1.3.19 并在挂钩之前的 env.rb 文件中,我在下面使用抛出错误的位置:

scenario.steps.map(&:name)
4

1 回答 1

0

我已通过将黄瓜版本升级到 2.0.2 来解决此问题

于 2016-03-29T15:35:02.750 回答