CartSure Detailed Test Case Development

Business Scenario

Today, our manager assigned us the CartSure eCommerce project to develop comprehensive Detailed Test Cases for all critical business functionalities.

We will focus on creating step-by-step test validation for modules such as user registration, product search, shopping cart, checkout process, payment flow, and order tracking

Pre-Lab Preparation

Topic : Test Documentation & Traceability

  • ADD, BRD, FRD, Test Plan & Test Strategy
  • Test Scenario vs Test Case
  • RTM (Requirement Traceability Matrix)
git pull origin branchName

Git Pull

This phase ensures precise test coverage, functional accuracy, and a strong foundation for successful test execution.

Task 1: Convert Scenarios into Test Cases

 Review all test scenarios

a

 Prepare test case template

b

Identify Test condition  for Login ,Product module ,Cart , Checkout

c 

1

Login Module – Test Conditions

a

  • Verify login with valid credentials

  • Verify login with invalid credentials

  • Verify login with empty username and/or password

  • Verify password masking functionality

  • Verify “Forgot Password” workflow

  • Verify account lock after multiple failed login attempts

  • Verify login with different user roles (admin, customer, guest)
  • Verify session timeout after inactivity
  • Verify “Remember Me” functionality

Product Module – Test Conditions

  • Verify product list displays all available products

  • Verify product search functionality returns relevant results

  • Verify filtering of products by category, price, brand, etc.

  • Verify sorting of products (price, rating, popularity)

  • Verify product details page displays image, description, price, and reviews

  • Verify behavior when no product matches search criteria

  • Verify navigation between product list and product details

  • Verify product images and thumbnails are displayed correctly

  • Verify pagination or lazy loading for large product lists

2

Cart Module – Test Conditions

3

  • Verify adding a product to the cart

  • Verify removing a product from the cart

  • Verify updating product quantity in the cart

  • Verify cart total price calculation

  • Verify cart persistence across sessions/login

  • Verify adding out-of-stock products to cart

  • Verify multiple products in the cart are displayed correctly

  • Verify cart icon/count updates dynamically

  • Verify discount/coupon code application (if applicable)

Checkout Module – Test Conditions

4

  • Verify user can navigate from cart to checkout

  • Verify adding/selecting shipping address

  • Verify order summary correctness (product, quantity, price, total)

  • Verify available payment options displayed correctly

  • Verify successful payment flow

  • Verify failed payment handling

  • Verify order confirmation page with order ID and summary

  • Verify ability to cancel/modify order before payment confirmation

  • Verify tax, shipping, and discounts are calculated correctly

Task 2: Define Test Data

Login Module - Test Data

Test caseTest DataNote
Valid LoginUsername: user1@example.com Password: User@123Registered user credentials
Invalid LoginUsername: user2@example.com Password: WrongPassUnregistered or wrong credentials
Empty FieldsUsername: [blank] Password: [blank]Test validation messages
Forgot PasswordEmail: user1@example.comRegistered email to receive reset link
Account LockUsername: user1@example.com Password: WrongPass (5 attempts)To test account lock scenario
Password MaskingAny passwordCheck that input is masked

Product Module - Test data

Test caseTest DataNote
Search ProductKeyword: "Laptop"Must return all laptops
Invalid SearchKeyword: "XYZ123"Should show "No products found"
Filter ProductsCategory: Electronics Price: 500-1000Test filter functionality
Sort ProductsSort by: Price Low HighEnsure products are sorted correctly
View Product DetailsProduct ID: P1001Check product info, image, price, review

Cart Module - Test Data

Test case Test dataNote
Add to cartProduct ID: P1001Add single product
Remove from the cartProduct ID: P1001Remove product from cart
Update QuantityProduct ID: P1001 Quantity: 2 Update product quantity
Cart PersistenceProduct ID: P1001Check cart after logout/login
Add out of the stock  ProductProduct ID: P2001Product marked out-of-stock
Test case Test dataNote
Proceed to CheckoutCart containing products P1001, P1002Navigate from cart to checkout
Add/Select AddressAddress: 123, Main St, City, ZipTest new or existing address
Payment OptionsPayment Method: Credit Card Card: 4111 1111 1111 1111
Expiry: 12/26 CVV: 123
Valid payment
Failed PaymentPayment Method: Credit Card Card: 0000 0000 0000 0000 Expiry: 12/22 CVV: 000Invalid card
Order ConfirmationOrder ID: Auto-generatedValidate confirmation page

Checkout Module - Test Data

Task 3:  Review  Test Cases

Login Module – Test Conditions

a

1

Text

  • Verify each test case includes Steps, Expected Results, Preconditions, Test Data, and Priority.
  • Ensure steps are clear and unambiguous

  • Validate test data (valid, invalid, boundary cases)

  • Check formatting, numbering, and consistency

  • Identify missing or duplicate test cases

  • Perform peer review and finalize

Output

  • Complete Test Case Document

https://docs.google.com/spreadsheets/d/1yqOy2WDOFfo5TjOKUS9HnEAl5qSrqGUKkwBCltaXXqY/edit?usp=sharing

​tc 01ts 001loginlogin with valid credentialuser register