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

SWFC-ART:一种基于小世界图的固定数据集自适应随机测试方法

SWFC-ART: A Cost-effective Approach for Fixed-Size-Candidate-Set Adaptive Random Testing through Small World Graphs

Muhammad Ashfaq, Rubing Huang, Dave Towey, Michael Omari, Dmitry Yashunin, Patrick Kwaku Kudjo, Tao Zhang

摘要:

自适应随机测试(ART)通过利用大多数故障程序的故障导致输入的聚类特性来提高随机测试的故障检测效率:ART使用一种在软件输入域中均匀分布测试用例的采样机制。广泛使用的固定大小数据集ART(FSCS-ART)采样策略面临着二次时间开销,且随着软件输入域维数的增加而增加。在本文中,我们提出了一种基于小世界图的方法,可以提高计算效率的FSCS-ART:SWFC-ART。为了有效地执行最近邻查询的候选测试用例,SWFC-ART增量构造一个层次化的可导航的小世界图先前执行的,非故障引起的测试用例。此外,SWFC-ART在高维输入域的程序中表现出一致性。我们的模拟和实证研究表明,SWFC-ART减少了FSCS-ART的计算开销从二次到对数线性顺序,同时保持FSCS-ART的故障检测有效性,并在高维输入域保持一致。我们建议在实际的软件测试场景中使用SWFC-ART,在这些场景中,真实的程序通常具有高维输入域和低故障率。

英文摘要:

Adaptive random testing (ART) improves the failure-detection effectiveness of random testing by leveraging properties of the clustering of failure-causing inputs of most faulty programs: ART uses a sampling mechanism that evenly spreads test cases within a software's input domain. The widely-used Fixed-Sized-Candidate-Set ART (FSCS-ART) sampling strategy faces a quadratic time cost, which worsens as the dimensionality of the software input domain increases. In this paper, we propose an approach based on small world graphs that can enhance the computational efficiency of FSCS-ART: SWFC-ART. To efficiently perform nearest neighbor queries for candidate test cases, SWFC-ART incrementally constructs a hierarchical navigable small world graph for previously executed, non-failure-causing test cases. Moreover, SWFC-ART has shown consistency in programs with high dimensional input domains. Our simulation and empirical studies show that SWFC-ART reduces the computational overhead of FSCS-ART from quadratic to log-linear order while maintaining the failure-detection effectiveness of FSCS-ART, and remaining consistent in high dimensional input domains. We recommend using SWFC-ART in practical software testing scenarios, where real-life programs often have high dimensional input domains and low failure rates.

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

↑