Announcement

Collapse
No announcement yet.

December 6 2018 class test-cases for E-MAIL field

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

  • andrewsch
    started a topic December 6 2018 class test-cases for E-MAIL field

    December 6 2018 class test-cases for E-MAIL field

    requirements: see RFC 5321 and RFC 5322.

    Data base: existing e-mail address "simple1@example.com".

    test-cases:
    1. input valid e-mail address "simple1@example.com".
    2. input " simple1@example.com" (SPACE as first character).
    3. input "simple1.example.com" (. instead @).
    4. input "simple1@examplecom" (without "." in domain).
    5. input "simple1@@@example.com" (more than one "@").
    6. input "simple1simple1simple1simple1simple1simple1simple1 simple1simple1s@example.com"
    (more than 64 characters in Local-part).
    7. input "simple..1@example.com" (double dot before @).
    8. input "simple1@example..com" (double dot after @).

  • elenarsta
    replied
    Requirements:
    1. The format of email addresses is local-part@domain where the local part may be up to 64 characters long and the domain may have a maximum of 255 characters
    2. The local-part of the email address may use any of these characters:
    - uppercase and lowercase Latin etters A to Z and a to z;
    - digits 0 to 9;
    - special characters _ and -
    - dot ., provided that it is not the first or last character unless quoted, and provided also that it does not appear consecutively unless quoted
    3. The domain part of the email address may use any of these 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.


    Test cases:
    1. Positive Local part allows 63 characters (aaaaaaaaaaaa..aaa@gmail.com is accepted)
    2. Negative Local part does not allow 64 characters (aaaaaaaaaaaa..aab@gmail.com is not accepted)
    3. Positive Local part allows 8 characters (aaaaaaaa@gmail.com is accepted)
    4. Positive Local part allows 1 character (a@gmail.com is accepted)
    5. Negative Local part does not allow 0 characters ( @gmail.com is not accepted)
    6. Positive Local part allows uppercase latin characters A to Z (QWERTY@gmail.com is accepted)
    7. Positive Local part allows lowercase latin characters a to z (qwerty@gmail.com is accepted)
    8. Positive Local part allows digits 0 to 9 (0123456789@gmail.com is accepted)
    9. Positive Local part allows _ (q_werty@gmail.com is accepted)
    10. Positive Local part allows - (q-werty@gmail.com is accepted)
    11. Positive Local part allows dot .,that it is not the first or last character (q.werty@gmail.com is accepted)
    12. Positive Local part allows dot ., that it is first character when quoted (".qwerty"@gmail.com is accepted)
    13. Positive Local part allows dot ., that it is last character when quoted ("qwerty."@gmail.com is accepted)
    14. Positive Local part allows dot ., that appears consecutively when quoted ("q..werty"@gmail.com is accepted)
    15. Negative Local part does not allow dot ., provided that it is the first character (.qwerty@gmail.com is not accepted)
    16. Negative Local part does not allow dot ., provided that it is the last character (qwerty.@gmail.com is not accepted)
    17. Negative Local part does not allow dot ., that appears consecutively (q..werty@gmail.com is not accepted)
    18. Positive Domain part allows 255 characters (qwerty@aaa..aaaaaa.com is accepted)
    19. Positive Domain part allows 8 characters (qwerty@aaaaaaaa.com is accepted)
    20. Negative Domain part does not allow 256 characters (qwerty@aaa..aaaaaab.com is not accepted)
    21. Positive Domain part allows 1 character (qwerty@a.com is accepted)
    22. Negative Domain part does not allow 0 characters (qwerty@.com is not accepted)
    23. Positive Domain part allows uppercase latin characters A to Z (qwerty@GMAIL.com is accepted)
    24. Positive Domain part allows lowercase latin characters a to z (qwerty@gmail.com is accepted)
    25. Negative Domain part does not allow digits 0 to 9 ONLY (qwerty@0123456789.com is not accepted)
    26. Positive Domain part allows hyphen -, that it is not the first or last character (qwerty@g-mail.com is accepted)
    27. Negative Domain part does not allow hyphen -, that it is the first character (qwerty@-gmail.com is not accepted)
    28. Negative Domain part does not allow hyphen -, that it is the last character (qwerty@gmail-.com is not accepted)
    Last edited by elenarsta; 12-27-2018, 06:47 PM.

    Leave a comment:


  • Galyna Gnatyuk
    replied

    Email Address Test Cases

    Test Data:
    simple@example.com


    Requirement:
    1.Local Part up to 64 characters; uppercase and lowercase Latin Letters A to Z and a to z; digits 0 to 9; special characters; dot can not be first or last character; space allowed only inside a quoted string.
    2.Domain maximum of 255 characters; must match the requirements for a hostname; DNS label limited up to 63 characters with LDH rule: uppercase and lowercase Lattin letters; digits 0 to 9; hyphen "-" can not be first or last character.
    3.Only one @ is allowed outside quotation marks

    ID
    1. Valid Local Par/Valid Domain
    2. Valid LP/no @ character/Valid Domain
    3. Valid Local Part/Invalid Domain: 260 characters
    4. Local Part 65 characters/Valid Domain
    5. Valid Local Part/no "@" character/Valid Domain
    6. Valid Local Part/three "@" character/Valid Domain more than one "@" not allowed
    7. Double dot before "@", not quoted
    8. Double dot after "@", not quoted

    Leave a comment:


  • Zarina Lee
    replied
    Requirements:
    1. Syntax: The format of email addresses is local-part@domain where the local part may be up to 64 characters long and the domain may have a maximum of 255 characters.
    2.Local-part accepts uppercase and lowercase Latin letters A to Z and a to z;
    3.Local-part accepts digits 0 to 9;
    4.Local-part accepts special characters !#$%&'*+-/=?^_`{|}~;
    5.Local-part accepts 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);
    6.Local-part accepts space and "(),:;<>@[\] 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);
    7.Local-part accepts 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.
    8. Domain: The domain name part of an email address has to conform to strict guidelines: it must match the requirements for a hostname, a list of dot-separated DNS labels, each label being limited to a length of 63 characters.
    9. Domain part accepts uppercase and lowercase Latin letters A to Z and a to z;
    10.Domain part accepts digits 0 to 9, provided that top-level domain names are not all-numeric;
    11.Domain part accepts hyphen -, provided that it is not the first or last character. This rule is known as the LDH rule (letters, digits, hyphen).
    12.Domain: In addition, the domain may be an IP address literal, surrounded by square brackets [], such as jsmith@[192.168.2.1] or jsmith@[IPv6:2001:db8::1], although this is rarely seen except in email spam. Internationalized domain names (which are encoded to comply with the requirements for a hostname) allow for presentation of non-ASCII domains. In mail systems compliant with RFC 6531 and RFC 6532 an email address may be encoded as UTF-8, both a local-part as well as a domain name.


    Test cases:
    1. Local part 64 characters aaaaaaaaaabbbbbbbbbbccccccccccdddddd...gg@theinfo.net accepted

    2. Domain part 255 characters abcd123@thelongestdomainnameinthewor...andmore.andyou
    canaddsomemoretothataswell.andabitmore.andwhynotgo onabit.aboutwatneysredbarrel. accepted
    andalizardinthebleedingbidet.andnothingtoeatexcept .britishairwayssandwiches.
    etcetcetcandin.theinfo.net


    3. Local part/ uppercase letters AAA@theinfo.net accepted

    4. Local part/ lowercase letters aaa@theinfo.net accepted

    5. Local part/ digits 123@theinfo.net accepted

    6. Local part/ sp characters real!#$%&'*+-/=?^_`{|}~one@theinfo.net accepted

    7. Local part/ dot . real.one@theinfo.net accepted

    8. Local part/space "real one"@theinfo.net accepted

    9. Local part/(),:;<>@[\]characters "real(),:;<>@[\]one"@theinfo.net accepted

    10.Local pert/comments real.one(comment)@theinfo.net accepted

    11.Domain part/label length (63ch) aaa@dnslabelseachlabelseachlabelbein...characters.net accepted

    12.Domain part/Uppercase letters aaa@Theinfo.net accepted

    13.Domain part/digits aaa@Th3inf0.net accepted

    14.Domain part/hypen aaa@the-info.net accepted

    15.Domain part/IP address aaa@[IPv6:2001:db8::1] accepted

    16.Local part 66 characters aaaaaaaaaabbbbbbbbbbccccccccccdddddd...gg@theinfo.net Error: Invalid email format

    17.Domain part 256 characters abcd123@thelongestdomainnameinthewor...andmore.andyou
    canaddsomemoretothataswell.andabitmore.andwhynotgo onabit.aboutwatneysredbarrel. Error: Invalid email format
    andalizardinthebleedingbidet.andnothingtoeatexcept .britishairwayssandwiches.
    etcetcetcandin.theinfoo.net

    18.Local part/ dot ., real.,one@theinfo.net Error: Invalid email format

    19.Local part/space real one@theinfo.net Error: Invalid email format

    20. Local part/(),:;<>@[\]characters (),:;<>@[\]@theinfo.net Error: Invalid email format

    21.Domain part/label length (64ch) aaa@dnsalabelseachlabelseachlabelbei...characters.net Error: Invalid email format

    22.Domain part/digits aaa@1235.net Error: Invalid email format

    23.Domain part/hypen aaa@-theinfo.net Error: Invalid email format

    24.Domain part/IP address aaa@[IPv6:2001:db8: Error: Invalid email format

    25.Local part/ dot . real..one@theinfo.net Error: Invalid email format

    26.Local part/ 1 letter e@theinfo.net accepted

    27.Domain part/no @ character aaainfo.net Error: Invalid email format

    28.Local part/2 @ characters a@aa@info.net Error: Invalid email format

    29.Local part/ quotes just"not"right@info.net Error: Invalid email format

    30.Domain part/ double dot after @ real.one@info..net Error: Invalid email format

    31. Local prt/double dot before @ real..one@info.net Error: Invalid email format










    Leave a comment:


  • KaterynaDominicis
    replied

    Test Case Email Field

    Requirements:
    - Local-part: up to 64 characters; upercase A to Z; lowercase a to z; digits 0 to 9; special characters;
    dot "." (not allowed first or last unless marked with quoted string /not allowed if repeated unless marked with quoted string);
    - symbol @ (allowed one time);
    - Domain part: up to 255 characters; upercase A to Z; lowercase 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);
    dot "." separete between labels.


    ================================================== ================================================== ===============
    ID #1. Type testcase@example.com Accept - Valid email address
    ID #2. Type test.case@example.com Accept - Valid email address
    ID #3. Type 65 characters in local-part Didn't accept - Invalid email address (more then 64 characters)
    123456789012345678901234567890123456...45@example. com
    ID #4. Type test?ca?se@example.com Accept - Valid email address
    ID #5. Type .testcase@example.com Didn't accept - Invalid email address (dot 1st character without quotes)
    ID #6. Type ".testcase"@example.com Accept - Valid email address
    ID #7. Type test..case@example.com Didn't accept - Invalid email address (dot repeats without quotes)
    ID #8. Type "test..case"@example.com Accept - Valid email address
    ID #9. Type test.caseexample.com Didn't accept - Invalid email address (missing symbol @)
    ID #10. Type test@case@example.com Didn't accept - Invalid email address (symbol @ 2 times - allowed only ones)
    ID #11. Type test.case@Example.com Accept - Valid email address
    ID #12. Type test.case@example1.com Accept - Valid email address
    ID #13. Type test.case@12345.com Didn't accept - Invalid email address (can't be all digits)
    ID #14. Type test.case@example-1.com Accept - Valid email address
    ID #15. Type test.case@-example1.com Didn't accept - Invalid email address (hyphen "-" can't be first character)
    ID #16. Type test.case@examplecom Didn't accept - Invalid email address (no dot "." between labels "example" & "com").
    Last edited by KaterynaDominicis; 12-27-2018, 12:21 PM.

    Leave a comment:


  • Elenwojt
    replied
    [TABLE="border: 0, cellpadding: 0, cellspacing: 0, width: 686"]
    [TR]
    [TD="class: xl65, width: 23"]ID[/TD]
    [TD="class: xl66, width: 518"]Description[/TD]
    [TD="class: xl66, width: 268"]instruction[/TD]
    [TD="class: xl67, width: 105"]expected result[/TD]
    [/TR]
    [TR]
    [TD="class: xl69, align: right"]1[/TD]
    [TD="class: xl68"]local part is not longer than 64 characters [/TD]
    [TD="class: xl70"]123..64@domain[/TD]
    [TD="class: xl71"]accepted[/TD]
    [/TR]
    [TR]
    [TD="class: xl69, align: right"]2[/TD]
    [TD="class: xl68"]domain may have a maximum of 255 characters [/TD]
    [TD="class: xl70"][EMAIL="local-part@123%C2%85255"][COLOR=windowtext]local-part@123

    Leave a comment:

Working...
X