Acceptance criteria define the conditions a feature must satisfy before it can be accepted. They make requirements testable for developers, testers, product owners, and business users.
Format
Given [context], when [action], then [expected result].
Login example
User story: As a registered user, I want to log in so that I can access my account.
- Given the user enters valid credentials, when they select login, then they are taken to the dashboard.
- Given the user enters an incorrect password, when they select login, then an error message is displayed.
- Given the account is locked, when the user tries to log in, then access is denied and the reset option is shown.
Trade worklist example
User story: As an operations analyst, I want to view unmatched trades so that I can investigate reconciliation breaks.
- Given a trade exists in the internal system but not the external file, when reconciliation runs, then the trade appears as unmatched.
- Given a trade is unmatched, when the user opens the worklist, then the trade ID, counterparty, product, amount, and status are displayed.
- Given the user filters by counterparty, when the filter is applied, then only breaks for that counterparty are shown.
Report export example
- Given open breaks exist, when the user selects export, then a CSV file is downloaded.
- Given no open breaks exist, when the user selects export, then the system displays a no records message.
- Given the user has applied filters, when the export runs, then only filtered records are included.