Class: RubyJmeter::MailReaderSampler
- Inherits:
-
Object
- Object
- RubyJmeter::MailReaderSampler
- Includes:
- Helper
- Defined in:
- lib/ruby-jmeter/dsl/mail_reader_sampler.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ MailReaderSampler
constructor
A new instance of MailReaderSampler.
Methods included from Helper
#enabled, #enabled_disabled, #update, #update_at_xpath, #update_collection
Constructor Details
#initialize(params = {}) ⇒ MailReaderSampler
Returns a new instance of MailReaderSampler.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/ruby-jmeter/dsl/mail_reader_sampler.rb', line 13 def initialize(params={}) testname = params.kind_of?(Array) ? 'MailReaderSampler' : (params[:name] || 'MailReaderSampler') @doc = Nokogiri::XML(<<-EOS.strip_heredoc) <MailReaderSampler guiclass="MailReaderSamplerGui" testclass="MailReaderSampler" testname="#{testname}" enabled="true"> <stringProp name="host_type">pop3</stringProp> <stringProp name="folder">INBOX</stringProp> <stringProp name="host"/> <stringProp name="username"/> <stringProp name="password"/> <intProp name="num_messages">-1</intProp> <boolProp name="delete">false</boolProp> <stringProp name="SMTPSampler.useSSL">false</stringProp> <stringProp name="SMTPSampler.useStartTLS">false</stringProp> <stringProp name="SMTPSampler.trustAllCerts">false</stringProp> <stringProp name="SMTPSampler.enforceStartTLS">false</stringProp> <stringProp name="SMTPSampler.useLocalTrustStore">false</stringProp> <stringProp name="SMTPSampler.trustStoreToUse"/> </MailReaderSampler>) EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
10 11 12 |
# File 'lib/ruby-jmeter/dsl/mail_reader_sampler.rb', line 10 def doc @doc end |