• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

SoftwareTestingo - Interview Questions, Tutorial & Test Cases Template Examples

SoftwareTestingo - Interview Questions, Tutorial & Test Cases Template Examples

  • Home
  • Interview Questions
  • Java
  • Java Programs
  • Selenium
  • Selenium Programs
  • Manual Testing
  • Test Cases
  • Difference
  • Tools
  • SQL
  • Contact Us
  • Search
SoftwareTestingo » Manual Testing » Test Cases Example » Test Cases For Email Field

Test Cases For Email Field

Last Updated on: February 20, 2022 By Softwaretestingo Editorial Board

What We Are Learn On This Post

  • What Is Email Field?
  • Test Cases For Email Field Validation
  • Valid Email ID Examples
  • Invalid Test Cases Of Email ID

In this post, we are going to discuss the test cases for the Email field. Validating the Email id field is the most important thing in web testing and development too. If your website provides a mail sharing facility or something regarding email id then one can inject it through email and can harm your database. To reduce that risk email validation should be there.

The email field is the part of the email where we write a message to someone. It usually has the name of sender and receiver as well as subject. We can also write in any other message or image into this field.

Post On:Test Case For Email Field
Post Type:Test Case
Published On:www.softwaretestingo.com
Applicable For:Freshers & Experience
Social GroupJoin SoftwareTestingo In Telegram

Email fields are generally located at the end of the email, and some people like to put messages in there because it saves space on their computer screen, or because they want to keep their inbox tidy.

What Is Email Field?

Email field is the area on a webpage where you can insert an email address or an email field. This may include forms, which are used to collect information about a person or areas for adding comments. Here’s how you can add email fields to your websites.

Similar Test Cases

SoftwareTestingo Test Cases
  • Test Case For Drag & Drop File upload
  • Test Case For Dropdown
  • Test Case For Edit Button
  • Test Case For Flash Images
  • Test Case For Footer Section
  • Test Case For Forget Password

Test Cases For Email Field Validation

Email field validation is one of the most critical tasks in any email sending application. It ensures that each email that is sent to a particular user has an associated correct address, name, and other required information. In this article, we discuss how email field validation can be tested using real data and simple examples.

Test Cases For Email Field
Test Cases For Email Field

Design related Test Cases

  • Check the webpage have the email field.
  • Check the label text of the email field is shown or not.
  • Check the label text is aligned with the email field.
  • Check the placeholder text is added or not.

Functional Test Cases

  • Check is the email field is accessible by clicking on the email field.
  • Check is the user is able to type the email in the email field.
  • Check wheather the user is able to paste the email id address by the keyboard (CTRL+V) and Mouse (Right Click – Paste)
  • Check the email validations are applied to the email field or not.
  • Check is the error messages are displaying or not when the user enter invalid email address.

Positive Test Cases For Email Field Validation

  • Check the email field by entering a valid email address. (admin@softwaretestingo.com)
  • Check is the email address contains a @ or not.
  • Check is the email field accepts + sign in the email address. Eg: softwaretestingo+1@gmail.com
  • Check is the email address contains a domain name or not. (admin@softwaretestingo – Here softwaretestingo.com is the domain name)
  • Check the email address have the dot (.) or not.
  • Check an email address should be considered correct if an email contains a subdomain.
  • Check that an email address has a maximum of 2 dots in the case of the subdomain.
  • Check if the email address contains special character then that will be considered as valid email address.
  • Check if the email address contains number then that will be considered as valid email address.
  • Check is the email address contains IP address.
  • Check the email address contains have square brackets, quotes “”, dash – or underscore _.

Negative Test Cases for email id field Validation

  • Check the email id field with out @ sign and the domain name.
  • Check the email id field with out username.
  • Check the email address field With Encoded html within the email is invalid
  • Check the email id field with two @ sign.
  • Check the email field with leading and tailing dots.
  • Check the email id filed With Unicode char as address
  • Check the email id text box With Missing top-level domain (.com/.net/.org/etc)

Valid Email ID Examples

Valid Email addressReason
email@domain.comValid email
firstname.lastname@domain.comThe email contains a dot in the address field
email@subdomain.domain.comThe email contains a dot with a subdomain
firstname+lastname@domain.comPlus sign is considered a valid character
email@123.123.123.123The domain is a valid IP address
email@[123.123.123.123]Square bracket around IP address is considered valid
“email”@domain.comQuotes around email are considered valid
1234567890@domain.comDigits in the address are valid
email@domain-one.comDash in the domain name is valid
_______@domain.comUnderscore in the address field is valid
email@domain.name.name is a valid Top Level Domain name
email@domain.co.jpDot in Top Level Domain name also considered valid (use co.jp as an example here)
firstname-lastname@domain.comDash in the address field is valid

Invalid Test Cases Of Email ID

Invalid Email addressReason
plain addressMissing @ sign and domain
#@%^%#$@#$@#.comGarbage
@domain.comMissing username
Joe Smith <email@domain.com>Encoded html within an email is invalid
email.domain.comMissing @
email@domain@domain.comTwo @ sign
.email@domain.comLeading dot in address is not allowed
email.@domain.comTrailing dot in address is not allowed
email..email@domain.comMultiple dots
あいうえお@domain.comUnicode char as address
email@domain.com (Joe Smith)Text followed email is not allowed
email@domainMissing top-level domain (.com/.net/.org/etc)
email@-domain.comThe leading dash in front of the domain is invalid
email@domain.web.web is not a valid top-level domain
email@111.222.333.44444Invalid IP format
email@domain..comMultiple dots in the domain portion is invalid

Conclusion

The email ID field is the part of the email where we write a message to someone. It usually has the name of sender and receiver as well as subject. We can test this field in different ways like by sending emails through Gmail, Yahoo, Outlook, or any other email client.

The email field is the part of the email where we write a message to someone. It usually has the name of sender and receiver as well as subject. In this blog, we have provided some test cases for your reference. If you think about more test scenarios then you can share those test scenarios in the comment section.

    Filed Under: Test Cases Example

    Reader Interactions

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    Primary Sidebar

    Join SoftwareTestingo Telegram Group

    Categories

    Copyright © 2022 SoftwareTestingo.com ~ Contact Us ~ Sitemap ~ Privacy Policy ~ Testing Careers