You may want to send messages to a specific email account using SMTP. 

  1. Complete the WSDL test creation wizard as normal (see Creating Tests from a WSDL for details).
  2. Double-click the node for the test that will be using SMTP.
  3. In the right GUI panel, select the Transport tab and choose SMTP from the Transport menu.
  4. Configure the following options:
    • From: Specifies the email address from which the message is sent.
    • To: Specifies the email address to which the message is sent. For multiple receivers, separate each email address by a comma (for example, [email protected], [email protected]).
    • Subject: Specifies the subject of the email being sent.
    • SMTP Headers: You can configure SMTP headers by clicking Add and entering the Name and Value for the header.

Once the test is set up, the email is automatically sent every time the test is run.

It is also proven helpful for SOAtest to alert users via email of specific test failures by combining Test flow logic with a Messaging Client that uses SMTP. To do so:

  1. Create a Messaging Client by right-clicking on the Test Suite node and choosing Add Test > Standard Test > New Tool > Messaging Client.
  2. In the Messaging Client tool select SMTP as the transport and enter the receiver’s email information within the Transport Properties.
  3. In the text area of the Messaging Client enter a message (to alert the users).
  4. Configure the test flow logic by selecting the test suite node and clicking Test Flow Logic.
  5. Now create test dependency for the Messaging Client. (for example, run Messaging Client only when Test 2 succeeds)
  • No labels