Case Study: User Reset Password via Email in Selenium WebDriver

A typical user reset password test scenario by email.

Zhimin Zhan

--

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.

Checking emails in automated tests is quite common. Typical cases are user-sign-up (confirm email address) and user-reset password (get password reset link). In a previous article, I went through how to use MailCatcher or a temporary online mail service to complete the user sign up test case. This article will cover the user-reset password test case by clicking the reset link in the reset email.

The sample site I will use is WhenWise (https://whenwise.agileway.net/).

Table of Contents:
· With MailCatcher
· TempMailo
Complete test script
· Zhimin’s notes

Using a newly registered user for this test case. If using an existing user, changing its password might affect other testing activities.

If do use an existing user, learn more on how to clean up after reset password tests in this article.

--

--