{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,6,20]],"date-time":"2025-06-20T04:08:53Z","timestamp":1750392533317,"version":"3.41.0"},"reference-count":36,"publisher":"Association for Computing Machinery (ACM)","issue":"FSE","funder":[{"DOI":"10.13039\/501100001711","name":"Swiss National Science Foundation","doi-asserted-by":"crossref","award":["214989"],"award-info":[{"award-number":["214989"]}],"id":[{"id":"10.13039\/501100001711","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Softw. Eng."],"published-print":{"date-parts":[[2025,6,19]]},"abstract":"<jats:p>Adaptive Random Testing (ART) has faced criticism, particularly for its computational inefficiency, as highlighted by Arcuri and Briand. Their analysis clarified how ART requires a quadratic number of distance computations as the number of test executions increases, which limits its scalability in scenarios requiring extensive testing to uncover faults. Simulation results support this, showing that the computational overhead of these distance calculations often outweighs ART\u2019s benefits. While various ART variants have attempted to reduce these costs, they frequently do so at the expense of fault detection, lack complexity guarantees, or are restricted to specific input types, such as numerical or discrete data.\n \n \n \n \n \n \n \nIn this paper, we introduce a novel framework for adaptive random testing that replaces pairwise distance computations with a compact aggregation of past executions, such as counting the q-grams observed in previous runs. Test case selection then leverages this aggregated data to measure diversity (e.g., entropy of q-grams), allowing us to reduce the computational complexity from quadratic to linear. Experiments with a benchmark of six web applications, show that ART with q-grams covers, on average, 4\u00d7 more unique targets than random testing, and 3.5\u00d7more than ART using traditional distance-based methods.<\/jats:p>","DOI":"10.1145\/3715740","type":"journal-article","created":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T15:16:02Z","timestamp":1750346162000},"page":"533-553","source":"Crossref","is-referenced-by-count":0,"title":["Adaptive Random Testing with Q-grams: The Illusion Comes True"],"prefix":"10.1145","volume":"2","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-7825-3409","authenticated-orcid":false,"given":"Matteo","family":"Biagiola","sequence":"first","affiliation":[{"name":"Universit\u00e0 della Svizzera italiana, Lugano, Switzerland"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-5179-4205","authenticated-orcid":false,"given":"Robert","family":"Feldt","sequence":"additional","affiliation":[{"name":"Chalmers University of Technology, Gothenburg, Sweden"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3088-0339","authenticated-orcid":false,"given":"Paolo","family":"Tonella","sequence":"additional","affiliation":[{"name":"Universit\u00e0 della Svizzera italiana, Lugano, Switzerland"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2025,6,19]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1109\/TR.2019.2907577"},{"key":"e_1_2_1_2_1","volume-title":"Proceedings of the 20th International Symposium on Software Testing and Analysis ISSTA","author":"Arcuri Andrea","year":"2011","unstructured":"Andrea Arcuri and Lionel C. Briand. 2011. Adaptive random testing: an illusion of effectiveness? In Proceedings of the 20th International Symposium on Software Testing and Analysis ISSTA, Toronto, ON, Canada, July 17-21, 2011. 265\u2013275."},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1002\/STVR.1486"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1109\/TC.2016.2547380"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/361002.361007"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-66299-2_2"},{"key":"e_1_2_1_7_1","volume-title":"Proceedings of the ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering, ESEC\/SIGSOFT FSE, Tallinn, Estonia. 142\u2013153","author":"Biagiola Matteo","year":"2019","unstructured":"Matteo Biagiola, Andrea Stocco, Filippo Ricca, and Paolo Tonella. 2019. Diversity-based web test generation. In Proceedings of the ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering, ESEC\/SIGSOFT FSE, Tallinn, Estonia. 142\u2013153."},{"key":"e_1_2_1_8_1","unstructured":"Leo Breiman J. H. Friedman Richard A. Olshen and C. J. Stone. 1984. Classification and Regression Trees. Wadsworth."},{"key":"e_1_2_1_9_1","volume-title":"30th Annual International Computer Software and Applications Conference (COMPSAC\u201906)","author":"Chan Kwok Ping","year":"2006","unstructured":"Kwok Ping Chan, TY Chen, and Dave Towey. 2006. Forgetting test cases. In 30th Annual International Computer Software and Applications Conference (COMPSAC\u201906). 1, 485\u2013494."},{"key":"e_1_2_1_10_1","volume-title":"Chiang Mai","author":"Chen Tsong Yueh","year":"2004","unstructured":"Tsong Yueh Chen, Hing Leung, and I. K. Mak. 2004. Adaptive Random Testing. In Advances in Computer Science - ASIAN 2004, Chiang Mai, Thailand, December 8-10, 2004. 320\u2013329."},{"key":"e_1_2_1_11_1","volume-title":"Fourth International Conference on Quality Software, 2004. QSIC 2004. Proceedings.. 79\u201386","author":"Chen Tsong Yueh","year":"2004","unstructured":"Tsong Yueh Chen, R Merkel, PK Wong, and G Eddy. 2004. Adaptive random testing through dynamic partitioning. In Fourth International Conference on Quality Software, 2004. QSIC 2004. Proceedings.. 79\u201386."},{"key":"e_1_2_1_12_1","unstructured":"Software Freedom Conservancy. 2024. Page object models. https:\/\/www.selenium.dev\/documentation\/test_practices\/encouraged\/page_object_models\/ Accessed: 2024-09-01"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.7717\/peerj-cs.1625"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/3644032.3644455"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1002\/stvr.1914"},{"key":"e_1_2_1_16_1","volume-title":"2016 IEEE international conference on software testing, verification and validation (ICST). 223\u2013233","author":"Feldt Robert","year":"2016","unstructured":"Robert Feldt, Simon Poulding, David Clark, and Shin Yoo. 2016. Test set diameter: Quantifying the diversity of sets of test cases. In 2016 IEEE international conference on software testing, verification and validation (ICST). 223\u2013233."},{"key":"e_1_2_1_17_1","volume-title":"2008 IEEE international conference on software testing verification and validation workshop. 178\u2013186","author":"Feldt Robert","year":"2008","unstructured":"Robert Feldt, Richard Torkar, Tony Gorschek, and Wasif Afzal. 2008. Searching for cognitively diverse tests: Towards universal test diversity metrics. In 2008 IEEE international conference on software testing verification and validation workshop. 178\u2013186."},{"key":"e_1_2_1_18_1","unstructured":"Martin Fowler. 2013. PageObject. http:\/\/martinfowler.com\/bliki\/PageObject.html Accessed: 2024-09-01"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1109\/ASE.2017.8115667"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICST46399.2020.00035"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSTW.2013.19"},{"key":"e_1_2_1_22_1","doi-asserted-by":"crossref","first-page":"e1827","DOI":"10.1002\/stvr.1827","article-title":"Fostering the diversity of exploratory testing in web applications","volume":"32","author":"Leveau Julien","year":"2022","unstructured":"Julien Leveau, Xavier Blanc, Laurent R\u00e9veill\u00e8re, Jean-R\u00e9my Falleri, and Romain Rouvoy. 2022. Fostering the diversity of exploratory testing in web applications. Software Testing, Verification and Reliability, 32, 5 (2022), e1827.","journal-title":"Software Testing, Verification and Reliability"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1109\/TR.2019.2892230"},{"key":"e_1_2_1_24_1","volume-title":"Proceedings of the fourth Berkeley symposium on mathematical statistics and probability","volume":"4","author":"R\u00e9nyi Alfr\u00e9d","year":"1961","unstructured":"Alfr\u00e9d R\u00e9nyi. 1961. On measures of entropy and information. In Proceedings of the fourth Berkeley symposium on mathematical statistics and probability, volume 1: contributions to the theory of statistics. 4, 547\u2013562."},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1109\/TSMCC.2004.843247"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1109\/TKDE.2013.53"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2012.18"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1002\/j.1538-7305.1948.tb01338.x"},{"key":"e_1_2_1_29_1","doi-asserted-by":"crossref","first-page":"1765","DOI":"10.3390\/e12071765","article-title":"Entropy and information approaches to genetic diversity and its expression: genomic geography","volume":"12","author":"Sherwin William B","year":"2010","unstructured":"William B Sherwin. 2010. Entropy and information approaches to genetic diversity and its expression: genomic geography. Entropy, 12, 7 (2010), 1765\u20131798.","journal-title":"Entropy"},{"key":"e_1_2_1_30_1","volume-title":"Measuring the diversity of a test set with distance entropy","author":"Shi Qingkai","year":"2015","unstructured":"Qingkai Shi, Zhenyu Chen, Chunrong Fang, Yang Feng, and Baowen Xu. 2015. Measuring the diversity of a test set with distance entropy. IEEE transactions on reliability, 65, 1 (2015), 19\u201327."},{"key":"e_1_2_1_31_1","unstructured":"testingautomated usi. 2024. https:\/\/github.com\/testingautomated-usi\/adaptive-tg-qgrams"},{"key":"e_1_2_1_32_1","first-page":"101","article-title":"A Critique and Improvement of the \"CL\" Common Language Effect Size Statistics of McGraw and Wong","volume":"25","author":"Vargha Andr\u00e1s","year":"2000","unstructured":"Andr\u00e1s Vargha and Harold D. Delaney. 2000. A Critique and Improvement of the \"CL\" Common Language Effect Size Statistics of McGraw and Wong. Journal of Educational and Behavioral Statistics, 25, 2 (2000), 101\u2013132. issn:10769986, 19351054 http:\/\/www.jstor.org\/stable\/1165329","journal-title":"Journal of Educational and Behavioral Statistics"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.2307\/3001968"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2022.3171295"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1109\/QRS.2016.49"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE43902.2021.00048"}],"container-title":["Proceedings of the ACM on Software Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3715740","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T15:22:19Z","timestamp":1750346539000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3715740"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,6,19]]},"references-count":36,"journal-issue":{"issue":"FSE","published-print":{"date-parts":[[2025,6,19]]}},"alternative-id":["10.1145\/3715740"],"URL":"https:\/\/doi.org\/10.1145\/3715740","relation":{},"ISSN":["2994-970X"],"issn-type":[{"value":"2994-970X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,6,19]]}}}