Acceptance criteria tốt giúp dev, QA, PO hiểu cùng một kết quả mong đợi.
Mục tiêu
- Viết AC bằng Given/When/Then
- Dùng should đúng cách
- Tránh requirement mơ hồ
Given / When / Then
textGiven a guest user is on the checkout page When the user submits the order without a phone number Then the order should be created successfully
Bad vs good
Bad:
textCheckout should work correctly.
Good:
textGiven a guest user submits a valid order, when the phone number is empty, then the system should create the order and show a warning message.
AC checklist
- có actor
- có condition
- có action
- có expected result
- testable
Bài tập nhanh
Viết 3 acceptance criteria cho tính năng reset password.