Class: Gridinit::Jmeter::LDAPExtSampler

Inherits:
Object
  • Object
show all
Includes:
Helper
Defined in:
lib/gridinit-jmeter/samplers/ldap_ext_sampler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helper

#enabled, #update

Constructor Details

#initialize(name, params = {}) ⇒ LDAPExtSampler

Returns a new instance of LDAPExtSampler.



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/gridinit-jmeter/samplers/ldap_ext_sampler.rb', line 7

def initialize(name, params={})
  @doc = Nokogiri::XML(<<-EOF.strip_heredoc)
    <LDAPExtSampler guiclass="LdapExtTestSamplerGui" testclass="LDAPExtSampler" testname="#{name}" enabled="true">
      <stringProp name="servername"></stringProp>
      <stringProp name="port">389</stringProp>
      <stringProp name="rootdn"></stringProp>
      <stringProp name="scope">2</stringProp>
      <stringProp name="countlimit"></stringProp>
      <stringProp name="timelimit"></stringProp>
      <stringProp name="attributes"></stringProp>
      <stringProp name="return_object">false</stringProp>
      <stringProp name="deref_aliases">false</stringProp>
      <stringProp name="connection_timeout"></stringProp>
      <stringProp name="parseflag">false</stringProp>
      <stringProp name="secure">false</stringProp>
      <stringProp name="user_dn"></stringProp>
      <stringProp name="user_pw"></stringProp>
      <stringProp name="comparedn"></stringProp>
      <stringProp name="comparefilt"></stringProp>
      <stringProp name="modddn"></stringProp>
      <stringProp name="newdn"></stringProp>
      <stringProp name="test">bind</stringProp>
    </LDAPExtSampler>
  EOF
  update params
end

Instance Attribute Details

#docObject

Returns the value of attribute doc.



5
6
7
# File 'lib/gridinit-jmeter/samplers/ldap_ext_sampler.rb', line 5

def doc
  @doc
end