Class: Bombard::Publisher::JenkinsPlot

Inherits:
Bombard::Publisher show all
Defined in:
lib/bombard/publisher/jenkins_plot.rb

Instance Method Summary collapse

Methods inherited from Bombard::Publisher

for, #initialize, #with_opts

Constructor Details

This class inherits a constructor from Bombard::Publisher

Instance Method Details

#publishObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/bombard/publisher/jenkins_plot.rb', line 6

def publish
  site, asset = @options.split(',')
  prefix      = site + '_' + asset + '_'

  %w[response longest shortest failed transaction_rate concurrency data_transferred].each do |p|
    prop = 'YVALUE=' + @results.send(p).to_s
    file = File.new(prefix + p + '.properties', 'w')
    file.puts prop
    file.close
  end
end