You are on page 1of 12

Test_cases for Login page

Sr.No Test case name Description Steps Steps to be executed

1 Login_Func_001_ Objective: Verify 1 Navigate to the URL


Valid Username - user is able to login
Valid Password to the system
when enters valid
username and
valid password and
press 'Login' button
Prerequisite:
User exist in the
system

2 Enter
Username: Valid username
Password:Valid password
and Press 'Login' button

2 Login_Func_002_ Objective:Verify 1 Navigate to the URL


Valid Username- user unable to
Invalid Password login when enter
valid username
and invalid
password and
press 'Login' button
and show error
message
Prerequisite:
User exist in the
system

2 Enter
Username: Valid username
Password:Invalid password
and Press 'Login' button

3 Login_Func_003_ Objective:Verify 1 Navigate to the URL


Invalid Username - user unable to
Valid password login when enter
invalid username
and valid password
and press 'Login'
button and show
error message
Prerequisite:
User exist in the
system
2 Enter
Username: Invalid username
Password:Valid password
and Press 'Login' button

4 Login_Func_004_ Objective:Verify 1 Navigate to the URL


Invalid Username - user unable to
Invalid Password login when enter
invalid username
and invalid
password and
press 'Login' button
and show error
message
Prerequisite:
User exist in the
system

2 Enter
Username: Invalid username
Password:Invalid password
and Press 'Login' button

5 Login_Func_005_ Objective:Verify 1 Navigate to the URL


Empty Username- user unable to
Valid Password login when leave
the username
empty and enter
valid password and
press 'Login' button
and show error
message
Prerequisite:
User exist in the
system

2 Enter
Username: Empty username
Password:Valid password
and Press 'Login' button
6 Login_Func_006_ Objective:Verify 1 Navigate to the URL
Valid Username- user unable to
Empty Password login when valid
username and
leave password
field empty and
press 'Login' button
and show error
message
Prerequisite:
User exist in the
system

2 Enter
Username:Valid username
Password: Empty password
and Press 'Login' button

7 Login_Func_007_ Objective:Verify 1 Navigate to the URL


Empty Username- user unable to
Empty Password login when enter
nothing in both
username and
password field and
press 'Login' button
and show error
message
Prerequisite:
User exist in the
system

2 Enter
Username:Empty username
Password: Empty password
and Press 'Login' button

8 Login_Func_008_ Objective: To 1 Navigate to the URL


Masked Password Check entered
password is
masked on the
screen i.e.,
password must be
in bullets or
asterisks
Prerequisite:
User exist in the
system
2 Enter
Username:Valid username
Password:Valid password

9 Login_Func_009_ Objective: Verify 1 Navigate to the URL on Multiple


Compatibility- compatibility of Devices
multiple devices login page and its
control button
when enter valid
username and
valid password on
different devices
Prerequisite:
1.User exist in the
system
2.Multiple Devices

2 Enter
Username: Valid username
Password:Valid password
and Press 'Login' button

10 Login_Func_010_ Objective:Verify 1 Navigate to the URL on Multiple


Compatibility - compatibility of Browsers
Multiple Browsers login page and its
control button
when enter valid
username and
valid password on
different browsers
Prerequisite:
1.User exist in the
system
2.Multiple Devices

2 Enter
Username: Valid username
Password:Valid password
and Press 'Login' button
11 Login_Func_011_ Objective:Verify 1 Navigate to the URL
UI-Different the font,text color
Elements for login page
match the
requirements.
Prerequisite: User
exist in the system

12 Login_Func_012_ Objective: To 1 Navigate to the URL


Session-Timeout check the session is
expired in specified
time if window is
inactive after
entering the login
page
Prerequisite: User
exist in the system

2 Enter
Username: Valid username
Password:Valid password
and Press 'Login' button

3 Keep Window inactive for a while

13 Login_Func_013_ Objective:Verify 1 Navigate to the URL


Login-attemts the system locks
the user’s account
if the number of
failed logins reach
the maximum
allowed times and
show message
Prerequisite: User
exist in the system

2 Enter
Username: Inalid username
Password:Inalid password
and Press 'Login' button for more
than number of attempts
mentioned
14 Login_Func_014_ Objective: Verify 1 Navigate to the URL
Copy Password after logging in try
to copy/cut the
password and
paste it on another
screen
Prerequisite: User
exist in the system

2 Enter
Username: Valid username
Password:Valid password
Copy the password field’s
content and paste on another
screen
Expected Result Actual Pass/Fail Priority
Result
Login page should display with
'Username' , 'Password' field and
'Login' button

User should be able to login the


system and homepage should be
displayed

Login page should display with


'Username' , 'Password' field and
'Login' button

User should not be able to login


the system and should display
error messge"Enter valid/correct
credentials"

Login page should display with


'Username' , 'Password' field and
'Login' button
User should not be able to login
the system and should display
error messge"Enter valid/correct
credentials"

Login page should display with


'Username' , 'Password' field and
'Login' button

User should not be able to login


the system and should display
error messge"Enter valid/correct
credentials"

Login page should display with


'Username' , 'Password' field and
'Login' button

User should not be able to login


the system and should display
error messge"Enter valid/correct
credentials"
or "Please enter valid User ID"
Login page should display with
'Username' , 'Password' field and
'Login' button

User should not be able to login


the system and should display
error messge"Enter valid/correct
credentials"
or "Please enter valid Password""

Login page should display with


'Username' , 'Password' field and
'Login' button

User should not be able to login


the system and should display
error messge"Enter valid/correct
credentials"

Login page should display with


'Username' , 'Password' field and
'Login' button
The password field should display
the characters in asterisks or
bullets such that the password is
not visible on the screen

Login page should display with


'Username' , 'Password' field and
'Login' button

User should be able to login the


system and homepage should be
displayed

Login page should display with


'Username' , 'Password' field and
'Login' button

User should be able to login the


system and homepage should be
displayed
Login page should display all the
elements i.e. size,colour,font etc
as per specifications

Login page should display with


'Username' , 'Password' field and
'Login' button

User should be able to login the


system and homepage should be
displayed

User should Automatically logout


of the system
Login page should display with
'Username' , 'Password' field and
'Login' button

Users account Should be locked


on the last failed attempt and
shows message
"Your account has been locked
due to number of failed
attempts "
Login page should display with
'Username' , 'Password' field and
'Login' button

password shouldn’t get pasted /


password should not be visible
on the screen

You might also like