Sha256: 9f358934f041442bc1c2bd13845e5fbf34fe793493b6920c36d78b04882d8f39
Contents?: true
Size: 870 Bytes
Versions: 8
Compression:
Stored size: 870 Bytes
Contents
module RubyJmeter class ExtendedDSL < DSL def jms_pointtopoint(params, &block) node = RubyJmeter::JmsPointtopoint.new(params).tap do |node| if params[:jndi_properties] params[:jndi_properties].map 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 end attach_node(node, &block) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems