Gmail Login Page

Hello All,
Gmail is one of the most popular Email services in the world. As a tester writing test cases for Gmail is a bit challenging; we have to keep a lot of things in our minds, the functionality, the UI, the security, and a lot more.

There can be a thousand test cases for Gmail’s functionality, but here I am sharing some of the test cases related to the Login page and the Create account page.
For reference, I am sharing an image of the Login and Registration page.

Login Page:

Sign up Page:

Functional Test Cases:

 Test ScenarioTest StepsExpected Result
1Launch Gmail page1. Launch https://www.gmail.com from the following devices.
a. The web browser like Chrome, Mozilla, Safari, etc.
b. From devices like tablets, mobile.
1. https://www.gmail.com should redirect to the Gmail Login page.
2. Sign in to continue to Gmail screen should be opened with the following attributes.
a. Email or phone
b. Forgot email
c. Learn more
d. Create account
e. Next 
2Enter Email or Phone1. Enter valid Email or phone number.
a. Enter/Next.
2. Enter invalid Email or phone number.
b. Enter/Next.
3. Leave Blank space in Email or phone number.
c. Enter/Next
1. With step 1 and step 2, the user will be redirected to the next page with option.
a. Enter your password.
b. Forgot password.
2. With option 3 the user should get an error in the text box with message Enter an email or phone.
3Enter Password1. Enter valid Email or Phone number and try with following criteria:
a. With valid password.
b. With invalid password.
c. With Blank password
1. With a valid password, it should get redirected to the Email page.
2. With an invalid password a message should be displayed, Wrong password. Try again or click Forgot password to reset it.
3. With blank password the password text box should throw and error and show the message Enter a password.
4Forgot Email1. Open the browser with https://www.gmail.com 2. Click Forgot Email1. On clicking Forgot Email it should get redirected to the next page.
a. with the text ‘Find your email, Enter your phone number or recovery email’.
b. One Text box to enter the Phone number or email
5Forgot Password1. Enter valid Email or phone number.
2. Enter Forgot password
1. The user should get redirected to the next page Account Recovery page
6Account Recovery1. Enter the last password you remember using with this Google Account a. Enter the last password.
b. Next
2. Try another way.
3. Open the Google app on:Google sent a notification to your . Open the Google app and tap Yes on the prompt to sign in.
4. Try another way.
5. Get a verification code:Google will send a verification code to a Registered email id for account recovery.
6. Get a verification code:Google will send a verification code to the registered phone number. In the form of
a. Text
b. Call
7. We need some time to review your request:Enter an email address where we can contact you later.
8. Try another way.
9. To help keep your account secure, Google needs to confirm this account belongs to you. To recover your account, try again to sign in and answer as many questions as you can.
a. Try again
1. For step 1:
a. With a valid password, the user should get directed to Create new passwordpage. b. With an invalid password, the user should get redirected to the next method of the Account recovery page.
2. For step 3:
a. If the user successfully tap Yes, the user will get redirected to the Create new passwordpage.
b. If the user is not successful in tapping Yes, The user will be redirected to the next method of Account recovery page.
3. For step 5:
a. The user should get an email verification code in another email address the user has provided during profile creation for account recovery.
i. With a valid verification code, the user will be redirected to the Create new passwordpage.
ii. With invalid verification code, The user will be redirected to the next method of Account recovery page.
4. For step 6:
a. The user will get a verification code sent to the user’s registered phone number.
i. With a valid verification code, the user will be redirected to the Create new passwordpage.
ii. With invalid verification code, The user will be redirected to the next method of Account recovery page.
5. For step 7:
a. The user should be able to provide valid email id.
6. For step 8: The user should get a message.
a. To help keep your account secure, Google needs to confirm this account belongs to you. To recover your account, try again to sign in and answer as many questions as you can.
i. Try again
7I don’t have my phone1. Go to Forgot password
Choose the account recovery method as send the password to the registered phone number.
3. Click on the link I don’t have my phone.
4. Click Next
1. On clicking I don’t have my phone, The user should be redirected to the next page.
a. The security question they provided during the login process.
i. With a valid answer, the user will be redirected to the Create new password page.
ii. With the invalid answer, the user should be redirected to the next page.
1. with the message, We need some time to review your request.
2. Enter an email address where we can contact you later
8Not your computer? Use Private Browsing windows to sign in. Learn More1. Click on the link Learn More.1. The user should be redirected to the next page showing.
a. Help
b. Center Community 
9Create an account1. Click on Create account link.
2. Select from two options
a. For Myself
b. To manage my business
1. On selecting options from Create account, the user should get redirected to the next page.
a. Create your Google Account to continue to Gmail.
b. The user should get the option for Sign in instead.
10Sign in instead1. Click on create account.
2. Select from two options.
a. For Myself
b. To manage my business
3. Go to create your Google Account to continue to Gmail page.
4. Select Sign in instead
1. On clicking Sign in instead the user should be redirected to Sign into continue to the Gmail page.
11Create your Google AccountFor Myself1. Click on Create account.
2. Select the option For Myself from the dropdown list.
3. The following attributes should be filled with valid inputs:
a. First name.
i. Within the range of English alphabets.
ii. No Blank space allowed.
b. Last name
i. Within the range of English alphabets.
ii. No Blank space allowed.
c. Choose Username available.
i. you can use letters, numbers & periods.
ii. Usernames cannot contain an ampersand (&), equals sign (=), underscore (_), apostrophe (‘), dash (-), plus sign (+), comma (,), brackets (<,>), or more than one period (.) in a row.
d. Password
i. Use 8 or more characters with a mix of letters, numbers & symbols.
e. Confirm password
4. Hit Next
1. The user should get redirected to next page Create your Google Account to continue to Gmail.
2. With valid input provided by the user, the user should be redirected to the welcome page asking more details.
3. With the invalid input values, the text box should show an error message.
4. For the username available:
a. The user can be redirected to the welcome page.
b. Google should show suggestions for the available username.
12Create your Google AccountTo manage my business1. Click on Create account 2. Select the option For Myself from the dropdown list.
3. The following attributes should be filled with valid inputs:
a. First name.
i. Within the range of English alphabets.
ii. No Blank space allowed.
b. Last name
i. Within the range of English alphabets.
ii. No Blank space allowed.
c. Choose Username available.
i. you can use letters, numbers & periods.
ii. Usernames cannot contain an ampersand (&), equals sign (=), underscore (_), apostrophe (‘), dash (-), plus sign (+), comma (,), brackets (<,>), or more than one period (.) in a row.
d. Password
i. Use 8 or more characters with a mix of letters, numbers & symbols.
e. Confirm password
4. Hit Next
1. The user should get redirected to next page Create your Google Account to continue to Gmail.
2. With valid input provided by the user, the user should be redirected to the welcome page asking more details.
3. With the invalid input values, the text box should show an error message.
4. For the username available:
a. The user can be redirected to the welcome page.
b. Google should show suggestions for the available username.

