A functional test checks that a feature does what its requirement says, one behaviour per row, including what should happen when the input is wrong. This page shows a functional test template with six worked examples for an example online shop, and gives it to you as an Excel workbook, a CSV file or Markdown.
How to use it#
- Read the examples above. Each row quotes the requirement it covers, so you can see at a glance which requirements have rows and which have none.
- Select Download .xlsx for a workbook with a How to use tab, the examples and 20 blank rows, or Download .csv to import the rows into another tool.
- Copy each requirement into the Requirement column, then write a row for every behaviour it describes, the refusals included.
- Run the rows when the feature is built and again when it changes, and set Status as you go.
From a requirement to rows#
The examples take two requirements and turn each into several rows. "Users can save items to a wishlist" becomes saving an item, removing it, and what happens when someone signed out tries to save one. "Quantities from 1 to 10 per item" becomes the lowest quantity, a number above the highest, and zero. Limits like these are where many bugs live, so a row at the limit and a row just past it are worth more than several rows in the middle. One example row failed: saving an item while signed out, the case the requirement says least about.
Writing good rows#
Keep one behaviour per row, so a failure points at one thing. Write expected results you can check, such as "the button changes to Saved", never "works correctly". When a requirement is unclear, write the row anyway and ask; a test case is often the first place a gap in a requirement shows.
Questions#
What is the difference between functional and integration testing?#
Functional tests check one feature against its requirement. Integration tests check the hand-offs between your app and other systems.
How many rows does a requirement need?#
At least one for the normal path and one for each way it can be refused or reach a limit.
Is the template free?#
Yes. Download it without an account and use it in your own plans and tools.
Will these examples fit my app?#
No. They are for an example online shop. Replace them with your own requirements and keep the columns.