arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1411.4327cs.SE
收藏

识别软件冗余的测试用例自动合成

Automatic Synthesis of Test Cases to Identify Software Redundancy

Matteo Brunetto

摘要:

软件系统可以包含冗余的实现元素,例如,可以产生不可区分的结果的不同方法。这种类型的冗余被称为内在的,如果它已经在软件中可用,虽然不是故意计划的。冗余可以是提高系统可靠性的关键因素。一些容错和自修复技术利用冗余来避免运行时的故障。不幸的是,手动推断哪些操作是等效的可能是昂贵的并且容易出错。在以前的工作中提出的技术允许自动合成的方法序列,相当于一个目标方法。然而,这种技术需要一个执行场景才能工作。目前,这种执行场景是手动生成的,这是昂贵的,并且使得该技术难以使用。本文提出了一种技术来生成执行场景的目标方法,我们正在寻找等价序列。在Java类Stack上的实验结果表明,该方法能够在合理的执行时间内正确生成执行场景。此外,生成的执行场景允许最大化上述技术的有效性。

英文摘要:

Software system can include redundant implementation elements, such as, different methods that can produce indistinguishable results. This type of redundancy is called intrinsic if it is already available in the software, although not intentionally planned. Redundancy can be a key element to increase the reliability of a system. Some fault tolerance and self-healing techniques exploit the redundancy to avoid failures at runtime. Unfortunately, inferring which operations are equivalent manually can be expensive and error prone. A technique proposed in previous work allows to automatically synthesizes method sequences that are equivalent to a target method. However this technique needs an execution scenario to work. Currently, this execution scenario is generated manually that is expensive and makes the technique hard to use. This paper proposes a technique to generate execution scenarios for a target method for which we are searching equivalent sequences. The experimental results obtained on the Java class Stack show that the proposed approach correctly generates execution scenarios within reasonable execution time. Besides, the execution scenarios generated allow to maximize the effectiveness of the technique described above.

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

↑