0
マイキュウリ機能ファイルは以下のようなシナリオの概要を使用している
:未定義のメソッド `手順<キュウリ:: AST :: OutlineTable :: ExampleRow:XXX>(NoMethodError)
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)
私はキュウリ1.3.19を使用していますし、フックの前に私のenv.rbファイルで、私はエラーがスローされますから、どこの下に使用しています:
scenario.steps.map(&:name)
env.rbの前のフックのコードをすべて投稿できますか?おそらく、 'scenario.test_steps.map(&:name)'を呼び出すといいでしょう。私がテストした 'シナリオ::シナリオ|シナリオフック '(https://github.com/cucumber/cucumber/wiki/Hooks)を使って、' Cucumber :: RunningTestCase :: ScenarioOutlineExample' #scenario-hooks))、あなたのエラーからは 'Cucumber :: Ast :: OutlineTable :: ExampleRow'ではありません。 – konacaret