Explore your app. Build your testing knowledge.Explore your app.Meet State Explorer
All demosRegistration through to activation

Test email verification and activation

Create, configure and run registration tests using an email code or activation link. Follow both flows to an activated account with isolated example mail. Narrated in Dutch and English.

Test email verification and activation
Example workspace · sample data3:44
Transcript and chapters

We create a test that registers a new customer and uses the confirmation email to activate the account.

We choose Create Test and select the application. This opens agent chat with the right application context.

We describe the complete outcome: a fresh test address, registration, the verification code from the email, and a check that the account is active.

The test appears in the conversation. We inspect the saved steps before running it.

The test has nine steps. We prepare the address before registration, and read the email after the application has sent it.

This dropdown determines which address the test uses. For registration, we choose a new address for every run, so an existing account cannot block the next attempt.

This checkbox lets you keep the address for later sign-in tests. Those tests can use a saved address or an authentication role. For this registration test, we leave it unchecked.

The registration form receives the prepared test address through a variable. You do not need to hard-code a temporary address or copy it during the run.

The next email step looks for a six-digit code. The sender and subject narrow the search. Here, we allow up to ninety seconds for the email to arrive.

We save the change and reopen the test. The sender and wait time have been preserved, giving us a reusable test definition.

The next input step uses the variable for the received verification code. During execution, the actual value is read from the email and entered into the form.

The final step checks for the visible activation confirmation. Sending an email or entering a code does not yet prove that registration succeeded.

We run the saved test. The application sends a confirmation email, and the test reads the code, enters it, and checks that the account is activated.

The test has passed, and the application confirms that the account is active. The confirmation email has been used to complete registration.

Some applications send an activation link. We create a test for that flow too, with a fresh test address and the same final account check.

This email step looks for an activation or sign-in link. We specify the exact expected host, so a link to a different website will not be used.

The navigation step opens the link read from the email. The value is not hard-coded into the test: each run uses its own confirmation message.

We run this version as well. The received activation link is opened, and the final step confirms that the account is active.

We have created and run both tests: one with a code and one with a link. You can reuse them to check registration and email confirmation after changes to your application.

Read the email verification guide

What you’ll see

  • Create a registration test through agent chat and inspect its saved steps
  • Prepare a fresh test address and configure the expected sender, subject and wait time
  • Use the received code or activation link to complete registration
  • Verify the activated account and inspect the completed test result