Sha256: cc2b22c1abd2cd289050441ee89ddcfe31d89bc5d6005c035223f277f1bd77ea
Contents?: true
Size: 1.67 KB
Versions: 2
Compression:
Stored size: 1.67 KB
Contents
module JmeterPerf class DSL def jms_publisher(params = {}, &) node = JmeterPerf::JMSPublisher.new(params) attach_node(node, &) end end class JMSPublisher attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(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="arguments" elementType="JMSProperties"> <collectionProp name="JMSProperties.properties"/> </elementProp> <stringProp name="jms.expiration"/> <stringProp name="jms.priority"/> </PublisherSampler> EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jmeter_perf-0.0.6 | lib/jmeter_perf/dsl/jms_publisher.rb |
jmeter_perf-0.0.2 | lib/jmeter_perf/dsl/jms_publisher.rb |