Sha256: 1650e05dac105259e2f59990e07497f050bd5cac6003c3fd8b958506c27b0758
Contents?: true
Size: 1.53 KB
Versions: 14
Compression:
Stored size: 1.53 KB
Contents
module RubyJmeter class DSL def jms_publisher(params={}, &block) node = RubyJmeter::JmsPublisher.new(params) attach_node(node, &block) end end class JmsPublisher attr_accessor :doc include Helper def initialize(params={}) testname = params.kind_of?(Array) ? 'JmsPublisher' : (params[:name] || 'JmsPublisher') @doc = Nokogiri::XML(<<-EOS.strip_heredoc) <PublisherSampler guiclass="JMSPublisherGui" testclass="PublisherSampler" testname="#{testname}" enabled="true"> <stringProp name="jms.jndi_properties">false</stringProp> <stringProp name="jms.initial_context_factory"/> <stringProp name="jms.provider_url"/> <stringProp name="jms.connection_factory"/> <stringProp name="jms.topic"/> <stringProp name="jms.security_principle"/> <stringProp name="jms.security_credentials"/> <stringProp name="jms.text_message"/> <stringProp name="jms.input_file"/> <stringProp name="jms.random_path"/> <stringProp name="jms.config_choice">jms_use_text</stringProp> <stringProp name="jms.config_msg_type">jms_text_message</stringProp> <stringProp name="jms.iterations">1</stringProp> <boolProp name="jms.authenticate">false</boolProp> <elementProp name="jms.jmsProperties" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="#{testname}" enabled="true"> <collectionProp name="Arguments.arguments"/> </elementProp> </PublisherSampler>) EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end end end
Version data entries
14 entries across 14 versions & 1 rubygems