Sha256: 7bd441dbb7de9ce427efe0c7f1b2b0769d03b6f50323d44c957ec32380435a46

Contents?: true

Size: 842 Bytes

Versions: 12

Compression:

Stored size: 842 Bytes

Contents

module JmeterPerf
  class ExtendedDSL < DSL
    def jms_pointtopoint(params, &block)
      JmeterPerf::JmsPointtopoint.new(params).tap do |node|
        params[:jndi_properties]&.each do |property_name, property_value|
          node.doc.xpath("//collectionProp").first.add_child(
            Nokogiri::XML(JmeterPerf::Helpers::String.strip_heredoc(
              <<-EOS
                <elementProp name="#{property_name}" elementType="Argument">
                  <stringProp name="Argument.name">#{property_name}</stringProp>
                  <stringProp name="Argument.value">#{property_value}</stringProp>
                  <stringProp name="Argument.metadata">=</stringProp>
                </elementProp>
              EOS
            )).children
          )
        end

        attach_node(node, &block)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
jmeter_perf-1.1.1 lib/jmeter_perf/extend/samplers/jms_pointtopoint.rb
jmeter_perf-1.1.0 lib/jmeter_perf/extend/samplers/jms_pointtopoint.rb
jmeter_perf-1.0.10 lib/jmeter_perf/extend/samplers/jms_pointtopoint.rb
jmeter_perf-1.0.9 lib/jmeter_perf/extend/samplers/jms_pointtopoint.rb
jmeter_perf-1.0.8 lib/jmeter_perf/extend/samplers/jms_pointtopoint.rb
jmeter_perf-1.0.7 lib/jmeter_perf/extend/samplers/jms_pointtopoint.rb
jmeter_perf-1.0.6 lib/jmeter_perf/extend/samplers/jms_pointtopoint.rb
jmeter_perf-1.0.5 lib/jmeter_perf/extend/samplers/jms_pointtopoint.rb
jmeter_perf-1.0.4 lib/jmeter_perf/extend/samplers/jms_pointtopoint.rb
jmeter_perf-1.0.2 lib/jmeter_perf/extend/samplers/jms_pointtopoint.rb
jmeter_perf-1.0.1 lib/jmeter_perf/extend/samplers/jms_pointtopoint.rb
jmeter_perf-1.0.0 lib/jmeter_perf/extend/samplers/jms_pointtopoint.rb