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

找到输入空间的有效区域和无效区域之间的边界

Finding a boundary between valid and invalid regions of the input space

Bogdan Marculescu, Robert Feldt

摘要:

在鲁棒性测试的上下文中,输入空间的有效区域和无效区域之间的边界可能是错误输入的有趣来源。了解特定的被测软件(SUT)的边界对于与需求相关的验证至关重要。然而,找到SUT实际实现边界的位置是一个重要的问题,没有得到太多的关注。本文提出了一种寻找输入空间中有效区域和无效区域之间边界的方法。所提出的方法包括两个步骤。首先,由搜索算法引导的测试数据生成器生成更接近边界的有效测试用例,以最大化到已知有效测试用例的距离。第二,这些有效的测试用例经历突变,试图将它们推过边界,进入输入空间的无效部分。这将产生一对测试集,一个由边界有效侧的测试用例组成,另一个由边界外侧的匹配集组成,两个集之间只有很小的距离。该方法进行评估的一些例子,从现代程序设计语言的标准库。我们提出了一种方法,确定输入空间的有效和无效区域之间的边界,并将其应用于SUT,具有非连续的输入空间的有效区域。从开发的测试集对之间的小距离,以及一个测试集包含有效测试用例和其他无效测试用例的事实,我们得出结论,该对测试集描述了该输入空间的有效区域和无效区域之间的边界。在不同的距离和变异算子集合之间可以观察到行为的差异,但所有这些都表明该方法能够识别输入空间的有效区域和无效区域之间的边界。这是迈向更自动化的鲁棒性测试的重要一步。

英文摘要:

In the context of robustness testing, the boundary between the valid and invalid regions of the input space can be an interesting source of erroneous inputs. Knowing where a specific software under test (SUT) has a boundary is essential for validation in relation to requirements. However, finding where a SUT actually implements the boundary is a non-trivial problem that has not gotten much attention. This paper proposes a method of finding the boundary between the valid and invalid regions of the input space. The proposed method consists of two steps. First, test data generators, directed by a search algorithm to maximise distance to known, valid test cases, generate valid test cases that are closer to the boundary. Second, these valid test cases undergo mutations to try to push them over the boundary and into the invalid part of the input space. This results in a pair of test sets, one consisting of test cases on the valid side of the boundary and a matched set on the outer side, with only a small distance between the two sets. The method is evaluated on a number of examples from the standard library of a modern programming language. We propose a method of determining the boundary between valid and invalid regions of the input space and apply it on a SUT that has a non-contiguous valid region of the input space. From the small distance between the developed pairs of test sets, and the fact that one test set contains valid test cases and the other invalid test cases, we conclude that the pair of test sets described the boundary between the valid and invalid regions of that input space. Differences of behaviour can be observed between different distances and sets of mutation operators, but all show that the method is able to identify the boundary between the valid and invalid regions of the input space. This is an important step towards more automated robustness testing.

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

↑