Skip to content

Four ways to test the same checkout

Kevin Kissi

Kevin Kissi

· 2 min read
A laptop displaying Python code on a desk.
Photo by Bernd Dittrich on Unsplash (opens in a new tab)

Show me a shopping cart that can take a payment and display a receipt, and I can show you several different testing jobs hiding in that one journey. A functional check asks whether the order can be completed. A regression check asks whether a promise that held in the previous release still holds. An accessibility check asks whether somebody using a different input method can complete the same work. A load check asks what happens when many customers arrive together.

Each job needs its own evidence. A screenshot of a receipt is quite useful in a functional record. It says very little about keyboard focus, concurrent requests, or whether a discount calculation changed between releases. Calling them all “checkout tests” makes a reporting system simpler and a release decision harder.

One checkout, four checks. These checks protect different promises. A pass in one category cannot replace a missing result in another.
These checks protect different promises. A pass in one category cannot replace a missing result in another. Original explanatory figure.
Read the figure as text
Function
Order completes and a receipt appears.
Regression
The known basket still has the expected total.
Access
The customer completes checkout using a keyboard.
Load
The flow stays within agreed response targets under load.

Start with a question that can fail

Take the discount. Pick a basket whose expected total the product owner can explain. Record that total independently of the code under test. Run the transaction and inspect the amount charged as well as the amount displayed. There are now several places the check can catch a meaningful disagreement.

For keyboard access, use the same basket but change the question. Can a customer reach the discount control, understand its state, and complete payment using the keyboard? The test ought to report where the journey stopped if it failed. The total charged can be correct while this path remains unusable.

This was the practical motivation for building specialized testing agents at Zof. A specialist can collect observations that match its question and say what they establish. The hard part is combining the results without flattening their meaning. Four passing functional checks cannot fill an empty accessibility result. A release owner needs to see the empty space.

As generating software gets cheaper, the temptation is to generate a large number of tests and present the count as coverage. I prefer a slower question at the outset. Which customer promise is each check capable of disproving? A short set of genuinely different answers gives the team a much stronger starting point.

Kevin Kissi

About Kevin Kissi

Engineering Leader

Subscribe

Stay up to date with my newest posts