Sha256: 02b38460d0d21d9918b2bfacf82e3db944ba2fc7d0990bd85fc2e1a2fad7e174
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
module JmeterPerf class DSL # DSL method synonymous with the JMeter Element TransactionController # @see https://github.com/jlurena/jmeter_perf/wiki/1.-DSL-Documentation#transactioncontroller # @param [Hash] params Parameters for the TransactionController element (default: `{}`). # @yield block to attach to the TransactionController element # @return [JmeterPerf::TransactionController], a subclass of JmeterPerf::DSL that can be chained with other DSL methods. def transaction_controller(params = {}, &) node = JmeterPerf::TransactionController.new(params) attach_node(node, &) end end class TransactionController attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(Array) ? "TransactionController" : (params[:name] || "TransactionController") @doc = Nokogiri::XML(<<~EOS.strip_heredoc) <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="#{testname}" enabled="true"> <boolProp name="TransactionController.parent">true</boolProp> <boolProp name="TransactionController.includeTimers">false</boolProp> </TransactionController> EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jmeter_perf-0.0.7 | lib/jmeter_perf/dsl/transaction_controller.rb |