Sha256: 92c86f0a9bfdb40c237ab4aa391e72cbd6361f4520e233a6c8714995e86279b5
Contents?: true
Size: 790 Bytes
Versions: 75
Compression:
Stored size: 790 Bytes
Contents
module RubyJmeter class DSL def test_action(params={}, &block) node = RubyJmeter::TestAction.new(params) attach_node(node, &block) end end class TestAction attr_accessor :doc include Helper def initialize(params={}) testname = params.kind_of?(Array) ? 'TestAction' : (params[:name] || 'TestAction') @doc = Nokogiri::XML(<<-EOS.strip_heredoc) <TestAction guiclass="TestActionGui" testclass="TestAction" testname="#{testname}" enabled="true"> <intProp name="ActionProcessor.action">1</intProp> <intProp name="ActionProcessor.target">0</intProp> <stringProp name="ActionProcessor.duration"/> </TestAction>) EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end end end
Version data entries
75 entries across 75 versions & 1 rubygems