Method: Res::Reporters::TestRail#case_details

Defined in:
lib/res/reporters/test_rail.rb

#case_details(ir, section) ⇒ Object

create_suite



141
142
143
144
145
146
147
148
149
150
151
152
153
# File 'lib/res/reporters/test_rail.rb', line 141

def case_details(ir, section)
  ir[:children].each do |child|
    if @mappings.context.include?(child[:type])
        section = section.find_section(:name => child[:name])   
        case_details(child, section)

    elsif @mappings.case.include?(child[:type])  
        tcase = section.find_test_case(:title => child[:name])  if !section.nil?
        @case_status[:"#{tcase.id}"] = child[:status] if !tcase.nil?

    end
  end
end