class RakeGatling::ResultMonitor
Constants
- ERROR_MESSAGE
Public Class Methods
new(results_repository)
click to toggle source
# File lib/src/ResultMonitor.rb, line 5 def initialize(results_repository) @results_repository = results_repository end
Public Instance Methods
check_for_failures()
click to toggle source
# File lib/src/ResultMonitor.rb, line 9 def check_for_failures results = @results_repository.get results.keys.each do |record_key| record = results[record_key] ko = record['ko'] raise KOsError, ERROR_MESSAGE if !ko.nil? && ko > 0 end end