Sha256: 03f07622632269304f493ce4ea0f673cb4756bc7e24216438933a0c9b63dd242
Contents?: true
Size: 725 Bytes
Versions: 12
Compression:
Stored size: 725 Bytes
Contents
module JmeterPerf class ExtendedDSL < DSL def thread_group(*args, &) params = args.shift || {} params = {count: params}.merge(args.shift || {}) if params.is_a?(Integer) params[:num_threads] = params[:count] || 1 params[:ramp_time] = params[:rampup] || (params[:num_threads] / 2.0).ceil params[:start_time] = params[:start_time] || Time.now.to_i * 1000 params[:end_time] = params[:end_time] || Time.now.to_i * 1000 params[:duration] ||= 60 params[:continue_forever] ||= false params[:loops] = -1 if params[:continue_forever] node = JmeterPerf::DSL::ThreadGroup.new(params) attach_node(node, &) end alias_method :threads, :thread_group end end
Version data entries
12 entries across 12 versions & 1 rubygems