User Stories
User Stories
Phần tiêu đề “User Stories”User story là cách describe requirements từ góc nhìn người dùng.
Format
Phần tiêu đề “Format”As a [type of user]I want to [action]So that [benefit/value]Ví dụ
Phần tiêu đề “Ví dụ”### User Story 1: Login
As a registered userI want to login to my accountSo that I can access my private information
**Acceptance Criteria:**
- User enters valid email and password- System validates credentials- Successful login redirects to dashboard- Failed login shows error message- Account locks after 5 failed attempts### User Story 2: Password Reset
As a user who forgot passwordI want to reset my password via emailSo that I can regain access to my account
**Acceptance Criteria:**
- User clicks "Forgot Password"- User enters email address- System sends reset link to email- Link expires after 24 hours- User creates new passwordINVEST Criteria
Phần tiêu đề “INVEST Criteria”Good user stories are:
- Independent - Không phụ thuộc stories khác
- Negotiable - Có thể thảo luận, điều chỉnh
- Valuable - Mang giá trị cho user
- Estimable - Có thể ước lượng thời gian
- Small - Đủ nhỏ để complete trong 1 sprint
- Testable - Có thể test được
Acceptance Criteria
Phần tiêu đề “Acceptance Criteria”- Specific, measurable conditions
- Given/When/Then format
Given I am a logged-in userWhen I click the "Logout" buttonThen I should be redirected to the homepageAnd my session should be terminatedCommon Mistakes
Phần tiêu đề “Common Mistakes”❌ Too technical - “Implement OAuth2 authentication”
✅ User-focused - “Login with Google account”
❌ Too vague - “Improve performance”
✅ Specific - “Page loads in under 2 seconds”
❌ Too large - “Build e-commerce platform”
✅ Small - “Add item to shopping cart”