SPONSORS:






View RSS Feed

Ronak

Understanding JMeter Element- SMTP Sampler

Rate this Entry
by , 06-21-2015 at 02:26 AM (706 Views)
Understanding JMeter Element- SMTP Sampler

The SMTP Sampler can send mail messages using SMTP/SMTPS protocol. It is possible to set security propocols for the connection (SSL and TLS), as well as user authentication. If a security protocol is used a verification on the server certificate will occur.

Two alternatives to handle this verification are available:
Trust all certificates. This will ignore certificate chain verification
Use a local truststore. With this option the certificate chain will be validated against the local truststore file.

Parameters

Server- Hostname or IP address of the server. See below for use with file protocol.
Port- Port to be used to connect to the server. Defaults are: SMTP=25, SSL=465, StartTLS=587
Connection timeout- Connection timeout value in milliseconds (socket level). Default is infinite timeout.
Read timeout- Read timeout value in milliseconds (socket level). Default is infinite timeout.
Address From- The from address that will appear in the e-mail
Address To- The destination e-mail address (multiple values separated by ";")
Address To CC- Carbon copy destinations e-mail address (multiple values separated by ";")
Address To BCC- Blind carbon copy destinations e-mail address (multiple values separated by ";")
Address Reply-To -- Alternate Reply-To address (multiple values separated by ";")
Use Auth- Indicates if the SMTP server requires user authentication
Username- User login name
Password- User login password
Use no security features- Indicates that the connection to the SMTP server does not use any security protocol.
Use SSL- Indicates that the connection to the SMTP server must use the SSL protocol.
Use StartTLS- Indicates that the connection to the SMTP server should attempt to start the TLS protocol.
Enforce StartTLS- If the server does not start the TLS protocol the connection will be terminated.
Trust All Certificates- When selected it will accept all certificates independent of the CA.
Use local truststore- When selected it will only accept certificates that are locally trusted.
Local truststore- Path to file containing the trusted certificates. Relative paths are resolved against the current directory.
Failing that, against the directory containing the test script (JMX file).
Subject- The e-mail message subject.
Suppress Subject Header- If selected, the "Subject:" header is omitted from the mail that is sent. This is different from sending an empty "Subject:" header, though some e-mail clients may display it identically.
Include timestamp in subject- Includes the System.currentTimemilis() in the subject line.
Add Header- Additional headers can be defined using this button.
Message- The message body.
Send plain body (i.e. not multipart/mixed) - If selected, then send the body as a plain message, i.e. not multipart/mixed, if possible. If the message body is empty and there is a single file, then send the file contents as the message body. Note: If the message body is not empty, and there is at least one attached file, then the body is sent as multipart/mixed.
Attach files- Files to be attached to the message.
Send .eml - If set, the .eml file will be sent instead of the entries in the Subject, Message, and Attached files
Calculate message size- Calculates the message size and stores it in the sample result.
Enable debug logging? - If set, then the "mail.debug" property is set to "true"




Disclaimer: The article/post is posted with the purpose of sharing knowledge and information.
The article may contain references, extract or content from other informative sources.
Researched/Authored/Compiled by -
Ronak Shah
Practice Head - Software Testing (QA), CIGNEX Datamatics

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 10:44 PM.

Copyright BetaSoft Inc.