The most comprehensive email testing method in history

foreword

In our future testing work, we may more or less test functions related to email addresses, whether it is login, registration, or binding email addresses. So first of all, we have to understand the composition of the email address

The composition of the email address is divided into 3 parts, namely: email name @ domain name

For example: [email protected]
For example: [email protected]
For example: [email protected]
. . . . . .
Then, when we go to test, we can test separately from these three parts:

The email
address is still in use now, because each company has different restrictions. So that it is not very good to summarize.

Therefore, it is necessary to analyze the specific situation

The general requirements are as follows:

Length: 5~50

Type: letters, numbers (some mailbox names do not allow special characters, but there is no limit here)

Business rules: generally not allowed to start or end with "_ (underscore)"

Then the test point analysis is as follows:
▲ Length:
Valid: 5, 6, 49, 50
Invalid: 4, 51

▲ Type:
valid: pure letters, pure numbers, numbers + letters
invalid: pure Chinese, pure symbols, Chinese + symbols

▲ Constraints:
a, start with _
b, end with _
c, empty, do not fill in
d, enter spaces before, in, and after

@
▲ Requirements:

Must have @ symbol

▲ Test point:
valid: the email address contains @
invalid: the email address contains @

Domain Name
▲ Requirements:

Length: 2~20

Type: letters, numbers (some domain names do not allow the use of special characters, but there is no limit here)

▲ Business rules:

a. It is generally not allowed to start or end with "_ (underscore)"

b. Must contain ".(dot)"

c. Must contain .com or .cn or .http://com.cn

▲ Test point:

Length:
Valid: 2, 3, 19, 20
Invalid: 1, 21

Type:
Valid: pure letters, numbers + letters
Invalid: Chinese, symbols, numbers

Constraints:
valid:
a, end with .com
b, end with .cn
c, end with .http://com.cn

Invalid:
a, start with _
b, end with _
c, empty, do not fill in
d, enter spaces before, in, and after
e, do not contain ". (dot)", for example 3343787213@qqcom
f, between @ and . No other data, for example: [email protected]
g, @ position is incorrect, for example: 3343787213.@qqcom, 3343787213qq.com@, etc.
h, @ is repeated, for example: 3343787213@@http://qq.com
i, ". (dot)", repeat, for example: [email protected]://qq.com
j, wrong domain name, for example: [email protected], 3343787213@qq, etc.


              [The following is the most complete software test engineer learning knowledge architecture system diagram in 2023 that I compiled]


1. From entry to mastery of Python programming

2. Interface automation project actual combat

3. Actual Combat of Web Automation Project


4. Actual Combat of App Automation Project

5. Resume of first-tier manufacturers


6. Test and develop DevOps system

7. Commonly used automated testing tools


Eight, JMeter performance test

9. Summary (little surprise at the end)

life is long so add oil. Every effort will not be let down, as long as you persevere, there will be rewards in the end. Cherish your time and pursue your dreams. Don't forget the original intention, forge ahead. Your future is in your hands!

Life is short, time is precious, we cannot predict what will happen in the future, but we can grasp the present moment. Cherish every day and work hard to make yourself stronger and better. Firm belief, persistent pursuit, success will eventually belong to you!

Only by constantly challenging yourself can you constantly surpass yourself. Persist in pursuing your dreams and move forward bravely, and you will find that the process of struggle is so beautiful and worthwhile. Believe in yourself, you can do it!

рекомендация

отblog.csdn.net/nhb687096/article/details/131937810