Skip to content

Insights

Nobody reads the test script until it fails

User acceptance testing is the last chance to find out the system is wrong before the customers do. It is usually spent ticking boxes.

All platformsTest

A test script is a peculiar piece of writing. It is composed with care, runs to forty steps, is reviewed and approved and filed, and is then read by nobody at all. The person who executes it is not reading. She is following, which is different, in the way that following a satnav is different from knowing the town.

Step 14: enter quantity 10. Expected result: line total 250.00. She enters 10. The line total is 250.00. Tick. This goes on for forty steps and three weeks, at the end of which there is a report with a great deal of green in it and everybody signs.

Then the system goes live, and on the second morning a customer orders eleven of something sold in boxes of four.

I have a certain sympathy for everybody in this story. The script was correct. The tester did what it said. The system did what the script expected. What nobody did was the one thing the exercise is named for, which is to let a user decide whether she accepts it. A user following a script written by a consultant is not testing the system. She is testing whether the consultant can predict the consultant's own configuration, and he generally can.

The misunderstanding is about what kind of test this is. Earlier testing asks, does the system do what the design says? That question suits a script. It suits a machine even better, and the more of it that is automated the less everyone suffers. Acceptance testing asks something else: can we run the business on this? And only people who run the business can answer, using the business's own awkward material.

So the first rule I would give is that users write their own scenarios. Not steps. Scenarios. "A customer rings to change the delivery address after the order has been picked." "A supplier sends one invoice for three purchase orders, and the price on one is wrong." The users know these by the hundred; they are simply the things that went wrong last month. Ask a credit controller for her ten worst days and you have a better test plan than any consultant could write, because he would never think of the customer who pays other people's invoices by mistake.

The second rule is to use real data, converted from the old system, with all its warts. A demonstration company with five customers called Customer 1 to Customer 5 will pass every test you can devise. Your actual customer master, with its two thousand special prices and the account that is on hold but not really, will not. Better to learn that in the test room.

Third, and this one is resisted: run the days in order. Most testing is done a transaction at a time, each in isolation. But a business is not a set of transactions. It is a relay. The order becomes a pick, the pick a shipment, the shipment an invoice, the invoice a receipt of cash, and the faults live in the handovers. So take a morning's real orders and push them all the way through, department by department, with the warehouse actually waiting on sales and finance actually waiting on the warehouse. Then run a month-end on the result. It is slow and it is tedious and it finds things nothing else does.

There is a human difficulty in all this, which I should admit. Testers are borrowed. They have their ordinary jobs, which have not gone away, and they are asked to test in the gaps. Under that pressure a script with tick boxes is a mercy: it can be done quickly, without thought, between phone calls. If you want thought, you must buy it with time. That means backfilling people properly for the weeks of testing, which costs money, and which is the first line struck from the budget. I can only say that it is cheaper than the alternative. Everything is cheaper than the alternative.

And one last thing, about the report with the green in it. A test that passes has told you very little. A test that fails has told you something true. So a good acceptance test is one where a fair number of things fail in the first week, are fixed, and fail less in the second. When I see a first round at ninety-eight per cent, I do not feel reassured. I feel that somebody has been following the satnav.

The scripted, repeatable kind of checking is still needed, in quantity, and automating the regression tests is how you free the users to do the part only they can do. Let the machine enter quantity 10 forty thousand times. It doesn't get bored.

The user's job is to order eleven.

Give the users their worst day

Write and tell us what is being tested, and when. We answer quickly, and we do read the scripts.