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

Resource-based Test Case Generation for RESTful Web Services

  • Kristiania University College

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

Nowadays, RESTful web services are widely used for building enterprise applications. In this paper, we propose an enhanced search-based method for automated system test generation for RESTful web services. This method exploits domain knowledge on the handling of HTTP resources, and it is integrated in the Many Independent Objectives (MIO) search algorithm. MIO is an evolutionary algorithm specialized for system test case generation with the aim of maximizing code coverage and fault finding. Our approach builds on top of the MIO by implementing a set of effective templates to structure test actions, based on the semantics of HTTP methods, used to manipulate the web services' resources. We propose four novel sampling strategies for the test cases that can use one or more of these test actions. The strategies are further supported with a set of new, specialized mutation operators that take into account the use of these resources in the generated test cases. We implemented our approach as an extension to the EvoMaster tool, and evaluated it on seven open-source RESTful web services. The results of our empirical study show that our novel, resource-based sampling strategies obtain a significant improvement in performance over the baseline MIO (up to +42% coverage).

源语言英语
主期刊名GECCO 2019 - Proceedings of the 2019 Genetic and Evolutionary Computation Conference
出版商Association for Computing Machinery, Inc
1426-1434
页数9
ISBN(电子版)9781450361118
DOI
出版状态已出版 - 13 7月 2019
已对外发布
活动2019 Genetic and Evolutionary Computation Conference, GECCO 2019 - Prague, 捷克共和国
期限: 13 7月 201917 7月 2019

出版系列

姓名GECCO 2019 - Proceedings of the 2019 Genetic and Evolutionary Computation Conference

会议

会议2019 Genetic and Evolutionary Computation Conference, GECCO 2019
国家/地区捷克共和国
Prague
时期13/07/1917/07/19

学术指纹

探究 'Resource-based Test Case Generation for RESTful Web Services' 的科研主题。它们共同构成独一无二的学术指纹。

引用此