There is often a preference for how features will work. This is often based on business rules, compliance needs, or process-driven requirements. These are often written as “acceptance criteria”.
Write the acceptance criteria as bullet points
- Must not use an invalid credit card number
- Must not use an expired credit card
- Must include the CCV / security code
- Must apply 5% surcharge
Date-driven criteria
If the item needs to be delivered by a specific date, write the date and any related rationale as part of the acceptance criteria.
Behaviour-driven criteria
When there is a workflow or user experience that is expected of the User Story, write a this as acceptance criteria. GIVEN/WHEN/THEN format is useful pattern to use.
GIVEN I’ve got items in my shopping card
AND I get to the payment area
WHEN I enter the data
THEN it validates the credit card information
AND THEN I receive a message indicating the information is correct before it asks me to submit the data