Case Study: User Sign up Automated Test in Selenium WebDriver
Using temporary mail services to support a typical user signup test scenario
7 min readAug 29, 2022
A repost of my daughter’s article with permission. I added a few notes. This is also included in my “How to in Selenium WebDriver” series.
Table of Contents:
· Test Design
· Email checking with MailCatcher
· Email checking with TempMailO
∘ Complete Test Script (TempMailo)
· Another Temporary Free Email Provider, Temp-Mail
· Review By Zhimin
This article will show how to implement user-sign-up automated tests (in Selenium) using two Email Checking mechanisms:
- MailCatcher: fake SMTP server
- TempMailO: an online temporary email provider
Test Design
- Create a new user via the sign up form
- Try to login with the new account, expect “the user not activated yet” message
- Wait for the activation email with the account activation link
- Click the activation link in the email
- Log in as the new user successfully
The key to this test is to receive and read the account activation email. But how do we handle emails as part of automated tests, given…