2

Use Caseクイズの記入について作成しているとしましょう。そのクイズに答えるのにたった5分しかありません。「クイズに答える」の場合Use Case、時間制限があり、その後Use Caseは終了したことをどのように通知すればよいですか?私は単にテキストでそれを書くのですか、それとももっと正式に使うものはありますか?

私のユースケースのスケッチ:

 1. The Actor tells the System he's ready to start the quiz.
 2. The System presents the Actor with the first question of the Quiz and its 4 possible answers and tells him how much time he has left.
 3. The Actor tells the System what is his chosen answer (a number between 1 and 4).

Repeat steps 2-3 until there are no questions left.

 4. The System registers the results of the quiz.

上記のすべての操作の間に操作を入れて、残り時間が経過するたびにチェックすることもできますが、これを表示するためのより良い方法がおそらくあります。

ありがとう

4

2 に答える 2

6

次のような別のフロー タイムアウト ケースを使用できます。

Alternative Flow 1: Timeout
2. The System detects that ... 
于 2010-07-16T17:20:41.270 に答える
0

もう少し正確に言うと、Alistair Cockburn (Writing effective Use Cases) は、拡張ポイントに時間制限がある拡張ユース ケース (代替フロー) を使用することを推奨しています。テキスト形式では、タイムアウトが発生するシナリオ行の行数の範囲を簡単に使用できます。

于 2010-09-24T21:23:03.970 に答える