Testing Resources Logo

Email Testing - Key Test Cases for Validating Email Functionality in Web Applications

Explore key test cases for email address validation in web applications. This guide covers practical tests to verify proper email formats, including special characters, domain rules, Unicode support, and common invalid scenarios. Ensure your application correctly accepts valid emails and rejects invalid ones with these essential test cases.

NrTest Idea
1Plain text is not valid: email
2An email with printable characters in the local-part is valid: !#$%&'*+-/=?^_`.{|}~@example.com
3An email with special characters in the local-part is not valid: "(),:;<>@[\]@example.com
4An email with special characters in the local-part is valid if they are inside a quoted string: "(),:;<>@[\]"@example.com
5An email with consecutive dots in the local-part is invalid: test..mail@example.com
6An email with consecutive dots in the local-part is valid if they are inside quotes: "test..mail"@example.com
7Email without local-part is invalid: @domain.com
8An email with leading dot in the local-part is invalid: .test@domain.com
9An email with trailing dot in the local-part is invalid: test.@domain.com
10An email with local-part longer than 64 characters is invalid: 1234567890123456789012345678901234567890123456789012345678901234+x@example.com
11Email without @ sign is invalid: test.domain.com
12Email without a domain is invalid: test@
13Email without a top-level domain is invalid: test@domain
14An email with a dash in the domain is valid: test@dash-domain.com
15An email with a leading dash in the domain is invalid: test@-domain.com
16An email with trailing dash in the domain is invalid: test@domain-.com
17An email with an invalid top-level domain is invalid: test@domain.web
18An email with IP as a domain is valid: test@192.168.1.1
19An email with square brackets around the IP address is valid: test@[192.168.1.1]
20Email in Latin alphabet with diacritics is valid: Pelé@example.com
21Email in the Greek alphabet is valid: δοκιμή@παράδειγμα.δοκιμή
22Email in traditional Chinese characters is valid: 我買@屋企.香港
23Email in Cyrillic characters is valid: медведь@с-балалайкой.рф
24Email in Japanese characters is valid: 二ノ宮@黒川.日本