2010-07-16 45 views
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. 

我只是把操作如上圖所示,檢查時剩下的時間已經過去所有那些之間,但也有可能是一個更好的方式來證明這一點。

感謝

回答

6

您可以使用其他的流程超時的情況下,像

Alternative Flow 1: Timeout 
2. The System detects that ... 
0

爲了更精確一點,但與一般的其他答案達成一致,對於這個情況,阿利斯泰爾·科伯恩(編寫有效用例)建議使用擴展用例(備用流),這將在其擴展點中指定時間限制。在文本形式中,您可以輕鬆使用可能發生超時的情節行的行數範圍。