Class: JmeterPerf::DSL::JMSPointtoPoint
- Inherits:
-
Object
- Object
- JmeterPerf::DSL::JMSPointtoPoint
- Includes:
- Helpers::XmlDocumentUpdater
- Defined in:
- lib/jmeter_perf/dsl/jms_pointto_point.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ JMSPointtoPoint
constructor
A new instance of JMSPointtoPoint.
Constructor Details
#initialize(params = {}) ⇒ JMSPointtoPoint
Returns a new instance of JMSPointtoPoint.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/jmeter_perf/dsl/jms_pointto_point.rb', line 17 def initialize(params = {}) testname = params.is_a?(Array) ? "JMSPointtoPoint" : (params[:name] || "JMSPointtoPoint") @doc = Nokogiri::XML(JmeterPerf::Helpers::String.strip_heredoc( <<~EOS <JMSSampler guiclass="JMSSamplerGui" testclass="JMSSampler" testname="#{testname}" enabled="true"> <stringProp name="JMSSampler.queueconnectionfactory"/> <stringProp name="JMSSampler.SendQueue"/> <stringProp name="JMSSampler.ReceiveQueue"/> <boolProp name="JMSSampler.isFireAndForget">true</boolProp> <boolProp name="JMSSampler.isNonPersistent">false</boolProp> <boolProp name="JMSSampler.useReqMsgIdAsCorrelId">false</boolProp> <boolProp name="JMSSampler.useResMsgIdAsCorrelId">false</boolProp> <stringProp name="JMSSampler.timeout"/> <stringProp name="HTTPSamper.xml_data"/> <stringProp name="JMSSampler.initialContextFactory"/> <stringProp name="JMSSampler.contextProviderUrl"/> <elementProp name="JMSSampler.jndiProperties" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="#{testname}" enabled="true"> <collectionProp name="Arguments.arguments"/> </elementProp> <elementProp name="arguments" elementType="JMSProperties"> <collectionProp name="JMSProperties.properties"/> </elementProp> </JMSSampler> EOS )) update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
14 15 16 |
# File 'lib/jmeter_perf/dsl/jms_pointto_point.rb', line 14 def doc @doc end |