Class SmtpSampler
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.samplers.AbstractSampler
org.apache.jmeter.protocol.smtp.sampler.SmtpSampler
- All Implemented Interfaces:
Serializable
,Cloneable
,org.apache.jmeter.engine.util.ConfigMergabilityIndicator
,org.apache.jmeter.gui.Searchable
,org.apache.jmeter.samplers.Sampler
,org.apache.jmeter.testelement.TestElement
public class SmtpSampler
extends org.apache.jmeter.samplers.AbstractSampler
Sampler-Class for JMeter - builds, starts and interprets the results of the
sampler. Has to implement some standard-methods for JMeter in order to be
integrated in the framework. All getter/setter methods just deliver/set
values from/to the sampler, not from/to the message-object. Therefore, all
these methods are also present in class SendMailCommand.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElement
org.apache.jmeter.testelement.TestElement.Companion
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jmeter.testelement.TestElement
addTestElement, canRemove, clear, clearTestElementChildren, clone, get, get, get, get, get, get, get, get, get, getComment, getName, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getPropertyOrNull, getPropertyOrNull, getProps, getSchema, getString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removed, removeProperty, removeProperty, set, set, set, set, set, set, set, set, set, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
-
Field Details
-
SERVER
- See Also:
-
SERVER_PORT
- See Also:
-
SERVER_TIMEOUT
- See Also:
-
SERVER_CONNECTION_TIMEOUT
- See Also:
-
USE_AUTH
- See Also:
-
USERNAME
- See Also:
-
PASSWORD
- See Also:
-
MAIL_FROM
- See Also:
-
MAIL_REPLYTO
- See Also:
-
RECEIVER_TO
- See Also:
-
RECEIVER_CC
- See Also:
-
RECEIVER_BCC
- See Also:
-
SUBJECT
- See Also:
-
SUPPRESS_SUBJECT
- See Also:
-
MESSAGE
- See Also:
-
PLAIN_BODY
- See Also:
-
INCLUDE_TIMESTAMP
- See Also:
-
ATTACH_FILE
- See Also:
-
MESSAGE_SIZE_STATS
- See Also:
-
HEADER_FIELDS
- See Also:
-
USE_EML
- See Also:
-
EML_MESSAGE_TO_SEND
- See Also:
-
ENABLE_DEBUG
- See Also:
-
FILENAME_SEPARATOR
- See Also:
-
-
Constructor Details
-
SmtpSampler
public SmtpSampler()
-
-
Method Details
-
sample
public org.apache.jmeter.samplers.SampleResult sample(org.apache.jmeter.samplers.Entry e) Performs the sample, and returns the result- Parameters:
e
- Standard-method-header from JMeter- Returns:
- Result of the sample
- See Also:
-
Sampler.sample(org.apache.jmeter.samplers.Entry)
-
applies
public boolean applies(org.apache.jmeter.config.ConfigTestElement configElement) - Specified by:
applies
in interfaceorg.apache.jmeter.engine.util.ConfigMergabilityIndicator
- Overrides:
applies
in classorg.apache.jmeter.samplers.AbstractSampler
- See Also:
-
AbstractSampler.applies(org.apache.jmeter.config.ConfigTestElement)
-