Class: Gridinit::Jmeter::MailReaderSampler
- Inherits:
-
Object
- Object
- Gridinit::Jmeter::MailReaderSampler
- Includes:
- Helper
- Defined in:
- lib/gridinit-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, #update, #update_at_xpath
Constructor Details
#initialize(params = {}) ⇒ MailReaderSampler
Returns a new instance of MailReaderSampler.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/gridinit-jmeter/dsl/mail_reader_sampler.rb', line 15 def initialize(params={}) params[:name] ||= 'MailReaderSampler' @doc = Nokogiri::XML("<MailReaderSampler guiclass=\"MailReaderSamplerGui\" testclass=\"MailReaderSampler\" testname=\"\#{params[:name]}\" enabled=\"true\">\n <stringProp name=\"host_type\">pop3</stringProp>\n <stringProp name=\"folder\">INBOX</stringProp>\n <stringProp name=\"host\"/>\n <stringProp name=\"username\"/>\n <stringProp name=\"password\"/>\n <intProp name=\"num_messages\">-1</intProp>\n <boolProp name=\"delete\">false</boolProp>\n <stringProp name=\"SMTPSampler.useSSL\">false</stringProp>\n <stringProp name=\"SMTPSampler.useStartTLS\">false</stringProp>\n <stringProp name=\"SMTPSampler.trustAllCerts\">false</stringProp>\n <stringProp name=\"SMTPSampler.enforceStartTLS\">false</stringProp>\n <stringProp name=\"SMTPSampler.useLocalTrustStore\">false</stringProp>\n <stringProp name=\"SMTPSampler.trustStoreToUse\"/>\n</MailReaderSampler>)\n EOS\n update params\n update_at_xpath params if params[:update_at_xpath]\nend\n".strip_heredoc) |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
12 13 14 |
# File 'lib/gridinit-jmeter/dsl/mail_reader_sampler.rb', line 12 def doc @doc end |