How to Write Test Cases For Email Field and Email Validation

.
Sample Test Cases For Email Field

Hello Folks,

In this Tutorial on email field test cases, we are going to learn the positive Test Cases, Negative Test cases, and UI Test cases for email address field and we also learn the valid format and Invalid Format of Email.

 
How to Write Email Validation Test Cases?

Here!!! Important sample email ID field test cases are given...

UI Test Cases
  • Verify the webpage has the email ID field. 
  • Verify whether the label text of the email field is shown as per requirement or not. 
  • Verify the label text is aligned with the email address field. 
  • Verify whether the placeholder text is added or not.
  • Check Whether the Type Text is Properly Visible to the user or not.
  • Check whether the colour, Size Font Family Font Size and other Properties of email ID fields are as per requirement.


Functional Test Case

  • Check that the user can click on the email address field.
  • Check whether the user can type in the email address field or not.
  • Check that the added email ID is properly visible to the user or not.
  • Verify whether the alert message showing or not when the user adds the email ID in an invalid format.
  • Verify that the alert message is as per requirement or not.


Positive Test Cases for the Email field

  • Verify the field by entering a valid email address (eg. info@upcs.in).
  • Verify the field With Email field contains a dot in the address (eg. info@upcs.in).
  • Verify That the Email has a dot with the subdomain (eg. info@upcs.in).
  • Verify the email field With the Plus sign is considered a valid character.
  • Verify That the Square bracket around the IP address is considered valid.
  • Verify the email field With Quotes around the email is considered valid.
  • Verify Email field With Digits in the address is valid.
  • Verify that the Email Field with the Digits in the address is valid.
  • Verify the email ID filed With Underscore in the address field is valid.
  • Verify the email filed With .name is a valid Top Level Domain name.
  • Verify With Dot in Top Level Domain name also considered valid (use co.jp as an example here).
  • Verify With Dash in the address field is valid.
  • Negative Test Cases for the email ID field.
  • Verify the email ID filed With the Missing @ sign and domain.
  • Verify the email text box With Garbage.
  • Verify the email filed With the Missing username.
  • Verify the email address field With Encoded HTML within the email is invalid.
  • Verify the email ID field With Missing @.
  • Verify the email filed With the Two @ sign.
  • Verify the email text box With the Leading dot in the address is not allowed.
  • Verify the email filed With a Trailing dot in the address is not allowed.
  • Verify the email address field With Multiple dots.
  • Verify the email address filed With Unicode char as the address.
  • Verify the email address text box With Text the following email is not allowed.
  • Verify the email ID text box  With the Missing top-level domain (.com/.net/.org/etc.)
  • Verify the email ID filed With .web is not a valid top-level domain.
  • Verify the email ID text box With an Invalid IP format.
  • Verify the email ID text box With Multiple dots in the domain portion is invalid.

Valid Email ID Example 
A list of valid email addresses is given below.

  • email@example.com
  • firstname.lastname@example.com
  • email@subdomain.example.com
  • firstname+lastname@example.com
  • email@123.123.123.123
  • email@[123.123.123.123]
  • "email"@example.com
  • 1234567890@example.com
  • email@example-one.com
  • _______@example.com
  • email@example.name
  • email@example.museum
  • email@example.co.jp
  • firstname-lastname@example.com
  • List of Strange Valid Email Addresses
  • much.” more\ unusual”@example.com
  • very.unusual.”@”.unusual.com@example.com
  • very.”(),:;<>[]”.VERY.”very@\\ "very”.unusual@strange.example.com


 Invalid Email ID Example
A list of all invalid email address formats is given below 

  • plain address
  • #@%^%#$@#$@#.com
  • @example.com
  • Joe Smith <email@example.com>
  • email.example.com
  • email@example@example.com
  • .email@example.com
  • email.@example.com
  • email..email@example.com
  • あいうえお@example.com
  • email@example.com (Joe Smith)
  • email@example
  • email@-example.com
  • email@example.web
  • email@111.222.333.44444
  • email@example..com
  • Abc..123@example.com
  • List of Strange Invalid Email Addresses
  • ”(),:;<>[\]@example.com
  • just” not”right@example.com
  • this\ is"really" not\allowed@example.com


Hope !! The Above test cases for the email ID are helpful for you ...

Team,
QA acharya

Share Your Knowledge With Us 
Mail your content - qaacharya.in@gmail.com

Test Cases For Email ID Field

Post a Comment

7 Comments

  1. Is there Valid regex available for those invalid email id list

    ReplyDelete
  2. This is very helpful for software tester fresher like me. Thanks everyone who are behind this wonderful website. All the best and wishes. Keep it up. You are doing a great job.

    ReplyDelete
    Replies
    1. Hey ,
      Thank you for your valuable comment.

      Team ,
      QA acharya

      Delete
  3. As a biginner it was very helpful for me to learn thank you

    ReplyDelete
  4. Hey ,
    Thank you for your valuable comment.

    Team ,
    QA acharya

    ReplyDelete
  5. Why i can't able to read whole course?

    ReplyDelete