Faith Forge LabsCustom softwareStart with a project brief ↗

Acceptance examples that make software decisions testable

“Staff can approve requests” leaves almost every consequential question open. Which staff? Which requests? What changes after approval? What happens if someone edits the request while the approver is reading it? A useful acceptance example joins a starting situation to an action and an observable result.

Write examples before the demonstration. Otherwise a convincing screen can become the definition of success, even when it avoids the awkward part of the job.

Start with a record people can inspect

Consider a fictional equipment request for two monitors. The request belongs to an employee in the North office, has a delivery location, and needs a department manager's approval. Give it an identifier and a known version. Specify that the manager can see requests for this department and that the requester cannot approve their own submission.

The ordinary example is now concrete: the requester submits the complete draft; the assigned manager opens the submitted version and approves it; the request moves into the purchasing queue with the decision and its author visible. Purchasing receives a task. No supplier order has been placed merely because the approval succeeded.

A reviewer should be able to find the result after refreshing the page or returning through the queue. A transient green message alone is weak evidence that the record reached the intended state.

Add examples that separate plausible implementations

The most useful checks distinguish systems that look alike on the ordinary path:

  • Remove the delivery location. Submission should explain the missing information and preserve the rest of the draft.
  • Open the request as a manager from another department. The record and its attachments should be unavailable through direct links as well as navigation.
  • Change the quantity after the manager has opened the request. Decide whether approval is blocked until the newer version is reviewed.
  • Interrupt the response after submission. On return, the requester should be able to establish whether the request exists before creating another.
  • Remove the usual approver. The request needs a defined owner for reassignment, rather than an indefinite waiting state.

These outcomes are business decisions. A developer should not have to infer them from a button label.

Record evidence and unresolved choices

Keep each example short enough to execute. Record the user role, starting data, action, expected state, observed state and any downstream effect. Use harmless test records and test destinations. A failed example needs a consequence and an owner: a cosmetic spacing issue and an approval granted to the wrong person should not receive the same release treatment.

Where the desired outcome is unresolved, say so. “Awaiting purchasing decision on edited quantities” is more useful than an invented passing result. Once agreed, add the example to the project's continuing checks so a later change can be assessed against the same rule.

The workflow example shows how missing information, review and approval lead to different next actions. Use the project brief to bring one comparable sequence to the first conversation.