One of the characteristics of object-oriented software is the complex dependency that may exist between classes due to inheritance, association and aggregation relationships. Hence, where to start testing and how to define an integration strategy are issues that require further investigation. This paper presents an approach to define a test order by exploiting a model produced during design stages (e.g., using OMT, UML), namely the class diagram. Our goal is to minimize the number of stubs to be constructed in order to decrease the cost of testing. This is done by testing a class after the classes it depends on. The novelty of the test order lies in the fact that it takes account of: (i) dynamic (polymorphism) dependencies; (ii) abstract classes that cannot be instantiated, making some testing levels infeasible. The test order is represented by a graph showing which testing levels must be done in sequence and which ones may be done independently. It also provides information about the classes involved in each level and how they are involved (e.g., instantiation or not). The approach is implemented in a tool called TOONS (Testing level generator for Object-OrieNted Software). It is applied to an industrial case study from the avionics domain.
面向对象软件的特征之一是由于继承,关联和聚合关系,类之间可能存在复杂的依赖关系。因此,从哪里开始测试以及如何定义集成策略是需要进一步调查的问题。本文提出了一种通过利用在设计阶段(例如,使用OMT,UML)生成的模型(即类图)来定义测试订单的方法。我们的目标是最大程度地减少要构建的存根的数量,以降低测试成本。这是通过在一个类依赖的类之后对其进行测试来完成的。测试订单的新颖性在于它考虑了以下事实:(i)动态(多态性)依赖性; (ii)无法实例化的抽象类,使某些测试级别不可行。测试顺序由一个图表表示,该图表显示哪些测试级别必须依次执行,哪些测试级别可以独立完成。它还提供有关每个级别中涉及的类以及它们如何涉及的信息(例如,是否实例化)。该方法在称为TOONS(面向对象的软件的测试级别生成器)的工具中实现。它被应用于航空电子领域的工业案例研究。 P>
机译:平等等于不平等:对面向对象软件的类级别测试中的等效和非等效标准的重新审视
机译:通过面向对象的软件的逆向工程进行设计水平假设的测试
机译:面向对象的进化测试:进化方法为面向对象的软件生成测试数据
机译:面向对象软件的测试级别
机译:利用设计模式来提高面向对象软件的测试效率。
机译:视口:一种面向对象的方法集成了用于平铺和堆栈模式显示的工作站软件
机译:TaCCLE:类和集群级别的面向对象软件测试方法
机译:面向对象软件的测试。 UmL在测试中的应用。