用例中的前置条件和后置条件

本文详细解释了用例中的前置条件和后置条件的概念。前置条件描述了触发用例执行前系统的状态;而后置条件则定义了用例执行完毕后系统的状态,无论执行的是主线流程还是备选流程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

A preconditions section definesall the conditions that must be true (i.e., describes the state ofthe system) for the trigger to meaningfully cause the initiation ofthe use case

Post-conditions are thestates the system can be in after the use case ends,such as systemstate or persistent data that is left when the use case iscomplete
A post-condition for a use case should be trueregardless of which alternative flows were executed; it should notbe true only for the main flow. If something could fail, you wouldcover that in the post-condition by saying “The action iscompleted, or if something failed, the action is not performed,”rather than just “The action is completed.”
eg.
Post-condition for the Control Light Use Case
On leaving this use case, the system remembers the currentbrightness level for the selected On/Off/Dim button
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值