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 ...

Get SoapUI Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.