Oop 如何发出用例结束的信号?
假设我正在制作一个关于填写测验的Oop 如何发出用例结束的信号?,oop,uml,use-case,Oop,Uml,Use Case,假设我正在制作一个关于填写测验的用例。你只有5分钟的时间来完成测验。在执行“填写测验”的用例时,我应该如何表示有一个时间限制,然后用例完成?我只是用文字写,还是有更正式的用法 我的用例可以是什么的草图: 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 possibl
用例。你只有5分钟的时间来完成测验。在执行“填写测验”的用例
时,我应该如何表示有一个时间限制,然后用例
完成?我只是用文字写,还是有更正式的用法
我的用例可以是什么的草图:
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.
我可以将操作放在上面显示的所有操作之间,以便在剩余时间结束时进行检查,但可能有更好的方法来显示这一点
谢谢您可以使用另一种流超时情况,如
Alternative Flow 1: Timeout
2. The System detects that ...
更精确一点,但大体上同意另一个答案,对于这种情况,Alistair Cockburn(编写有效用例)建议使用扩展用例(备用流),这将在扩展点上有时间限制。在文本形式中,您可以很容易地使用场景行的行数范围,其中可能发生超时