E-commerce software testing: cart, payment, accessibility and traffic peaks
On an online store, every defect in the purchase journey is counted in lost orders. And since 28 June 2025, the accessibility of e-commerce services has been a legal requirement in the EU, not just good practice.
- The purchase journey first: search, product page, cart, payment, confirmation.
- Promotions break calculations: stacking, thresholds, rounding, expired codes.
- Accessibility has been mandatory in the EU since 28 June 2025 for e-commerce services, except micro-enterprises.
- Peaks are tested beforehand: sales, Black Friday, launches.
Oussama Belakhdar, QA architect and founder of AutomationDataCamp, has worked on testing projects for online stores. This page lists what we test first on an online shop or a marketplace. Our clients are not named.
What do the online retail figures say?
Figures published by the organisations cited, not results of our own engagements.
Why is testing an e-commerce site demanding?
- The site assembles many third-party services (payment, fraud prevention, delivery, reviews, search engine, transactional e-mails), each with its own outages.
- Commercial rules change every week: promotions, codes, free delivery thresholds, crossed-out prices.
- The journey must work on mobile, across browsers, with a keyboard and with a screen reader.
- Traffic is irregular: a TV spot, a sale or a newsletter multiplies the load within minutes.
Journeys to check first on an online shop
- Search and product page: relevant results, variants (size, colour), accurate stock display.
- Cart: add, quantity, remove, cart kept after login, item sold out during checkout.
- Promotions and codes: stacking, minimum threshold, expiry, shipping costs, rounding.
- Payment: approved, declined, 3-D Secure authentication passed, failed or abandoned, return to the site after the bank's page.
- After the order: confirmation e-mail, cancellation, withdrawal, partial refund.
- Checkout accessibility: keyboard, labels, contrast, error messages announced to screen readers.
Accessibility, 3-D Secure, withdrawal: the rules to check
Accessibility: European Accessibility Act and RGAA. Directive (EU) 2019/882 has made accessibility mandatory for e-commerce services since 28 June 2025; microenterprises (fewer than 10 employees and no more than €2 million in turnover or balance sheet) providing services are exempt. In France, web conformance relies on the RGAA, which is based on the WCAG criteria. Testing combines automated tools and manual checks.
Payment: PSD2 and 3-D Secure. Strong customer authentication under PSD2 (Directive (EU) 2015/2366, detailed by Delegated Regulation (EU) 2018/389) applies to online card payments; in practice it runs through the EMV 3-D Secure protocol published by EMVCo. The delegated regulation provides exemptions, for example for payments of €30 or less, up to €100 cumulated or five consecutive transactions without authentication. Each branch is tested: frictionless flow, challenge, failure, exemption accepted or refused by the bank.
Withdrawal function. Directive (EU) 2023/2673 adds to the Consumer Rights Directive an obligation, for contracts concluded online, to provide a clearly identifiable withdrawal function on the interface, to be applied from 19 June 2026. The button, its confirmation and the acknowledgement sent to the customer are in the test scope.
An example test case: the price before the reduction. Directive (EU) 2019/2161 added Article 6a to the Price Indication Directive 98/6/EC: any announcement of a price reduction must indicate the prior price, defined as the lowest price applied by the trader during a period of not less than 30 days before the reduction. A typical test builds a fictitious price history for one product (€80 for two months, €60 for a one-week flash sale, then €80 again), and launches a promotion at €64 announced as 20% off. Under the 30-day rule the reference price is €60, not €80, and the announced discount no longer holds. The test checks the computed reference price, the strike-through price on the product page, the cart and the confirmation e-mail. The directive allows exceptions (goods that deteriorate quickly, products on sale for less than 30 days, progressive reductions) and transposition varies by Member State, so each exception the shop relies on is tested as a separate case.
Preparing for peaks: sales, Black Friday, launches
A useful e-commerce load test reproduces shopper behaviour, not just a number of requests: many page views, a share of add-to-cart actions, a smaller share of payments, and spikes on featured products. We write that scenario with k6, run it on an environment close to production and watch the cart and payment first, where slowness costs orders.
Third-party services are simulated or warned in advance: a load test must not trigger a real payment provider's anti-fraud protections. The same scenario then serves as a performance regression test before every major commercial campaign.
How do we organise testing for an e-commerce site?
- Start from the revenue at stake. The checkout funnel and payment are covered before content pages; every major promotion gets its own calculation tests.
- Automate the funnel across browsers. Playwright replays the purchase journey on Chromium, Firefox and WebKit, in mobile and desktop views; API tests cover promotions and stock, k6 covers load, with automatic runs in your CI.
- Test cards and test accounts. Payment providers' test cards to simulate approval, decline and 3-D Secure; never customer data.
- AI, with a review. An assistant helps expand combinations of promotions and carts. A person validates each test with our 7-question checklist, as in our case study: from a PDF specification to Playwright tests.
Where should you start?
A practical first step is to automate the full purchase journey, from product page to confirmation, and run it on every release.
A QA audit reviews your application: a written assessment, a test strategy adapted to your industry and a costed action plan, in 5 days, for €1,000 excl. VAT as a fixed fee. Delivered remotely, in English or French, for companies in the US, the UK, Canada, Australia, Europe, the Gulf and the Nordics. The first scoping session is free.
See the QA audit at €1,000 excl. VAT
Frequently asked questions about e-commerce testing
Is accessibility mandatory for an e-commerce site?
In the EU, yes, since 28 June 2025 under the European Accessibility Act, except for micro-enterprises (fewer than 10 employees and under €2 million in turnover or balance sheet). The whole purchase journey must be usable, including with a keyboard.
What should be automated first on an e-commerce site?
The full purchase journey, promotion and shipping fee calculations, declined payment cases and automated accessibility checks. Playwright covers these journeys on Chromium, Firefox and WebKit.
How do you test 3-D Secure without a real bank card?
With the test cards the payment provider supplies in its test environment: they simulate frictionless authentication, a passed or failed challenge, a bank decline. Each branch of the journey can then be replayed automatically.
Can accessibility be tested automatically?
Only partly. Automated tools detect some errors (contrast, missing attributes); keyboard navigation, reading order and label relevance need a manual check, ideally with a screen reader.
How much does a QA audit cost at AutomationDataCamp?
The QA audit and diagnosis costs €1,000 excl. VAT as a fixed fee, over 5 days: a written assessment, a test strategy and a costed action plan. The first scoping session is free.
Other industries: Healthcare · E-invoicing · Finance · Blockchain · Logistics · Document management. All industries.
Page signed by Oussama Belakhdar, written with the help of AI. Regulatory references link to the official sources above; they are not legal advice.
Related articles

AI & ML for test automation
What AI concretely changes in test automation.
Read more : AI and ML for test automation
Integrating Automation into CI/CD
Jenkins, GitLab CI, GitHub Actions — practical examples.
Read more : Integrating Automation into CI/CD