Test Scenario
TestCaseID
ScenarioID
Test Case Preconditi
Title
ons
Test Step
1. Navigate to the login page.
2. Enter valid email-
TC-001
SC-001
Login with
valid
User is
3. Enter valid password Test123.
credential registered
s
4. Click the Login button.
5. Verify that the user is redirected to the
dashboard.
1. Navigate to the login page.
2. Enter valid email-
TC-002
SC-002
Login with
invalid
User is
3. Enter invalid password wrongpass.
credential registered
s
4. Click the Login button.
5.Verify that the system displays an error:
“Invalid username or password”.
1. Navigate to the login page.
TC-003
SC-003
Login with
blank
fields
2. Leave both Email and Password fields blank.
3. Click the Login button.
4. Verify the error message: “Email and
password are required”.
1. Navigate to the login page.
TC-004
SC-004
Password
masking
2. Enter password Test123 in the Password
field.
3. Verify that input characters are masked
(dots or asterisks).
1. Navigate to the login page.
2. Enter valid email and password.
TC-005
SC-005
3. Tick the Remember Me checkbox.
Remembe
r Me
User is
4. Click the Login button.
functionali registered
ty
5. Close and reopen the browser.
6. Navigate back to the application.
7. Verify that the user is still logged in.
1. Navigate to the login page.
2. Click the Forgot Password link.
TC-006
SC-006
Forgot
User is
3. Enter registered email-
Password
registered
link
4. Click the Submit/Reset button.
5. Verify that a reset password link is sent to
the email.
1. Navigate to the login page.
2. Enter ' OR 1=1 -- in the Email field.
TC-007
SC-007
Login with
SQL
injection
3. Enter any value in the Password field.
4. Click the Login button.
5. Verify that login is blocked and an error is
displayed.
1. Navigate to the login page.
2. Enter email-
TC-008
SC-008
Login with
special
characters
3. Enter password containing special
characters @$#%^&.
4. Click the Login button.
5. Verify whether login is accepted/rejected
according to system rules.
1. Navigate to the login page.
TC-009
SC-009
Case
sensitivity
in
password
2. Enter valid email-
3. Enter password test123 (different case).
4. Click the Login button.
5. Verify that login fails.
1. Navigate to the login page.
2. Enter unregistered email-
TC-010
SC-010
Login with
unregister ed email
3. Enter password Test123.
4. Click the Login button.
5. Verify that error “Account not found” is
displayed
1. Log in as a registered user.
2. Navigate to product listing page.
TC-011
SC-011
Add
User
product to
3. Select a product (Laptop).
logged in
cart
4. Click the Add to Cart button.
4Verify that item appears in the cart.
1. Log in and add a product to the cart.
2. Navigate to the cart page.
TC-012
SC-012
Remove
Item in
product
cart
from cart
3. Click the Remove button beside the
product.
4. Verify that the item is removed from the
cart.
1. Log in and add a product to the cart.
2. Navigate to the cart page.
TC-013
SC-013
Update
product
quantity
Item in
cart
3. Change product quantity from 1 to 3.
4. Click Update.
5. Verify that quantity updates and total
recalculates
1. Log in as a registered user.
2. Add Product A to the cart.
TC-014
SC-014
Add
multiple
products
User
3. Add Product B to the cart.
logged in
4.Navigate to the cart page.
5. Verify both products appear in the cart.
1. Log in as a registered user.
2. Add products to the cart.
TC-015
SC-015
Proceed
Items in
to
cart
checkout
3. Navigate to the cart page.
4. Click the Checkout button.
5. Verify that user is redirected to the
checkout page.
1. Log in to the application.
2. Add at least one product to the cart.
TC-016
SC-016
Apply
discount
code
Valid
coupon
code
exists
3. Go to the cart page and click on "Apply
Coupon."
4. Enter an valid coupon code (SAVE10).
5. Click the "Apply" button.
6. Verify that the system displays successfully
applied
1. Log in to the application.
2. Navigate to the product page.
3. Add at least one product to the cart.
TC-017
SC-017
Empty
cart
Items in
functionali cart
ty
4. Go to the cart page.
5. Click on the "Remove" or "Delete" option
for the item(s).
6. Verify that the cart becomes empty and the
system displays the correct "Your cart is
empty" message
1. Log in to the application.
2. Add at least one product to the cart.
TC-018
SC-018
Cart
persistenc Items in
e after
cart
logout
3. Log out from the application.
4. Log in again using the same account.
5. Navigate to the cart page.
6. Verify that previously added items are still
present in the cart.
1. Log in to the application.
2. Add at least one product to the cart.
3. Go to the cart page and click on "Apply
Coupon."
TC-019
SC-019
Invalid
coupon
code
Invalid
coupon
code
4. Enter an invalid coupon code (e.g., random
characters or expired coupon).
5. Click the "Apply" button.
6. Verify that the system displays an error
message like "Invalid coupon code" and no
discount is applied.
1. Log in to the application.
2. Navigate to a product page where the item
is marked as out-of-stock.
TC-020
SC-020
Out-ofstock item handling
3. Attempt to add the out-of-stock item to the
cart.
4. Verify that the system prevents the addition
and displays the correct message (e.g., "Item
is out of stock").
Test Data
Email:-,
Pass: Test123
Expected Result
Redirect to
dashboard
Priority
High
Email:
Error: "Invalid-, username or
Pass: wrongpass password"
High
Error: "Email and
Email: "", Pass: "" password are
required"
Medium
Password:
Test123
Low
Characters replaced
by dots or asterisks
Email:-,
Pass: Test123
User stays logged in
Medium
after browser restart
Email:-
Reset link sent to
email
Email: ' OR 1=1 --, Login blocked, error
Pass: anything
shown
Email:-,
Pass: @$#%^&
Medium
High
System
accepts/rejects based Medium
on rules
Email:-,
Pass: test123
Login fails if case is
wrong
Medium
Email:-Error: "Account not
om, Pass:
found"
Test123
Medium
Product: Laptop
Item appears in cart
High
Product: Laptop
Item removed from
cart
High
Quantity: 3
Quantity updated,
total recalculated
Medium
Product A & B
All appear in cart
High
-
Redirect to checkout
High
page
Code: SAVE10
Discount applied
correctly
Medium
-
Cart shows “empty”
Medium
-
Cart retains items
after login
Medium
Code: ABC123
Error: "Invalid
coupon code"
Medium
Product: Out-of- Prevent adding, show
High
stock item
out-of-stock message