Definition of Done (DoD) is a list of requirements that a user story must adhere to for the team to call it complete.
While the Acceptance Criteria of a User Story consist of set of Test Scenarios that are to be met to confirm that the software is working as expected.
Acceptance criteria:
Acceptance criteria or Acceptance scenarios are an integral part of a story.
The acceptance tests define what actually has to be built to implement a story.
There is no allocated responsibility for writing acceptance criteria.
While it is usually the product owner or product manager who gets around to defining the functionality, just about anyone on the team could write acceptance criteria for user stories.
The writer must be careful to ensure that the acceptance criteria are written from the perspective of the end user, and for this reason the product owner (who is considered to be the voice of the customer) often undertakes this task.
The acceptance criteria written in this format Given - When - Then
Given - some initial context
When - an event occurs
Then - ensure some outcomes
The example for the acceptance criteria given below for the user story, "Customer withdraws cash from ATM:
User story:
As a customer
I want to withdraw cash from ATM,
So that i don't have to wait at the bank.
Acceptance criteria for the above user story:
Positive scenario:
Given the account is in credit
and the card is valid
and the dispenser account contains cash
When the customer requests cash
Then ensure the account is debited
and ensure cash is dispensed
and ensure the card is retuned
Negative scenario:
Given the account is in overdrawn
and the card is valid
When the customer requests cash
Then ensure a rejection message is displayed
and ensure cash is not dispensed
and ensure the card is retuned
Definition of Done:
The definition of Done is structured as a list of items, each one used to validate a Story, which exists to ensure that the Development Team agree about the quality of work they’re attempting to produce.
It serves as a checklist that is used to check each Product Backlog Item or User Story for completeness. Items in the definition of “Done” are intended to be applicable to all items in the Product Backlog,
For example, in the software industry, teams may need to ask some of the following questions to come up with their DoD:
- Code peer reviewed?
- Code completed?
- Code reviewed?
- Code checked-in?
- Unit tests passed?
- Functional tests passed?
- Acceptance tests completed?
- Product Owner reviewed and accepted?
Comments
Post a Comment