Class: Gridinit::Jmeter::SmtpSampler
- Inherits:
-
Object
- Object
- Gridinit::Jmeter::SmtpSampler
- Includes:
- Helper
- Defined in:
- lib/gridinit-jmeter/idl/smtp_sampler.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
Instance Method Summary collapse
-
#initialize(name, params = {}) ⇒ SmtpSampler
constructor
A new instance of SmtpSampler.
Methods included from Helper
Constructor Details
#initialize(name, params = {}) ⇒ SmtpSampler
Returns a new instance of SmtpSampler.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/gridinit-jmeter/idl/smtp_sampler.rb', line 15 def initialize(name, params={}) @doc = Nokogiri::XML(<<-EOS.strip_heredoc) <SmtpSampler guiclass="SmtpSamplerGui" testclass="SmtpSampler" testname="#{name}" enabled="true"> <stringProp name="SMTPSampler.server"/> <stringProp name="SMTPSampler.serverPort"/> <stringProp name="SMTPSampler.mailFrom"/> <stringProp name="SMTPSampler.replyTo"/> <stringProp name="SMTPSampler.receiverTo"/> <stringProp name="SMTPSampler.receiverCC"/> <stringProp name="SMTPSampler.receiverBCC"/> <stringProp name="SMTPSampler.subject"/> <stringProp name="SMTPSampler.suppressSubject">false</stringProp> <stringProp name="SMTPSampler.include_timestamp">false</stringProp> <stringProp name="SMTPSampler.message"/> <stringProp name="SMTPSampler.plainBody">false</stringProp> <stringProp name="SMTPSampler.attachFile"/> <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"/> <boolProp name="SMTPSampler.use_eml">false</boolProp> <stringProp name="SMTPSampler.emlMessageToSend"/> <stringProp name="SMTPSampler.useAuth">false</stringProp> <stringProp name="SMTPSampler.password"/> <stringProp name="SMTPSampler.username"/> <stringProp name="SMTPSampler.messageSizeStatistics">false</stringProp> <stringProp name="SMTPSampler.enableDebug">false</stringProp> <collectionProp name="SMTPSampler.headerFields"/> </SmtpSampler>) EOS update params end |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
12 13 14 |
# File 'lib/gridinit-jmeter/idl/smtp_sampler.rb', line 12 def doc @doc end |