ユーザーストーリーとは、アジャイルチームでの作業の計画と優先順位付けに使用される、価値のある小さな機能の一部です。
優れたユーザーストーリーは次の条件を満たす必要があります。
- 実証可能な機能の一部を提供する
- テスト可能な受け入れ条件を持つ
そして、次のようである必要があります。
- Independent(独立している)
- Negotiable(交渉可能である)
- Valuable(価値がある)
- Estimatible(見積もり可能である)
- Small(小さい)
- Testable(テスト可能である)
ストーリー形式
優れたユーザーストーリーは、誰が(<actor>
)、何を(<feature>
)、なぜ(<benefit>
)について記述する必要があります。
As an <actor>
I want a <feature>
So that <benefit>
例
As an mobile bank customer
I want to see balance on my accounts
So that I can make better informed decisions about my spending
Cucumber 言語を使用した受け入れ条件
受け入れ条件とは、ユーザー、顧客、その他の利害関係者に受け入れられるために、(ソフトウェア)製品が満たす必要がある条件です。
これらは、Cucumber 言語とGherkin 構文を使用して記述するのが最適です。
Feature: Some important feature
Scenario: Get something
Given I have something
When I do something
Then I get something else
Scenario: Get something different
Given I have something
And I have also some other thing
When I do something different
Then I get something different
…など、必要に応じてより多くのシナリオがあります。
例
Feature: Some important feature
Scenario: Do not show balance if not logged in
Given I am not logged on to the mobile banking app
When I open the mobile banking app
Then I can see a login page
And I do not see account balance
Scenario: Show balance on the accounts page after logging in
Given I have just logged on to the mobile banking app
When I load the accounts page
Then I can see account balance for each of my accounts