Sha256: 7bc8143b4c01f119ec5354236444bbf3996df3b68be690143ec697a87ef34748

Contents?: true

Size: 468 Bytes

Versions: 3

Compression:

Stored size: 468 Bytes

Contents

module JmeterPerf
  class ExtendedDSL < DSL
    def transaction_controller(*args, &)
      params = args.shift || {}
      params = {name: params}.merge(args.shift || {}) if params.is_a?(String)
      params[:parent] = params[:parent] || false
      params[:includeTimers] = params[:include_timers] || false
      node = JmeterPerf::TransactionController.new(params)
      attach_node(node, &)
    end

    alias_method :transaction, :transaction_controller
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jmeter_perf-0.0.7 lib/jmeter_perf/extend/controllers/transaction_controller.rb
jmeter_perf-0.0.6 lib/jmeter_perf/extend/controllers/transaction_controller.rb
jmeter_perf-0.0.2 lib/jmeter_perf/extend/controllers/transaction_controller.rb