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
,ConfigMergabilityIndicator
,Searchable
,Sampler
,org.apache.jmeter.testelement.TestElement
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
Modifier 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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
applies
(ConfigTestElement configElement) Does configElement apply to SamplerPerforms the sample, and returns the resultMethods 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
Performs the sample, and returns the result- Parameters:
e
- Standard-method-header from JMeter- Returns:
- Result of the sample
- See Also:
-
applies
Description copied from class:AbstractSampler
Does configElement apply to Sampler- Specified by:
applies
in interfaceConfigMergabilityIndicator
- Overrides:
applies
in classAbstractSampler
- Parameters:
configElement
-ConfigTestElement
- Returns:
- boolean
- See Also:
-