JavaScript SBST Heuristics to Enable Effective Fuzzing of NodeJS Web APIs
Open Access
- 28 September 2023
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Software Engineering and Methodology
- Vol. 32 (6) , 1-29
Abstract
JavaScript is one of the most popular programming languages. However, its dynamic nature poses several challenges to automated testing techniques. In this paper, we propose an approach and open-source tool support to enable white-box testing of JavaScript applications using Search-Based Software Testing (SBST) techniques. We provide an automated approach to collect search-based heuristics like the common Branch Distance and to enable Testability Transformations . To empirically evaluate our results, we integrated our technique into the EvoMaster test generation tool, and carried out analyses on the automated system testing of RESTful and GraphQL APIs. Experiments on eight Web APIs running on NodeJS show that our technique leads to significantly better results than existing black-box and grey-box testing tools, in terms of code coverage and fault detection.Keywords
Funding Information
- European Research Council
- European Union’s Horizon 2020 Research and Innovation Programme (864972)
This publication has 42 references indexed in Scilit:
- A Hitchhiker's guide to statistical tests for assessing randomized algorithms in software engineeringSoftware Testing, Verification and Reliability, 2012
- FlagRemoverACM Transactions on Software Engineering and Methodology, 2011
- Testability transformation based on equivalence of target statementsNeural Computing and Applications, 2011
- Evolutionary testing of software with function-assigned flagsJournal of Systems and Software, 2009
- Empirical evaluation of a nesting testability transformation for evolutionary testingACM Transactions on Software Engineering and Methodology, 2009
- Search‐based software test data generation: a surveySoftware Testing, Verification and Reliability, 2004
- Search-based software engineeringInformation and Software Technology, 2001
- ADTEST: a test data generation suite for Ada software systemsIEEE Transactions on Software Engineering, 1997
- An empirical study of the reliability of UNIX utilitiesCommunications of the ACM, 1990
- Automated software test data generationIEEE Transactions on Software Engineering, 1990