Sha256: 6a0c4176e6d598fe9e49b2286d23abc3245749486e8a77e717d97711bf8cb1bd
Contents?: true
Size: 1.24 KB
Versions: 2
Compression:
Stored size: 1.24 KB
Contents
module JmeterPerf class DSL def ldap_request(params = {}, &) node = JmeterPerf::LDAPRequest.new(params) attach_node(node, &) end end class LDAPRequest attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(Array) ? "LDAPRequest" : (params[:name] || "LDAPRequest") @doc = Nokogiri::XML(<<~EOS.strip_heredoc) <LDAPSampler guiclass="LdapTestSamplerGui" testclass="LDAPSampler" testname="#{testname}" enabled="true"> <stringProp name="servername"/> <stringProp name="port"/> <stringProp name="rootdn"/> <boolProp name="user_defined">false</boolProp> <stringProp name="test">add</stringProp> <stringProp name="base_entry_dn"/> <elementProp name="arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="#{testname}" enabled="true"> <collectionProp name="Arguments.arguments"/> </elementProp> <stringProp name="ConfigTestElement.username"/> <stringProp name="ConfigTestElement.password"/> </LDAPSampler> EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jmeter_perf-0.0.6 | lib/jmeter_perf/dsl/ldap_request.rb |
jmeter_perf-0.0.2 | lib/jmeter_perf/dsl/ldap_request.rb |