Skip to main content

SpecBuddy guides

Acceptance criteria template with login examples

Acceptance criteria are the conditions that must be met for a team to accept a requirement’s implementation. They describe observable results and help a Product Owner, developer and tester agree what done means for that requirement.

Open SpecBuddy

Requirement, acceptance criterion or test case?

A requirement states the needed behavior. An acceptance criterion states how that behavior will be judged. A test case adds the specific inputs and steps used to check a criterion. A team-wide Definition of Done may cover review and testing for all work; item-specific acceptance criteria clarify the particular behavior expected.

Choose a checklist or Given–When–Then

A checklist suits independent observable outcomes. Given–When–Then describes the starting context, action and expected result. Gherkin uses this structure in scenarios. Text or a .feature file does not execute a test on its own: automation requires implemented step definitions and a test environment.

Example: customer login

Too vague

The user can log in easily and securely.

Testable version

Given an active customer account, When the customer enters valid credentials, Then their personal home page is displayed. Given an incorrect password, When login is attempted, Then no session is created and a generic error message is shown.

Examples are teaching material, not security or business-policy recommendations. Agree your service’s rules and limits with your team.

Acceptance criteria for a login page

Success: an active customer enters valid credentials and sees their personal home page. Failure: invalid credentials create no session and show a generic error message. Missing field: the form identifies required information and does not send an incomplete request. Service failure: the customer sees a service-unavailable message and a partial login is not treated as success. Agree lockout rules, session duration and response time separately; these are not universal constants.

Turn vague wording into measurable results

Fast login does not specify workload, device or a time limit. If speed matters, agree a measurement environment and target. Each criterion should describe one checkable result. Avoid prescribing implementation unless it is a genuine constraint. Do not accept AI-proposed business rules until they have been confirmed.

Review before handing work to developers or AI

Review normal use, invalid input, permissions and failures with your team. In SpecBuddy, criteria belong to requirements, the AI quality checker proposes clarification questions and exports preserve requirement references. The score is advisory: the team decides approval and implementation must be verified with actual tests. The local workspace needs no account; AI actions send selected content for processing.

Copy-ready template

# Acceptance criteria

## REQ-1: [Requirement title]
User need: [who needs what and why]

### Success
Given [starting context]
When [action]
Then [observable outcome]

### Invalid input
Given [starting context]
When [invalid input]
Then [error message and data state]

### Permission or service failure
Given [restriction or unavailable service]
When [action is attempted]
Then [agreed safe outcome]

## Decisions to confirm
- Limits and measurement conditions:
- Open decisions and owners:
- Reviewers:

Before handoff

  • Are the starting context and expected result unambiguous?
  • Are there criteria for both success and failure?
  • Are necessary limits and measurement conditions agreed?
  • Can a tester demonstrate that every criterion is satisfied?
  • Has the team confirmed business rules and open decisions?

Sources and further reading