Interacting with emails
Use DoesQA inboxes and Mail Test Steps to test registration, password reset, and other email journeys.
DoesQA includes test inboxes and Mail Test Steps for journeys that send email. Your Flow can enter a DoesQA address in the application, wait for the message, open it, and continue from a link or code inside the email.
For the full picture on inbox types, parallel isolation, and common journeys, see Email testing in DoesQA.
Use the Flow Builder for this walkthrough.
Choose the address and inbox
Prefer $testEmail with the Test Case inbox for journeys that send one email to one test. Use $accountEmail only when you deliberately want a shared mailbox.
$randomEmail is a generated address outside DoesQA mailboxes. Use a DoesQA Value when the Flow will wait for or open the message.
Build the Flow
Enter the DoesQA address
In the step that fills the application's email field, use $testEmail with Set value.

That sends the application to the Test Case inbox for this Run.
Trigger the email
Continue the journey until the application should send the message, such as submitting registration or requesting a password reset. For full walkthroughs, see Test registration and email verification and Test a forgotten-password flow.
Wait for the email
Add Wait for email from the Mail family.

Set Inbox to Test Case.
Leave Type as New when any new message is enough.
Or set Type to Custom, choose Subject or From, and match wording your application actually sends.
In advanced settings, check End Offset. The default is five minutes. Raise it when the application usually takes longer to send.
Open the email
Add Open email.

Set Inbox to Test Case.
Choose Latest for the newest matching message, or Custom with Subject or From when you need a specific one.
Continue from the message
After Open email, the message body is the active page. Use normal Action, Check, and Validator Test Steps to click a link, assert text, run accessibility checks on the message, or store a code into the Value Store.

When you are finished with the message, add Close inbox to return to the application window.

The finished Flow

Match the right message
Type: New
Waits for any email that arrives in the time window
Type: Custom
Waits until Subject, From, or another property matches your Value
End Offset
How long Wait for email keeps checking, up to twenty minutes
Start Offset
How far back the wait looks, such as from Test Start
Use Subject or From filters when the inbox may receive more than one message. Keep the comparison close to the real email text.
Related
Last updated