Top Level Namespace
Defined Under Namespace
Modules: RSpec Classes: ParallelizedSpecs, SeleniumTrend
Instance Method Summary collapse
Instance Method Details
#store_failure_data ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/parallelized_specs/selenium_trending_collector.rb', line 35 def store_failure_data dir = Dir.pwd data = "#{dir}/tmp/parallel_log/trends.log" File.open("#{data}", 'r') do |f| f.each_line do |line| if values != nil values = line.split("*").to_a spec_line_failure = values[0] spec_name = values[1] date = values[2] status = values[3] time = values[4] nested_spec_name = values[5] trace = values[6] full_path = values[7] hudson_build = values[9] hudson_project = values[10] hudson_url = values[11] SeleniumTrend.create!(:spec_line_failure => spec_line_failure, :spec_name => spec_name, :date => date, :status => status, :time => time, :nested_spec_name => nested_spec_name, :trace => trace, :full_path => full_path, :hudson_build => hudson_build, :hudson_project => hudson_project, :hudson_url => hudson_url) end end end end |