发布于 2017-04-20 20:17:34
用例涉及一个参与者和特定参与者在给定功能或路径中的流程。这些经常被分组,所以您有一组用例来说明每个场景。
方案涉及一种情况,这种情况可能有单个或多个参与者采用给定的功能或路径来解决方案。
您可以看到这里的主要区别是“透视图”。通常,用例比场景更细。在开发这些场景时,通常需要提出一个场景,然后定义适合于该特定场景的所有用例。由于用例记录了编写后的场景,文档足迹通常只是其中一种或另一种,而不是两者兼而有之,这也很可能是为什么名称有时会被互换,而不是作为单独的东西存在。许多项目不需要用例的粒度,只使用场景,而不是将其分解为用例中特定的参与者流。
发布于 2017-04-20 20:19:20
用例比场景更细粒度和更详细。场景描述了用户可能使用您的软件的某些目的,以及实现该目的所需的软件的所有功能。例如:
生成每月发票批次
1. User imports data from spreadsheets describing completed work
2. System identifies inconsistencies in data (cross check between
client ref, order code, and expected job type)
3. If consistent, PDFs produced and an XML file for import into account
system用例分解了场景中的特定项:
生成PDF发票
1. Collect all work items within one month occurring under the same
order code
2. Add them line-by-line to invoice template document
3. Allocate sequential invoice number
4. Fill in client details
5. Calculate totals
6. If invoice overflows space in template, split later items into
another invoice
7. Record invoice totals (will be used in xml export later)
8. Convert filled in template to a PDF file and store in the output
directory场景描述了高级别的软件,并给出了系统存在的每个特性的基本原理。用例给出了每个特性的详细描述。
https://softwareengineering.stackexchange.com/questions/347498
复制相似问题