跳到主要导航 跳到搜索 跳到主要内容

Handling Web Service Interactions in Fuzzing with Search-Based Mock-Generation

  • Susruthan Seran
  • , Man Zhang*
  • , Onur Duman
  • , Andrea Arcuri
  • *此作品的通讯作者
  • Kristiania University of Applied Sciences
  • Glasgow Caledonian University
  • Oslo Metropolitan University

科研成果: 期刊稿件文章同行评审

摘要

Testing large and complex enterprise software systems can be a challenging task. This is especially the case when the functionality of the system depends on interactions with other external services over a network (e.g., external web services accessed through REST API calls). Although several techniques in the research literature have been shown to be effective at generating test cases in a good number of different software testing contexts, dealing with external services is still a major research challenge. In industry, a common approach is to mock external web services for testing purposes. However, generating and configuring mock web services can be a very time-consuming task, e.g., external services may not be under the control of the same developers of the tested application, making it challenging to identify the external services and simulate various possible responses. In this article, we present a novel search-based approach aimed at fully automated mocking of external web services as part of white-box, search-based fuzzing. We rely on code instrumentation to detect all interactions with external services, and how their response data is parsed. We then use such information to enhance a search-based approach for fuzzing. The tested application is automatically modified (by manipulating DNS lookups) to rather interact with instances of mock web servers. The search process not only generates inputs to the tested applications but also automatically configures responses in those mock web server instances, aiming at maximizing code coverage and fault-finding. An empirical study on four open source REST APIs from EMB, and one industrial API from an industry partner, shows the effectiveness of our novel techniques (i.e., in terms of line coverage and fault detection).

源语言英语
文章编号51
期刊ACM Transactions on Software Engineering and Methodology
35
2
DOI
出版状态已出版 - 21 1月 2026

学术指纹

探究 'Handling Web Service Interactions in Fuzzing with Search-Based Mock-Generation' 的科研主题。它们共同构成独一无二的学术指纹。

引用此