Skip to content

Instantly share code, notes, and snippets.

@mjgiarlo
Created December 15, 2011 15:53
Show Gist options
  • Save mjgiarlo/1481594 to your computer and use it in GitHub Desktop.
Save mjgiarlo/1481594 to your computer and use it in GitHub Desktop.
Sample user story & acceptance criteria
User Stories
============
1. As an authorized user, I want to upload a copy of my dissertation to the repository services platform so that I can manage its preservation and dissemination.
2. ...
Acceptance Criteria
===================
Scenario 1: User is not authenticated
Given the user is an authorized user
And she has not yet authenticated
When she visits the URL for uploading files
Then she is challenged by a login screen
And, upon authentication, she is redirected to the upload form
Scenario 2: User is not authorized
Given the user has successfully authenticated
And she is not an authorized user
When she visits a URL for uploading files
Then she sees an error page stating clearly that she is unauthorized and provides a contact email address
Scenario 3: User gets to the form
Given the user is an authorized user
And she has authenticated
When she visits the URL for uploading files
Then she sees the upload form
And may proceed to fill it out
Scenario 4: User submits the upload form with files attached
Given the user is authenticated and authorized
And she has filled out all required fields within the form, including one or more files
When she submits the form
Then her files are uploaded into the repository services platform
And she is redirected to a view that confirms the success of this operation
...
@taniasbf
Copy link

great help in writing acceptance criteria .

@vastris
Copy link

vastris commented Jul 7, 2023

Your sample user story and acceptance criteria demonstrate a clear understanding of the required functionalities. The acceptance criteria provide well-defined scenarios for different user situations, ensuring proper authentication, authorization, and successful file upload. To learn more about how to write acceptance criteria, you can explore various online resources and tutorials that provide guidelines and examples specific to your project or framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment