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