Synthetic Monitoring of Checkout Flows: What to Test and How Often
A checkout can break while the home page stays up. Synthetic monitoring walks through the buying steps on a schedule, without live payments. Here is what to test and how often.
Synthetic monitoring runs a scripted test of your checkout on a schedule, acting like a customer. It adds a product to the cart, enters test details, and confirms that each step works, all without taking a live payment. For most stores, run the main flow every 5 to 15 minutes and a wider set of paths less often.
A simple uptime check only loads a page. A synthetic check proves that a customer can actually buy.
Why a checkout needs its own test
The checkout has many parts that must work together: the cart, shipping rates, tax, discount codes, the payment form, and the order confirmation. Most of them call outside services.
A failure in any one step stops the sale. Yet the home page can stay up and a normal uptime monitor shows green. Customers fail silently, and you may find out only from falling sales.
The key rule: no live payments
Do not complete real payments in a monitoring test. It costs money, creates fake orders, and can distort your reports.
Safer options:
- Use the payment provider's test mode. Most providers offer test cards or a sandbox. Check your provider's documentation for the exact test details.
- Use a staging store that copies production settings but uses test payments.
- Stop before the final payment step on production. Test everything up to the payment form, and confirm the payment form loads.
- Use a free or zero-value test product with a manual payment method, where your platform allows it, and mark the order clearly.
Never put real card numbers into a test script. Store any test credentials as secrets, and not in plain text in the script.
What to test, step by step
Build the test as a series of steps. Each step has a clear pass condition.
- Open a product page. Pass: the page loads and shows the product name and price.
- Add to cart. Pass: the cart shows the item and the right count.
- Open the cart. Pass: totals appear and no error is shown.
- Start the checkout. Pass: the checkout form loads.
- Enter a test address. Pass: shipping options appear with a price.
- Choose a shipping method. Pass: the total updates.
- Reach the payment step. Pass: the payment methods you expect are shown.
- Submit a test payment (in test mode only). Pass: the order confirmation page appears.
- Check the side effects. Pass: the order shows in the admin, and the confirmation email is sent.
The side effects in step 9 matter. A checkout can show "thank you" while the order never reaches your system.
Which paths to cover
One path is not enough. Choose the paths that carry most of your revenue and your risk.
- Guest checkout and logged-in checkout.
- Your top payment methods. Each one is a separate integration.
- Your main shipping countries. Rates and tax differ.
- A discount code. Codes can break on updates.
- A product with variants such as size or color.
- Mobile layout. Many buyers use phones.
Start with one path, the most common one. Add others over time.
How often to run
Pick the frequency by risk and cost.
- Core guest checkout, up to the payment step: every 5 to 15 minutes.
- Full test-mode flow with confirmation: every 15 to 60 minutes.
- Secondary paths such as extra payment methods, countries or logged-in flow: once or a few times per day.
- After every deployment, plugin update or theme change: run the full set at once.
More frequent checks find outages faster but create more load and more test data. Use a clear test order name or tag so you can filter the test orders out of reports, and clean them up on a schedule.
Run checks from more than one location if your tool supports it. This reduces false alarms from a single network problem.
Avoid false alarms
Flaky tests teach people to ignore alerts. Keep tests stable.
- Use stable selectors, such as an element ID or a data attribute, instead of text that changes.
- Add waits for elements, not fixed pauses.
- Require two failures in a row before alerting.
- Keep the test data clean. An out-of-stock test product will break the test.
- Update the script whenever the checkout design changes.
- Watch for bot protection and CAPTCHA, which can block your test. Ask your provider how to allow your monitor, for example with an allowlist.
What to do on failure
An alert should say which step failed and give proof.
- Save a screenshot and the error text of the failed step.
- Name the step in the alert, such as "failed at shipping options".
- Link to the run so a person can see what happened.
- Have a runbook: who checks first, and what to roll back.
Tools
You can write scripts with browser automation tools, or you can use a monitoring service that supports multi-step browser checks. Features differ, so check whether a tool supports multi-step flows, secrets, screenshots and scheduling. Uptrack (from the 2folk team) is one option among several for the basic uptime layer. Compare it with other tools on the features you need for scripted browser flows.
Whichever you pick, run a simple external uptime check as well. It is cheaper and faster, and it catches full outages.
A quick checklist
- Test mode or staging, never live payments.
- Test secrets stored safely.
- Steps from product page to confirmation, with pass conditions.
- Side-effect checks: admin order, confirmation email.
- Core path every 5 to 15 minutes.
- Wider paths a few times per day.
- Full set after each deployment.
- Two failures before an alert.
- Screenshots and step names in alerts.
- Test orders tagged and cleaned up.
Frequently asked questions
Can I test the checkout on my live store without paying?
Yes, in part. You can test everything up to the payment form on the live store. For the final step, use the payment provider's test mode or a staging store. Do not use real cards.
How often should I run a synthetic checkout test?
For the core path, every 5 to 15 minutes is a common choice. Run wider paths less often. Always run the full set after a deployment or update.
Will test orders pollute my reports?
They can. Give test orders a clear tag, a fixed test email or a special name. Then filter them out of reports and delete them on a schedule.
What if my checkout uses a CAPTCHA?
The CAPTCHA may block your monitor. Ask your platform or security provider how to allow your test traffic safely. Do not turn off bot protection for everyone.
Know that customers can buy
2folk builds commerce automation tools for Shopify and WooCommerce. See what we offer to keep your store running.
See our products →