Announcement

Collapse
No announcement yet.

Test cases for Email field. Class April 04, 2019

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Test cases for Email field. Class April 04, 2019

    Requirements:
    #1.Local-part:
    -May be up to 64 characters
    -Uppercase and lowercase Latin letters A to Z and a to z
    -Digits 0 to 9
    -Printable characters !#$%&'*+-/=?^_`{|}~
    -Dot ., provided that it is not the first or last character unless quoted, and provided also that it does not appear consecutively unless quoted (e.g. John..Doe@example.com is not allowed but "John..Doe"@example.com is allowed)
    -Space and special characters "(),:;<>@[\] are allowed with restrictions (they are only allowed inside a quoted string, as described in the paragraph below, and in addition, a backslash or double-quote must be preceded by a backslash)
    -Comments are allowed with parentheses at either end of the local-part; e.g. john.smith(comment)@example.com and (comment)john.smith@example.com are both equivalent to john.smith@example.com
    #2.Domain:
    -Maximum of 255 characters
    -Uppercase and lowercase Latin letters A to Z and a to z
    -Digits 0 to 9, provided that top-level domain names are not all-numeric
    -Hyphen -, provided that it is not the first or last character
    -Comments are allowed in the domain as well as in the local-part; for example, john.smith@(comment)example.com and john.smith@example.com(comment) are equivalent to john.smith@example.com

    Test data:
    oksana123@gmail.com

    Test cases:
    #1.Local-part/ up to 64 characters--oksana12333333...333@gmail.com--accepted
    #2.Domain/ maximum 255 characters -- oksana123@gmailllll....llll.com --accepted
    #3.Local-part/uppercase Latin letters -- Oksana123@gmail.com--accepted
    #4.Local-part/lowercase Latin letters -- oksana123@gmail.com--accepted
    #5.Local-part/Digits 0 to 9 --123@gmail.com--accepted
    #6.Local-part/Printable characters !#$%&'*+-/=?^_`{|}~ -- oksana123!#$%&'*+-/=?^_`{|}~@gmail.com--accepted
    #7.Local-part/Dot . -- oksana.123@gmail.com--accepted
    #8.Local-part/space--oksana 123@gmail.com--accepted
    #9.Local-part/special characters "(),:;<>@[\] --oksana"(),:;<>@[\]123@gmail.com--accepted
    #10.Local-part/comments are allowed with parentheses at either end of the local-part--oksana123(comment)@gmail.com--accepted
    #11.Domain/Uppercase and lowercase Latin letters A to Z and a to z --oksana123@Gmail.com--accepted
    #12.Domain/lowercase Latin letters --oksana123@gmail.com--accepted
    #13.Domain/digits 0 to 9 --oksana123@gmail1.com--accepted
    #14.Domain/Hyphen -, provided that it is not the first or last character --oksana123@g-mail.com--accepted
    #15.Domain/Comments are allowed in the domain as well as in the local-part --oksana123@(comment)gmail.com--accepted
    #16.Local-part/65 characters --oksana123333333333333333...3333@gmail.com--"Invalid email format" error
    #17.Domain/256 characters --oksana123oksana123@gmail...kkkkkkkkkk.com--"Invalid email format" error
    #18.Local-part/Dot .--oksana123.@gmail.com--"Invalid email format" error
    #19.Local-part/Space and special characters "(),:;<>@[\] are allowed with restrictions --(),:;<>@[\]@gmail.com--"Invalid email format" error
    #20.Domain/Digits 0 to 9, top-level domain name is all-numeric --oksana123@12345.com--"Invalid email format" error
    #21.Domain/Hyphen "-" --provided that it is first character --oksana123@-gmail.com--"Invalid email format" error

Working...
X