Acceptance Criteria Template
A Gherkin-style acceptance criteria format (Given/When/Then) for writing testable, unambiguous conditions that AI can help generate from a user story or requirement.
Syntax
business-analyst-ai
Given [precondition or context]
When [the user or system performs an action]
Then [the expected outcome or system response]
And [optional additional assertion]
But [optional exception or negative case]Example
business-analyst-ai
Feature: User login
Scenario: Successful login
Given the user is on the login page
When they enter valid credentials and click Submit
Then they are redirected to the dashboard
And a session token is created
Scenario: Invalid credentials
Given the user enters an incorrect password
When they click Submit
Then an error message is shown
And no session is created