title: Get current Step form Scenario outline
body: <p>I am trying to access the current step name in for a scenario outline test. The code below works for regular scenarios but fails for scenario outlines.</p>
  
  <pre><code>AfterStep do |scenario|
    #step = scenario.steps.find { |s| s.status == :skipped }
    #puts step.keyword + step.name
  
    case scenario
      when Cucumber::Ast::Scenario
        step = scenario.steps.find { |s| s.status == :skipped }
        puts step.keyword + ' ' + step.name
        #Works correctly
  
      when Cucumber::Ast::OutlineTable::ExampleRow
        # **!!!!Exception below!!!**
        step = scenario.scenario_outline.steps.find { |s| s.status == :skipped }
        puts step.keyword + ' ' + step.name
  
    end
  end
  </code></pre>
  
  <p>Exception:</p>
  
  <pre><code>NoMethodError: undefined method `steps' for #&lt;Cucumber::Ast::OutlineTable::ExampleRow:0x007fe0b8214bc0&gt;
  </code></pre>
  
  <p>Does anyone know how to resolve this? Or if this is possible?</p>