Prompt for Comprehensive Test Case Generation Prompt for E-commerce Platforms
Category: Test Case Design / Functional and Non-Functional Tests
Description
This prompt guides AI or QA engineers to create an exhaustive suite of test cases for e-commerce websites like Amazon or Flipkart. It spans all critical customer journeys — from account management to checkout, order handling, performance, and security — ensuring thorough validation of both functional and non-functional requirements
Prompt
You are a highly experienced QA Engineer with expertise in manual and automation testing of large-scale e-commerce platforms (similar to Amazon, Flipkart, or Myntra). Your task is to generate a comprehensive list of **test cases** for validating an e-commerce web application. The test cases should cover both **functional** and **non-functional** aspects of the system, and should be written in a clear and structured format, including: - **Test Case ID** - **Test Scenario / Title** - **Preconditions** - **Test Steps** - **Expected Result** - **Priority / Severity** You must consider the entire e-commerce customer journey and backend workflows, including but not limited to: 1. **User Account Management** - Registration, login, logout, password reset, profile update, security (multi-factor authentication). 2. **Product Browsing & Search** - Search by keywords, filters, sorting, product categories, recently viewed items, recommendations. 3. **Product Details** - Product description, images, price, reviews, ratings, availability, delivery dates. 4. **Shopping Cart & Wishlist** - Add/remove products, update quantities, save for later, move items between wishlist and cart. 5. **Checkout & Payments** - Multiple addresses, applying coupons/offers, shipping methods, payment gateway testing (credit/debit, UPI, wallet, COD). 6. **Order Management** - Order placement, cancellation, return/refund requests, order tracking, invoices. 7. **Notifications & Communication** - Emails, SMS, push notifications for order updates, promotions. 8. **Performance & Load Testing** - Page load time, response under peak traffic, concurrent user handling. 9. **Security Testing** - SQL injection, XSS, unauthorized access, payment security, data privacy. 10. **Cross-Platform & Compatibility** - Browsers (Chrome, Safari, Firefox, Edge), devices (desktop, mobile, tablet), operating systems. 11. **Accessibility Testing** - WCAG compliance, keyboard navigation, screen reader support. 12. **Internationalization & Localization** - Multiple languages, currency formats, date formats, region-based offers. Format your output as a **tabular list of test cases** with appropriate details (ID, Steps, Expected Results). Ensure completeness so QA engineers can directly use it as a checklist for testing.
Why it works
This prompt works well because it directs the creation of structured, comprehensive test cases aligned with real-world e-commerce workflows, addressing both common and edge cases. It ensures coverage of critical areas that impact user experience and business operations, enabling QA teams to validate the product thoroughly.
Sample output
Test Case 1 Test Scenario / Title: User Registration with Valid Data Preconditions: User is on the “Sign Up” page, site is accessible. Test Steps: Enter valid user details (name, email, mobile, password). Agree to terms and conditions. Click “Register”. Verify OTP received via email/SMS. Expected Result: User account is created successfully, system redirects to Welcome page, confirmation email/SMS is received. Priority / Severity: High / Critical Test Case 2 Test Scenario / Title: Add Product to Cart & Update Quantity Preconditions: User is logged in, at least one product is available in the catalog. Test Steps: Search for a product by keyword. Open product details page. Click “Add to Cart”. Open Shopping Cart. Increase product quantity from 1 to 3. Expected Result: Product appears in cart, cart shows correct price * quantity, total updates correctly, stock validation applied. Priority / Severity: High / Major Test Case 3 Test Scenario / Title: Checkout with Coupon & Credit Card Payment Preconditions: User has items in cart, valid coupon exists, test payment gateway is functional. Test Steps: Go to Cart → Proceed to Checkout. Select delivery address. Apply valid promo code. Select Credit Card as payment method. Enter valid test credit card details. Confirm order. Expected Result: Coupon discount is applied correctly, total is updated, payment is processed, confirmation page displayed, order ID generated, confirmation email received. Priority / Severity: High / Critical