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 +2 more
5/12/2021
cs.SE

Official code: ashfaq92/swfc-art (0 stars, Java, last commit 2021-05-13).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

ashfaq92/swfc-artOfficial100%

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

00JavaNov 12, 20205 years ago
hnswlibjava

Similar Papers

Cite this paper

@article{ashfaq2021swfcart,
  title  = {SWFC-ART: A Cost-effective Approach for Fixed-Size-Candidate-Set Adaptive Random Testing through Small World Graphs},
  author = {Muhammad Ashfaq and Rubing Huang and Dave Towey and Michael Omari and Dmitry Yashunin and Patrick Kwaku Kudjo and Tao Zhang},
  year   = {2021},
  eprint = {2105.05490},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.05490}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2105.05490.svg)](https://codeofpaper.com/paper/2105.05490)

Discussion