Test Cases
ScenarioID Module Scenario Title User Story Acceptance Criteria
SC-001
Login
SC-002
Login
SC-003
SC-004
SC-005
SC-006
SC-007
Login
As a user, I
want to log
Login with valid
in so that I
credentials
can access
my account
As a user, I
want to see
Login with
an error
invalid
message if
credentials
my login is
invalid
User is redirected to
dashboard after valid
login
Preconditions Test Data
User is
registered
Error message is shown User is
for wrong login
registered
As a user, I
want to be Error messages are
Login with blank
notified if I shown for required
fields
leave login fields
fields empty
-
Email:
test@mail
.com,
Pass:
Test123
Email:
test@mail
.com,
Pass:
wrongpas
s
Email: "",
Pass: ""
Password
masking
As a user, I
want my
Password is masked by
password
default
hidden for
privacy
Password:
Test123
Login
Remember Me
functionality
As a user, I
want to stay
User remains logged in User is
logged in
when reopening site
registered
after closing
the browser
Email:
test@mail
.com,
Pass:
Test123
Login
As a user, I
want to
Forgot Password
Reset link is sent to
reset my
link
registered email
password if
I forgot it
Login
Login
Login with SQL
injection
User is
registered
As a user, I
want the
SQL injection attempt is
system to
blocked
prevent SQL
injection
Email:
test@mail
.com
Email: '
OR 1=1 --,
Pass:
anything
SC-008
SC-009
Login
Login
SC-010
Login
SC-011
Cart
SC-012
Cart
SC-013
Cart
SC-014
SC-015
Cart
Cart
As a user, I
want the
Login with
system to
special
handle
characters
special
characters
As a user, I
want
Case sensitivity
password to
in password
be case
sensitive
As a user, I
Login with
want an
unregistered
error for
email
unregistere
d email
As a user, I
Add product to want to add
cart
items to my
cart
As a user, I
want to
Remove product
remove
from cart
items from
my cart
As a user, I
want to
Update product
change
quantity
quantity in
cart
System accepts valid
special chars, rejects
invalid ones
Login fails if case is
wrong
-
Email:
test@mail
.com,
Pass:
@$#%^&
-
Email:
test@mail
.com,
Pass:
test123
System shows account
not found message
Email:
unknown
@mail.co
m
Item appears in cart
after clicking add
User logged in
Product:
Laptop
Item is removed from
cart list
Item in cart
Product:
Laptop
Quantity updates and
total recalculates
Item in cart
Quantity:
3
Add multiple
products
As a user, I
want to add All selected products
more than appear in cart
one product
User logged in
Product A
&B
Proceed to
checkout
As a user, I
want to
Redirects to checkout
proceed to
page
checkout
from cart
Items in cart
-
SC-016
Cart
SC-017
Cart
SC-018
Cart
SC-019
Cart
SC-020
Cart
As a user, I
want to
Apply discount
apply a
code
coupon
code
As a user, I
Empty cart
want to
functionality
clear all
items
As a user, I
want my
Cart persistence
cart saved
after logout
after relogin
As a user, I
Invalid coupon want error
code
for invalid
code
As a user, I
want to be
Out-of-stock
notified if
item handling
product is
unavailable
Discount applies
correctly
Valid coupon
code exists
Code:
SAVE10
Cart shows “empty”
after clearing
Items in cart
-
Cart retains items after
Items in cart
login
-
Error message is shown
Invalid coupon
code
System prevents adding
out-of-stock items
Code:
ABC123
Product:
Out-ofstock item
Priority
High
High
Medium
Low
Medium
Medium
High
Medium
Medium
Medium
High
High
Medium
High
High
Medium
Medium
Medium
Medium
High