Enhancing Search-based Testing with Testability Transformations for Existing APIs

Author:

Arcuri Andrea1ORCID,Galeotti Juan P.2ORCID

Affiliation:

1. Kristiania University College and Oslo Metropolitan University, Oslo, Norway

2. Depto. de Computación, FCEyN-UBA, and ICC, CONICET-UBA, Argentina

Abstract

Search-based software testing (SBST) has been shown to be an effective technique to generate test cases automatically. Its effectiveness strongly depends on the guidance of the fitness function. Unfortunately, a common issue in SBST is the so-called flag problem , where the fitness landscape presents a plateau that provides no guidance to the search. In this article, we provide a series of novel testability transformations aimed at providing guidance in the context of commonly used API calls (e.g., strings that need to be converted into valid date/time objects). We also provide specific transformations aimed at helping the testing of REST Web Services. We implemented our novel techniques as an extension to EvoMaster , an SBST tool that generates system-level test cases. Experiments on nine open-source REST web services, as well as an industrial web service, show that our novel techniques improve performance significantly.

Funder

European Research Council

UBACYT-2018

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference56 articles.

1. [n.d.].OpenAPI/Swagger. Retrieved from https://swagger.io/. [n.d.].OpenAPI/Swagger. Retrieved from https://swagger.io/.

2. [n.d.]. RestAssured. Retrieved from https://github.com/rest-assured/rest-assured. [n.d.]. RestAssured. Retrieved from https://github.com/rest-assured/rest-assured.

3. [n.d.]. Spring Framework. Retrieved from https://spring.io. [n.d.]. Spring Framework. Retrieved from https://spring.io.

4. A Systematic Review of the Application and Empirical Investigation of Search-Based Test Case Generation

Cited by 12 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Random Testing and Evolutionary Testing for Fuzzing GraphQL APIs;ACM Transactions on the Web;2024-01-05

2. On the Impact of Tool Evolution and Case Study Size on SBSE Experiments: A Replicated Study with EvoMaster;Search-Based Software Engineering;2023-12-04

3. Search-Based Mock Generation of External Web Service Interactions;Search-Based Software Engineering;2023-12-04

4. Testing RESTful APIs: A Survey;ACM Transactions on Software Engineering and Methodology;2023-11-24

5. Enhancing White-Box Search-Based Testing of RESTful APIs;2023 IEEE 34th International Symposium on Software Reliability Engineering Workshops (ISSREW);2023-10-09

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3