Sha256: c5fa4947fb36c83648c74682f07761c553224099e2cf4d9721b3f2c982afabc7
Contents?: true
Size: 773 Bytes
Versions: 3
Compression:
Stored size: 773 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(<<-EOS.strip_heredoc).children <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 ) end attach_node(node, &block) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems