How to write a User Story
User Story is an informal, natural language description of Features of a software system. User Stories are written from the perspective of an end user of a system.
The Why / Reason behind the Feature
The most important part of writing a User Story is to know about the Why. Knowing the "Why" helps everyone in the team to be more productive.
Writing a descriptive Subject
Story Subject is the first thing the Owner sees. Make sure the subject provides an understandable Big Picture of what needs to be done and why.
As a <role> I want to be able to <goal / need> so that <why>
A Scenario for all Seasons! ;)
Not only the Owner should understand the Scenario but also all members that are involved in MG's Development Cycle of a Feature.
You can pick the following lines:
- Given: When system is showing a message
- When: When going to the next step
- And: Joining two action
- Then: A result of action
The more clear, the faster to develop!
Do not underestimate the power of "Important Notes" when writing a User Story. Important Notes can be written underneath the Scenario.
Evidence that can help?
Attach useful evidence as much as possible. Don't leave other members, with a bare screenshot, Instead use highlighting/drawing tools to define where you want to point in screenshots.
An example of a User Story:
As a User I want to be able to login so that I access the dashboard
- Given: Please enter your username
- Given: Please enter your password
- When: I enter my username
- Input Type Email
- And: I enter my password
- Input Type Password
- Then: I click on Login button
- Only one click at a request cycle possible
- When: Username & Password match
- If not match, See the note
- Given: You have successfully logged in
- Show in a green success popup
- Then: I am redirected to the dashboard page
Important Note:
Username & Password doesn't match? Show a proper meaningful message in a popup