- Print
- DarkLight
Introduction
This document explains the email testing feature and how to create and execute scenarios using email addresses.
The Email Testing feature
With the email testing feature, you can create test email addresses and create/execute scenarios using those email addresses.
How to create and run a scenario using a fixed email address
Create an email address
Click [Settings] on the sidebar.
Select a workspace from the menu to open the workspace's settings page.
In the Email Address section, click Add.
Enter a name for your email address, then click Save.
You have now created a fixed email address.
There is no limit to the number of email addresses you can create, so we recommend that you create an email address for each purpose and name it in a way that is easy to identify.
Alternatively, you can use the same email address in multiple Scenarios.
Create a Scenario
Start recording from the Scenario Details Page.
In the recording window, navigate to the page where you want to enter an email address.
Click the Actions button in the Recording Area, then click [Email]
A list of email addresses defined in the workspace will be displayed. Click the [Copy] button to copy your email address to the clipboard.
Paste the email address on the page and perform the operation that sends the email.
After sending the e-mail, click [E-mail] again from the Actions button menu.
Click on the [>] mark on the right-side of the email address that you entered.
Click the email that you want to check.
The content of the email will be displayed in the recording window. You can create assertions for the email content and record operations such as clicks.
When you have finished recording the test content, click the [Save] button.
You have now created a scenario using a fixed email address.
Run the test
As with any normal scenario, email test scenarios can be run from the Test Plan Details page.
Checking your email inbox
If you want to check your email directly, you can open your email inbox by clicking on any created email address in the workspace's settings page.
Notes
Email testing has the following specifications and limitations. Please keep these points in mind when using this feature.
Emails that can be verified within a scenario
Only emails that have been received within the last 30 minutes can be verified in a scenario. If you try to open an email that is older than that, the message "Email not found" will be displayed.
Specification for searching emails to verify
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
Note that the same specification applies to replays as well.
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 fixed email address, but you cannot confirm that the email was received, please do the following:
- Check for send errors on the mail server.
- 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.
Mail that cannot be received by Autify
Emails sent via the following methods will not be received:
- Mailing list
- Forwarding
Please contact support if an email isn't received and it wasn't sent using one of those methods.