Email testing

Prev Next

This feature is only available in remote workspaces.

Overview

The email testing feature allows you to create and manage email addresses for your tests.

There are two types of email addresses available:

  • [Random Emails]: Generates a new, random email address for each test run.

  • [Fixed email]: Always uses the same, persistent email address.

Creating a Scenario for Email Testing

Follow these steps to record a scenario that validates email reception:

  1. In the recorder, proceed to the screen in your application where you need to enter an email address.

  2. On the recording bar, click the [Email] button.

  3. Select  [Fixed email] tab or [Random email], depending on your needs.

  4. If you want to create a new email address, click the [+ Create email] button.

  5. Enter an [Email name]. We recommend naming it based on its purpose (e.g., "New User Registration Test").

  6. Click the copy icon next to the desired email address and paste it into the email field in your application. A "Input text" step using this address will be added automatically.

  7. Continue recording the steps in your application to trigger sending the email.

  8. On the recording bar, click [View inbox] next to the email address you used.

  9. Click the subject line of the email you received. An "Open email by subject" step will be added automatically.

    If there is a delay in receiving the email, wait a moment and click the "Refresh" button in the inbox view to check for new mail.

  10. The email content will open in a new tab. You can now record assertions or other actions (like clicks) on the received email content.

Using Email Address as a Step’s input value in a Scenario

You can use registered email addresses as input values for steps in a Scenario. Additionally, you can change the email address used in [Input text] steps and [Open email] steps (which were added during the email test recording) to a different registered email address.

How Email Search Works

The email testing feature searches for received emails using the subject line.

  • During recording, the "Open email" step is configured with an "Exact match" condition for the subject.

  • You can change the search criteria by editing the [Match type] setting in the "Open email" step.

The search targets unread emails only. If no email matching the criteria exists when the step runs, Autify Nexus will wait for up to 5 minutes.

You can change the wait time from 1 to 30 minutes in the [Timeout (seconds)] field of the [Open email by subject] step.

If the email is still not found, the step will fail with an "Expected email was not received" error.

Notes

  • The email addresses used in the Email Testing feature are automatically generated; you cannot specify them.

    • The created email address consists of {unique ID}@{organization ID}.{host} (e.g., xxxx-yyyy@zzzz.jp.cloud.autify.com).

  • You can change the nickname or delete an email address, but this will affect other users as these resources are shared within the workspace.

  • Since the value of a [Random email] changes every time a scenario runs, you cannot view the inbox except during recording.

  • An error will be displayed for steps that use a deleted email address