Search the courses, subjects, tracks, games and features, or jump straight to a page.
Learn it your way
A short class with Sarah and her students. The other ways are under More.
Sign up free to listen. Transcripts are free to read.
To start off, can anyone tell me what a user story is?
Isn't it just a way to say what features we need?
Great point! A user story is a short description of a feature from the end-user's perspective. Why is it useful to frame it that way?
It helps us understand the user's needs better!
Exactly! The typical format is 'As a [type of user], I want [goal], So that [reason/benefit].' Let's create a user story together for a new feature.
How about 'As a reader, I want to bookmark articles so that I can read them later'?
Fantastic! That’s a well-structured user story. Remember, it clarifies the user's needs and intention.
Now, let's talk about the INVEST model. Does anyone know what those letters stand for?
Hmm, Independent, Negotiable... um, I can’t remember the rest!
No problem! It’s easy to remember if you think of it as needing to be small enough to complete within a sprint, and testable. Can anyone guess what 'testable' means in this context?
I think it means we need to have clear criteria to check if it’s done?
That’s it! Acceptance criteria define conditions for acceptance and testing and are crucial for aligning the development team's understanding.
Let’s focus now on acceptance criteria. Can anyone provide examples of what might qualify for acceptance criteria in a user story?
I think we could say 'a reset password link is sent to the user's email'?
Exactly! And it should also have other conditions like 'the link expires after 24 hours.' Why do we need multiple criteria?
It ensures all requirements are covered for testing!
Right! It creates a shared understanding between stakeholders and the development team, facilitating better communication.
Let’s shift gears to Gherkin language. Does anyone know how to express an acceptance test using Gherkin syntax?
Isn't it 'Given, When, Then' format?
That’s correct! Can someone provide an example using this structure for our previous user story?
Okay, how about: 'Given the user is on the login page, When the user clicks on forgot password, Then a reset link should be sent to their email.'
Perfect! You've just demonstrated how Gherkin creates clarity and testability in user stories.
A concise description of a user's need or goal.
Guidelines ensuring user story quality, which include Independence, Negotiability, Value, Estimability, Size, and Testability.
Specific conditions that a user story must fulfill to be considered complete.
A structured format for writing acceptance tests that improves clarity and collaboration.
User stories tell a tale, / From demands they will prevail. / With INVEST they won't fail, / Clear criteria form the trail.
Imagine a shopkeeper who always listens to her customers. She crafts clear stories of what they need, ensuring her goods truly fit their desires. Every time she updates her inventory, she thinks in terms of who wants what and why, perfecting her craft.
Remember the INVEST model: I for Independent, N for Negotiable, V for Valuable, E for Estimable, S for Small, T for Testable. Use the acronym I-N-V-E-S-T to recall easily!
INVEST: Independent, Negotiable, Valuable, Estimable, Small, Testable.
Term
What is a User Story?
Click to flip
Term
What does INVEST stand for?
Click to flip
Term
Why are Acceptance Criteria important?
Click to flip
Term
What is Gherkin Language?
Click to flip
A brief, informal description of a feature from the user’s perspective.
A checklist for crafting effective user stories: Independent, Negotiable, Valuable, Estimable, Small, Testable.
Conditions that define the boundaries and requirements for user story acceptance.
A structured language used in Behavior-Driven Development for writing test cases in a readable format.
This section underscores the importance of writing clear and testable user stories in Agile projects, emphasizing the use of acceptance criteria to define completion conditions.
In Agile projects, writing effective user stories is vital for Business Analysts. This section details how user stories should be constructed to be clear and testable. It covers the use of the INVEST criteria and acceptance criteria to ensure development aligns with business needs.
In the Agile framework, user stories are a crucial mechanism for defining functional requirements. They should not only express need but must also be clear and testable to ensure that the development team accurately delivers what the business requires.
A user story is typically structured in the format:
As a [type of user],
I want [goal],
So that [reason/benefit].
For instance: As a job seeker, I want to upload my resume so that I can apply for jobs quickly. This structure helps clarify the user’s perspective and need.
The INVEST checklist ensures that each user story possesses desirable qualities:
Acceptance criteria define a user story's boundaries and requirements for being accepted as complete. Examples include conditions like sending a reset password link to a registered email that expires after 24 hours. This assures that all stakeholders have a shared understanding, ensuring clarity and facilitating testing.
Utilizing Gherkin syntax in Behavior-Driven Development (BDD) allows teams to express acceptance criteria in a structured way, using the format:
Given [precondition]
When [action]
Then [expected result].For example, a successful password reset implementation can be detailed using Gherkin to illustrate its logic clearly.
The ultimate goal in crafting user stories is to ensure that they convey a detailed yet succinct narrative. A well-written user story aids in motivation and clarity for the development team, guiding them in producing the right outcomes.
"A great user story tells a mini-story with a purpose — and leaves no room for confusion."