arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2209.02189cs.SE
收藏

面向对象的需求:一个用于规格说明、场景和测试的统一框架

Object-Oriented Requirements: a Unified Framework for Specifications, Scenarios and Tests

Maria Naumcheva, Sophie Ebersold, Alexandr Naumchev, Jean-Michel Bruel, Florian Galinier, Bertrand Meyer

AI总结:

本文提出统一框架,以类的概念统一描述对象、场景(用例/用户故事)及测试工件,使需求兼具面向对象技术的可扩展性与用例方法的实用性。

摘要:

工业界主导的需求规格说明实践中存在一个悖论:它们通常声称是面向对象(OO)的,但在很大程度上依赖于过程式(非OO)技术。用例和用户故事描述的是功能流程,而非对象类型。为了获得对象技术带来的好处(如可扩展性、可重用性、可靠性),需求应转而采用与OO设计和OO程序相同的数据抽象概念——类、继承、信息隐藏。许多人觉得用例和用户故事具有吸引力,是因为这些概念的简单性和实用性。我们能否将需求与面向对象原则相协调,并兼得两者之长?本文提出了一个统一框架。它表明,类的概念足够通用,不仅可以描述狭义上的“对象”,还可以描述用例和用户故事等场景,以及测试用例和预言机等其他重要工件。拥有一个统一框架,为需求开辟了兼具两种方法优势的道路:像用例和用户故事一样,它们反映利益相关者的实际观点;像面向对象的需求一样,它们易于演化和重用。

英文摘要:

A paradox of requirements specifications as dominantly practiced in the industry is that they often claim to be object-oriented (OO) but largely rely on procedural (non-OO) techniques. Use cases and user stories describe functional flows, not object types. To gain the benefits provided by object technology (such as extendibility, reusability, reliability), requirements should instead take advantage of the same data abstraction concepts - classes, inheritance, information hiding - as OO design and OO programs. Many people find use cases and user stories appealing because of the simplicity and practicality of the concepts. Can we reconcile requirements with object-oriented principles and get the best of both worlds? This article proposes a unified framework. It shows that the concept of class is general enough to describe not only "objects" in a narrow sense but also scenarios such as use cases and user stories and other important artifacts such as test cases and oracles. Having a single framework opens the way to requirements that enjoy the benefits of both approaches: like use cases and user stories, they reflect the practical views of stakeholders; like object-oriented requirements, they lend themselves to evolution and reuse.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