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

检测和缓解REST API模糊测试中的不稳定性

Detecting and Mitigating Flakiness in REST API Fuzzing

Beihang University(北京航空航天大学);Kristiania University of Applied Sciences and Oslo Metropolitan University(克里斯蒂亚纳应用科学大学与奥斯陆都会大学)

Man Zhang, Chongyang Shen, Andrea Arcuri, Tao Yue

AI总结:

本文研究了EvoMaster生成的REST API测试中的不稳定性,通过36个REST API的实证研究,分析了不稳定性来源,并提出FlakyCatch工具来检测和缓解不稳定性。

摘要:

测试不稳定性是工业中常见的问题,阻碍了自动化构建和测试工作流的可靠性。现有研究主要集中在单元测试和小型集成测试,而系统级测试如REST API的不稳定性研究较少。本文研究了EvoMaster生成的REST API测试中的不稳定性,通过36个REST API的实证研究,分析了不稳定性来源,并基于结果提出FlakyCatch工具来检测和缓解不稳定性。实验结果表明,FlakyCatch在白盒和黑盒模糊测试生成的测试中有效检测和处理不稳定性。

英文摘要:

Test flakiness is a common problem in industry, which hinders the reliability of automated build and testing workflows. Most existing research on test flakiness has primarily focused on unit and small-scale integration tests. In contrast, flakiness in system-level testing such as REST APIs are comparatively under-explored. A large body of literature has been dedicated to the topic of fuzzing REST APIs, whereas relatively little attention has been paid to detecting and possibly mitigating negative effects of flakiness in this context. To fill this major gap, in this paper, we study the flakiness of tests generated by one of the popularly applied REST API fuzzer in the literature, namely EvoMaster, conduct empirical studies with a corpus of 36 REST APIs to understand flakiness of REST APIs. Based on the results of the empirical studies, we categorize and analyze flakiness sources by inspecting near 3000 failing tests. Based on the understanding, we propose FlakyCatch to detect and mitigate flakiness in REST APIs and empirically evaluate its performance. Results show that FlakyCatch is effective in detecting and handling flakiness in tests generated by white-box and black-box fuzzers.

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

↑