Class: JmeterReports::SummaryLine

Inherits:
Object
  • Object
show all
Defined in:
lib/jmeter/reports/summary_line.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#elapsedObject

Returns the value of attribute elapsed.



16
17
18
# File 'lib/jmeter/reports/summary_line.rb', line 16

def elapsed
  @elapsed
end

#errorObject

Returns the value of attribute error.



16
17
18
# File 'lib/jmeter/reports/summary_line.rb', line 16

def error
  @error
end

#labelObject

Returns the value of attribute label.



16
17
18
# File 'lib/jmeter/reports/summary_line.rb', line 16

def label
  @label
end

#latencyObject

Returns the value of attribute latency.



16
17
18
# File 'lib/jmeter/reports/summary_line.rb', line 16

def latency
  @latency
end

#timestampObject

Returns the value of attribute timestamp.



16
17
18
# File 'lib/jmeter/reports/summary_line.rb', line 16

def timestamp
  @timestamp
end

Class Method Details

.parse(line) ⇒ Object



18
19
20
21
22
23
24
25
26
27
# File 'lib/jmeter/reports/summary_line.rb', line 18

def self.parse(line)
  t,e,l,rc,rm,_,_,s,_,_,_,_,lt = CSV.parse_line(line)
  res = JmeterReports::SummaryLine.new
  res.timestamp = t.to_i
  res.elapsed   = e.to_i
  res.label     = l
  res.error     = (s == "false" ? true : false)
  res.latency   = lt.to_i
  return res
end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/jmeter/reports/summary_line.rb', line 29

def error?
  self.error
end