Sending e-mails with the Email TestStep plugin
This recipe is a quick follow-on example to show how to use the Email TestStep plugin to send an e-mail.
Getting ready
If you've got access to an SMTP
mail server, all you'll need for this recipe is SoapUI and the Email TestStep plugin. Otherwise, you can use a dummy SMTP
server. A nice Java-based one is FakeSMTP
(fakeSMTP-1.12.jar
in the chapter 10
samples):
Download FakeSMTP from https://nilhcem.github.io/FakeSMTP/, and run with java –jar fakeSMTP-1.12.jar
.
Tip
Linux/Mac OS
You will need to start this with the root
permissions if you want to bind to port 25, for example, sudo java –jar fakeSMTP-1.12.jar.
How to do it...
First, we'll add a new Email
TestStep to a TestCase and configure it to send a test email to a FakeSMTP
server that is running locally. Then, run TestCase
and see the e-mail received. Perform the following steps:
Either grab
EmailTestStepProject
from thechapter 10
samples or follow the steps from the previous recipe to get your...