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
git pull origin branchNameGit 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
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 case | Test Data | Note |
|---|---|---|
| Valid Login | Username: user1@example.com Password: User@123 | Registered user credentials |
| Invalid Login | Username: user2@example.com Password: WrongPass | Unregistered or wrong credentials |
| Empty Fields | Username: [blank] Password: [blank] | Test validation messages |
| Forgot Password | Email: user1@example.com | Registered email to receive reset link |
| Account Lock | Username: user1@example.com Password: WrongPass (5 attempts) | To test account lock scenario |
| Password Masking | Any password | Check that input is masked |
Product Module - Test data
| Test case | Test Data | Note |
|---|---|---|
| Search Product | Keyword: "Laptop" | Must return all laptops |
| Invalid Search | Keyword: "XYZ123" | Should show "No products found" |
| Filter Products | Category: Electronics Price: 500-1000 | Test filter functionality |
| Sort Products | Sort by: Price Low High | Ensure products are sorted correctly |
| View Product Details | Product ID: P1001 | Check product info, image, price, review |
Cart Module - Test Data
| Test case | Test data | Note |
|---|---|---|
| Add to cart | Product ID: P1001 | Add single product |
| Remove from the cart | Product ID: P1001 | Remove product from cart |
| Update Quantity | Product ID: P1001 Quantity: 2 | Update product quantity |
| Cart Persistence | Product ID: P1001 | Check cart after logout/login |
| Add out of the stock Product | Product ID: P2001 | Product marked out-of-stock |
| Test case | Test data | Note |
|---|---|---|
| Proceed to Checkout | Cart containing products P1001, P1002 | Navigate from cart to checkout |
| Add/Select Address | Address: 123, Main St, City, Zip | Test new or existing address |
| Payment Options | Payment Method: Credit Card Card: 4111 1111 1111 1111 Expiry: 12/26 CVV: 123 | Valid payment |
| Failed Payment | Payment Method: Credit Card Card: 0000 0000 0000 0000 Expiry: 12/22 CVV: 000 | Invalid card |
| Order Confirmation | Order ID: Auto-generated | Validate confirmation page |
Checkout Module - Test Data
Task 3: Review Test Cases
Login Module – Test Conditions
a
1
Text
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
https://docs.google.com/spreadsheets/d/1yqOy2WDOFfo5TjOKUS9HnEAl5qSrqGUKkwBCltaXXqY/edit?usp=sharing
| tc 01 | ts 001 | login | login with valid credential | user register | |||