Random Testing: Theoretical Results and Practical Implications
The DOI matches its Crossref record; 43 of the 43 references it cites were found in a registry or an index.
Abstract
A substantial amount of work has shed light on whether random testing is actually a useful testing technique. Despite its simplicity, several successful real-world applications have been reported in the literature. Although it is not going to solve all possible testing problems, random testing appears to be an essential tool in the hands of software testers. In this paper, we review and analyze the debate about random testing. Its benefits and drawbacks are discussed. Novel results addressing general questions about random testing are also presented, such as how long does random testing need, on average, to achieve testing targets (e.g., coverage), how does it scale, and how likely is it to yield similar results if we rerun it on the same testing problem (predictability). Due to its simplicity that makes the mathematical analysis of random testing tractable, we provide precise and rigorous answers to these questions. Results show that there are practical situations in which random testing is a viable option. Our theorems are backed up by simulations and we show how they can be applied to most types of software and testing criteria. In light of these results, we then assess the validity of empirical analyzes reported in the literature and derive guidelines for both practitioners and scientists.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
An introduction to probability theory and its applications
(1958) · Journal of the Franklin Institute · doi:10.1016/0016-0032(58)90688-4 · Cited by 29,269
Adhi Harmoko, S., M.Komp, Jacquard, J. M., Zuse, K., & Eniac (2005) · Cited by 18,035
The Art of Computer Programming
Knuth, D. E. (1968) · Cited by 16,320
The Art of Computer Programming
Whitesides, G. E. (1970) · Nuclear Science and Engineering · doi:10.13182/nse70-a19705 · Cited by 6,008 · cited 1×
“Properties of this distribution are P ðX xÞ ¼ 1 ð1 pÞx 8x 0; ð1Þ P ðX ¼ xÞ ¼ ð1 pÞx 1p 8x 1; E½X ¼ 1=p: Notice that P ðX ¼ xÞ ¼ 0 for nonpositive values of x.”
Mersenne twister: a 623-dimensionally equidistributed uniform pseudo-random number generator
Matsumoto, M., & Nishimura, T. (1998) · ACM Transactions on Modeling and Computer Simulation · doi:10.1145/272991.272995 · Cited by 5,780 · cited 1×
“Properties of this distribution are P ðX xÞ ¼ 1 ð1 pÞx 8x 0; ð1Þ P ðX ¼ xÞ ¼ ð1 pÞx 1p 8x 1; E½X ¼ 1=p: Notice that P ðX ¼ xÞ ¼ 0 for nonpositive values of x.”
Motwani, R., & Raghavan, P. (1995) · Cambridge University Press eBooks · doi:10.1017/cbo9780511814075 · Cited by 5,123
Hints on Test Data Selection: Help for the Practicing Programmer
DeMillo, R. A., Lipton, R. J., & Sayward, F. G. (1978) · Computer · doi:10.1109/c-m.1978.218136 · Cited by 2,081 · cited 1×
“Elements in the binary space could not be mappable to the test case domain.”
BackgroundDART: directed automated random testing
Godefroid, P., Klarlund, N., & Sen, K. (2005) · ACM SIGPLAN Notices · doi:10.1145/1064978.1065036 · Cited by 2,067
Handbook of software reliability engineering
Lyu, M. R.-T. (1996) · McGraw-Hill, Inc. eBooks · Cited by 1,592
DART: directed automated random testing
Godefroid, P., Klarlund, N., & Sen, K. (2005) · Proceedings of the 2005 ACM SIGPLAN conference on Programming language design and implementation · doi:10.1145/1065010.1065036 · Cited by 1,570 · cited 1×
“As rules of thumb based on strong empirical evidence do not appear in the literature, we can only suggest using both unconstrained random testing as well as constraints that are common in the literature, such as ½ 100; 100 .”
Method
Cited by
Arcuri, A., & Briand, L. (2014) · Software Testing, Verification and Reliability · doi:10.1002/stvr.1486 · Cited by 622
Self-citationFraser, G., & Arcuri, A. (2013) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2012.14 · Cited by 586
Self-citation(2021) · doi:10.1109/tse.2019.2946563 · Cited by 574
A Large-Scale Evaluation of Automated Unit Test Generation Using EvoSuite
Fraser, G., & Arcuri, A. (2014) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/2685612 · Cited by 242
“For “simple” test generation techniques such as random 8:2 G. Fraser and A. Arcuri testing, it is possible to provide rigorous answers based on theoretical analyses (e.g., see Arcuri et al. [2012]).”
MethodSelf-citationRESTful API Automated Test Case Generation with EvoMaster
Arcuri, A. (2019) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3293455 · Cited by 236
“One of the easiest approaches is to generate test cases at random [9].”
BackgroundSelf-citationLiang, H., Pei, X., Jia, X., Shen, W., & Zhang, J. (2018) · IEEE Transactions on Reliability · doi:10.1109/tr.2018.2834476 · Cited by 231
“[106] discussed the scalability of fuzzing, which under certain conditions, can fare better than a large class of partition testing techniques.”
BackgroundFuzzBench: an open fuzzer benchmarking platform and service
Metzman, J., Szekeres, L., Simon, L., Sprabery, R., & Arya, A. (2021) · Proceedings of the 29th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3468264.3473932 · Cited by 197
“The effect size is determined using the Vargha-Delaney A12 measure and the null hypothesis is rejected with the two-tailed Mann-Whitney U test (example provided in Figure 1), as recommended by Arcuri et al. [4].”
MethodMetamorphic testing for software quality assessment: A study of search engines
Zhou, Z. Q., Xiang, S., & Chen, T. Y. (2016) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2015.2478001 · Cited by 163
“For software verification purposes, random testing is quite cost-effective for fault detection when compared with other techniques [46], [47].”
BackgroundMethodAn Industrial Evaluation of Unit Test Generation: Finding Real Faults in a Financial Application
Almasi, M. M., Hemmati, H., Fraser, G., Arcuri, A., & Benefelds, J. (2017) · 2017 IEEE/ACM 39th International Conference on Software Engineering: Software Engineering in Practice Track (ICSE-SEIP) · doi:10.1109/icse-seip.2017.27 · Cited by 163
“Random testing [4] is perhaps the most basic and straight forward form of test generation [9], as it consists of invocation of functions with random inputs.”
BackgroundSelf-citation
Metadata
- Authors
- Arcuri, A., Iqbal, M. Z., & Briand, L.
- Venue
- IEEE Transactions on Software Engineering
- Published
- 2012-03
- Volume
- 38
- Issue
- 2
- Pages
- 258-277
- ISSN
- 0098-5589 (ISSN-L)
- OpenAlex
- W2012210872
- Cited by
- 176
- References
- 43
- FWCI
- 40.09
- Type
- journal article
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.