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