Security Test Cases:

Test ScenarioTest StepsExpected Results
1Password encryption1. Open the dev tool in chrome, go to Gmail login page.
2. Enter user name password and click Sign in.
3. Check the API request and response
1. The request and response should not contain password in plaintext.
2Open multiple tabs of gmail, logout from one.1. Open Gmail and login.
2. Duplicate/open multiple tab of it.
3. Also open gmail page in new window.
4. Logout from any tab/window.
1. Account should get logged out from all the tabs and windows.
2. Try to perform any operation like composing new email or read an email etc. Page should get logged out.
3No hint/suggestion in Password field1. Login to a gmail account and log out.
2. Go to password enter password and click on password field.
1. No password hint or suggestion should appear.
4Save password in browser1. Login to Gmail account and save the password in the browser.
2. Logout from the account.
3. Try to login with same user id.
3. Password will be filled automatically.
1. Verify the password is not visible.
2. Verify the browser files, password should get saved in plain text.

Stress Test Cases:

Test ScenarioTest StepsExpected Results
1.Open same account from 100 windows/tab/device1. Login with same account from 100 windows/tab/device1. The performance of operation should not be impacted.
2. User should be able to do operation like read/compose email from any window/tab/device.
2. Login with different account at same time1. Write a script to login with 100 different accounts at same time.1. All the user should get logged in immediately. No delay should be observed.