Ecommerce website test plan: sample and template
A sample test plan document for an ecommerce website: scope, risks, test types, scenarios for cart, checkout and payment, exit criteria and a template.
An ecommerce website test plan is a short document that says what you will test in an online shop before a release, how, in which environment, and what must pass before you go live. It follows the same structure as any website test plan, but puts the money path first: product, cart, checkout, payment and order.
What makes an ecommerce test plan different
- Bugs cost money directly. A broken checkout or a wrong total means lost orders or refunds.
- The shop depends on other systems: payment provider, shipping, tax, stock and email. Each connection needs its own tests.
- Data changes all the time. Prices, stock levels and discount codes change daily, so test data needs care.
- Traffic comes in peaks, such as sales and holidays, and many customers buy on a phone.
Ecommerce test plan template
- 1Overview: the shop, the release and the goal of this test cycle.
- 2Scope: flows in scope (browse, cart, checkout, payment, account, admin) and what is out of scope.
- 3Risks: what would cost the most if it broke, ranked.
- 4Test types: functional, payment, cross-browser, mobile, performance, security, accessibility.
- 5Environments and test data: staging URL, payment test mode, test products, customers and discount codes.
- 6Test scenarios and cases: the list of scenarios per area, with a link to the test cases.
- 7Entry and exit criteria: when testing starts and when the release may go live.
- 8Schedule and roles: who tests what, and when.
- 9Reporting: how results and open bugs are shared.
Sample test plan for an ecommerce website
Here is the template filled in for a small online clothing shop that adds discount codes and a new payment method. Replace the details with your own.
| Section | Sample |
|---|---|
| Overview | Autumn release of the shop: discount codes and one new payment method. Goal: customers can buy with every payment method and totals are always right. |
| Scope | In: product list and search, product page, cart, discount codes, checkout, payment, order emails, order list in the admin. Out: the blog and the returns portal. |
| Risks | 1. Payment fails or is taken twice. 2. Wrong total after discount, shipping or tax. 3. Order placed for a product that is out of stock. 4. Checkout broken on mobile. 5. Confirmation email not sent. |
| Test types | Functional, payment in test mode, cross-browser, mobile, basic performance of product and checkout pages, access control for customer accounts. |
| Environments and test data | Staging with the payment provider in test mode; 20 test products including one out of stock and one with sizes; three test customers; codes for a percentage, a fixed amount and an expired discount. |
| Test scenarios and cases | About 60 scenarios across nine areas (see the table below); the critical ones are written out as test cases. |
| Entry and exit criteria | Entry: release deployed to staging, test products and codes loaded, a smoke test of home, product page and cart passes. Exit: all checkout, payment and discount cases pass on desktop and mobile; no open critical or high bugs; one full test order checked from cart to admin. |
| Schedule and roles | Four days before release: QA runs the cases, developers fix bugs, the shop owner does a final acceptance check. |
| Reporting | Daily summary of passed, failed and blocked cases; list of open bugs by severity. |
Test scenarios for an ecommerce website
Start with one-line test scenarios per area, then turn the risky ones into test cases with steps and expected results.
| Area | Example scenarios |
|---|---|
| Catalog and search | Search finds a product by name; filters by size and price work; a search with no results shows a helpful message |
| Product page | Price, images and stock are correct; a size must be chosen before adding to the cart |
| Cart | Add, change quantity and remove; the total updates; the cart is kept after sign-in |
| Discounts | A valid code lowers the total; an expired code is refused; a code cannot be used twice if that is the rule |
| Checkout | Guest checkout works; address errors are shown clearly; shipping cost and tax are correct for the address |
| Payment | Each payment method succeeds in test mode; a declined payment shows an error and no order is created; a double click does not pay twice |
| Orders and emails | The confirmation page and email show the right items and total; the order appears in the admin; stock goes down |
| Account | Sign-up, sign-in and password reset work; a customer sees only their own orders |
| Returns and refunds | A refund from the admin updates the order status and notifies the customer |
Test types to cover
| Test type | What to check in an online shop |
|---|---|
| Functional | Every step from product page to order confirmation |
| Payment | All payment methods, declined payments, refunds, always in the provider's test mode |
| Cross-browser and mobile | Cart and checkout in Chrome, Safari, Firefox and Edge, on phone and desktop |
| Performance | Product list, product page and checkout stay fast when many customers visit |
| Security | HTTPS everywhere; customers cannot see other customers' orders; admin pages need a sign-in |
| Accessibility | Checkout works with the keyboard; form errors are clear |
| Regression | The main purchase flow is re-run after every change |
From plan to test cases
The plan stays short; details live in the test cases. A test case template helps keep them consistent, and the website testing checklist covers the quick checks every site needs. If the shop owner signs off the release, add a UAT test plan.
Tebugging offers AI-suggested test planning: it suggests scenarios and edge cases from your description, and you keep the ones that matter. Plans, test cases and results stay together in one place. For the terms used here, see test plan vs test strategy vs test case.
Frequently asked questions
What should a test plan for an ecommerce website include?+
Scope, risks, test types, environments and test data, test scenarios for catalog, cart, checkout, payment and orders, entry and exit criteria, schedule and roles, and how results are reported.
What are the most important test scenarios for an online shop?+
The purchase flow: add to cart, apply a discount, check out as guest and as a customer, pay with each payment method, handle a declined payment, and receive the right order confirmation.
How do you test payments without spending money?+
Use the payment provider's test mode on a staging environment. It accepts test card numbers for successful and declined payments, so no real money moves.
How long should an ecommerce test plan be?+
Two to four pages is usually enough. Keep the plan short and link to the detailed test cases instead of copying them in.
Keep reading
New to a term? See the QA and AI testing glossary.
Plan, run and analyze your web tests with AI.
Start on the free plan. No credit card required.
Start Testing Free