def after_table_row(cuke_table_row)
      if cuke_table_row.is_a?(Cucumber::Formatter::LegacyApi::Ast::ExampleTableRow)
        is_not_header_row = (@scenario_outline.example_column_names != cuke_table_row.cells)
        if is_not_header_row
          # treat scenario-level exception as example exception
          # the exception could have been raised in a background section
          exception = (@exception || cuke_table_row.exception)
          example = @scenario_outline.examples.find { |example| example.column_values == cuke_table_row.cells }
          test_name = scenario_outline_test_name(@scenario_outline.name, example.column_values)
          if exception
            if exception.is_a? ::Cucumber::Pending
              @logger.test_ignored(test_name, 'Pending test')
            else
              @logger.test_failed(test_name, exception)
            end
          end
          @logger.test_finished(test_name)

          @exception = nil
        end
      end
    end
def after_table_row(cuke_table_row)
      if cuke_table_row.is_a?(Cucumber::Formatter::LegacyApi::Ast::ExampleTableRow)
        is_not_header_row = (@scenario_outline.example_column_names != cuke_table_row.cells)
        if is_not_header_row
          # treat scenario-level exception as example exception
          # the exception could have been raised in a background section
          exception = (@exception || cuke_table_row.exception)
          example = @scenario_outline.examples.find { |example| example.column_values == cuke_table_row.cells }
          test_name = scenario_outline_test_name(@scenario_outline.name, example.column_values)
          if exception
            if exception.is_a? ::Cucumber::Pending
              @logger.test_ignored(test_name, 'Pending test')
            else
              @logger.test_failed(test_name, exception)
            end
          end
          @logger.test_finished(test_name)

          @exception = nil
        end
      end
    end
this method is called after a scenario outline row OR step data table row