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

面向成本效益的自适应随机测试:一种近似最近邻方法

Toward Cost-effective Adaptive Random Testing: An Approximate Nearest Neighbor Approach

Rubing Huang, Chenhui Cui, Junlong Lian, Dave Towey, Weifeng Sun, Haibo Chen

AI总结:

针对自适应随机测试的高计算成本问题,提出基于近似最近邻的LSH-ART方法,通过局部敏感哈希高效识别近似最近邻,平衡测试有效性与效率。

摘要:

自适应随机测试(ART)通过在整个输入域中增加随机测试用例的多样性,增强了随机测试(RT)的测试有效性(包括故障检测能力)。许多ART算法已被研究,如固定大小候选集ART(FSCS)和受限随机测试(RRT),并已广泛应用于许多实际应用中。尽管ART广受欢迎,但它面临着测试用例生成过程中高计算成本的问题,尤其是随着测试用例数量的增加。尽管已经提出了几种策略来提高ART的测试效率,如遗忘策略和k维树策略,但这些算法仍然面临一些挑战,包括:(1)尽管这些算法可以减少计算时间,但其执行成本仍然很高,尤其是在测试用例数量较大时;(2)为了实现低计算成本,它们可能牺牲一些故障检测能力。在本文中,我们提出了一种基于近似最近邻(ANNs)的方法,称为局部敏感哈希ART(LSH-ART)。在计算不同测试输入之间的距离时,LSH-ART以高效的方式识别候选者的近似(不一定是精确的)最近邻。LSH-ART试图平衡ART的测试有效性和效率。

英文摘要:

Adaptive Random Testing (ART) enhances the testing effectiveness (including fault-detection capability) of Random Testing (RT) by increasing the diversity of the random test cases throughout the input domain. Many ART algorithms have been investigated such as Fixed-Size-Candidate-Set ART (FSCS) and Restricted Random Testing (RRT), and have been widely used in many practical applications. Despite its popularity, ART suffers from the problem of high computational costs during test-case generation, especially as the number of test cases increases. Although several strategies have been proposed to enhance the ART testing efficiency, such as the forgetting strategy and the k-dimensional tree strategy, these algorithms still face some challenges, including: (1) Although these algorithms can reduce the computation time, their execution costs are still very high, especially when the number of test cases is large; and (2) To achieve low computational costs, they may sacrifice some fault-detection capability. In this paper, we propose an approach based on Approximate Nearest Neighbors (ANNs), called Locality-Sensitive Hashing ART (LSH-ART). When calculating distances among different test inputs, LSH-ART identifies the approximate (not necessarily exact) nearest neighbors for candidates in an efficient way. LSH-ART attempts to balance ART testing effectiveness and efficiency.

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

↑