Email Testing Feature
  • 17 May 2023
  • 4 Minutes to read
  • Contributors
  • Dark
    Light

Email Testing Feature

  • Dark
    Light

Article Summary

Introduction

This document explains the Email Testing feature and how to create and run tests using email addresses.

About the Email Testing feature

The Email Testing feature allows you to create email addresses to use in tests, and to create and run tests using email addresses.
There are two types of email addresses:

  • Random email address - a different address is issued each time the test is run.
  • Fixed email address - the same address is used each time a test is run.

You can use these email addresses to create tests that check the contents of emails and tests that use a link containted in an email.

A random email address is useful for tests where you need to use a different email address each time, such as a user signup flow that requires email authentication.
A fixed email address is useful when you need to use the same email address, such as when testing contact forms.

How to create and run a test using a random email address

Create a scenario

  1. You can create a random email address while creating or editing a scenario. First, start recording on the Scenario Details Page.
  2. In the Recording window, go to the page where you want to enter the email address.
  3. Click the [Email] button in the Autify Recorder.
  4. Click [Create Random Email Address].
  5. An email address will be generated. Click the [Copy] button to copy the email address to your clipboard.
  6. Paste the email address into the page and perform the action that sends the email.
  7. After the email is sent, select the email address in the Autify Recorder.
  8. A list of received messages will appear. Select the message you want to check.
  9. The content of the email will be displayed in the Recording window. You can create assertions for the email content and record actions such as clicks.
  10. When you are finished recording the test, click [Save].

  You have now created a scenario using a random email address.

Running the test

You can run the test from the Scenario Details Page or the Test Plan Details Page, just as you would for a typical Scenario.
The value of the email address will change each time you run the test.

Test Results

You can access your email inbox from the Test Results Page.
If you want to check the email directly, you can do so by clicking "check mail inbox".
スクリーンショット 2023-05-07 19.54.22.png

How to create and run a test using a fixed email address

Create an email address

  1. Go to the Workspace Setting Page. Click [Settings] on the sidebar.
  2. Select the workspace from the menu.
  3. In the Email Address section, click [Create].
  4. Enter a name for the email address, and then click [Create].

You have created a fixed email address.

We recommend that you create an email address for each purpose and name it so that it is easily identifiable. You can create as many email addresses as you like.
You can also use the same email address in multiple scenarios.

Create a scenario

  1. Start recording from the Scenario Details Page.
  2. In the Recording window, navigate to the page where you want to enter the email address.
  3. Click the [Email] button in the Autify Recorder.
  4. A list of email addresses defined in the Workspace appears.
    Select the email address you want to use in the test.
  5. Click the [Copy] button to copy the email address to the clipboard.
  6. Paste the email address into the page and perform the action that sends the email.
  7. After the email is sent, click the [Refresh] button on the Autify Recorder.
  8. Click on the email you want to check.
  9. The content of the email will appear in the Recording window. You can create assertions for the email content and record actions such as clicks.
  10. When you are finished recording the test content, click the [Save] button.

You have now created a scenario.

Running the test

You can run the test from the Scenario Details Page or the Test Plan Details Page, just as you would for a typical scenario.

Test Results

You can access the mail inbox on the Test Results page.
Please check the inbox if you would like to view the email directly.
スクリーンショット 2023-05-07 19.54.22.png

Notes

The Email Testing feature has the following specifications and limitations. Please keep them in mind when using this feature:

Emails that can be verified in a scenario

Only emails received within the last 30 minutes can be verified in a scenario.
If you try to open an email that is older than that, you will get an "Email not found" message.

Specifications for searching for emails to be verified

In the Email Testing feature, Autify will open and verify the email that has a subject line most similar to the one that was recorded and meets the following conditions:

  • Received within 30 minutes
  • Unopened
    (The same specifications apply to replays)

If no email meets these conditions when the test is run, Autify will wait for up to 2 minutes. If the email is still not found, you will get an "Email not found" message.

If no email is received

If an email should have been sent to a random/fixed email address, but you cannot confirm that the email was received, please do the following:

  • Check if there is a sending error on the server sending the email.
  • Check if the system under test has a feature that prevents duplicate emails from being sent. If so, check to see if that's what's preventing the email from being sent.

Emails that Autify cannot receive

Emails sent via the following methods will not be received:

  • Mailing list
  • Forwarding

Please contact support if the email isn't received even though it wasn't sent using one of these methods.


Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.