Professional Documents
Culture Documents
Exercise #3: Writting test cases and test ideas for Login Screen
Scenarios
Test cases
Test
Case
1
Check Item
Username
Username
Password
Password
Enter invalid
Password
Password
Enter valid
Password
Log-in
button
Incorrect inputs
Click Log-in
Log-in
button
Remember
Me
checkbox
Remember
Me
checkbox
Correct inputs
Click Log-in
Checking
checked symbol
on checkbox
Checking
cookies
Click
Remember
Me
Click
Remember
me to
Remember
Me
checkbox
Checking
cookies
Click
Remember
me to
10
11
Log in
Test case
Objective
Leave all fields
as blank and
click Log-in
button
Enter invalid
Username
Enter valid
Username
Enter random
characters
Steps to
Excute
Click Log-in
Test
Data/Input
Username:
tan@!r
Username:
tan
Password:
3#rAsrT3r
AS
Username:
****
Password:
***********
*
Expected Result
The mandatory symbol
should appear in front
of Username and
Password fields
Message "Please enter
valid username"
Allow the user to
proceed
Password field should
be in encrypted form
(like ******* )
Not enough length.
Password should more
than 6 characters.
Allow the user to
proceed
Message "Please check
your username &
password again!"
Lead the user to
respect page
If we click on
checkbox, its should
be display or
If checkbox display
they will not have to
login each time they
visit website.
If checkbox display
They need to re-enter
username and
password to log-in
Test Ideas
Check what is the maximum size set for the input.
Check what kind of characters does it allow.
Check if the database is vulnerable to SQL Injection.
Check if there is any way that you can know the credentials from the code.
Check if the URL shows the entries of the inputs in encrypted or normal way.
Check what happens when you give different combinations of the inputs.
Check if there is any cookie that is going to be stored during login.
Check if "Remember Me" feature is fuctioning properly.
Exercise #4 CFG
6-7
9
h
11
1
10
12
Basic Path:
No of edges - no of nodes + 2 = 13-11+2=4
=> We got 4 basics path.