Cristin-resultat-ID: 1943723
Sist endret: 19. januar 2022, 12:16
NVI-rapporteringsår: 2021
Resultat
Vitenskapelig artikkel
2021

Adaptive Hypermutation for Search-Based System Test Generation: A Study on REST APIs with EvoMaster

Bidragsytere:
  • Man Zhang og
  • Andrea Arcuri

Tidsskrift

ACM Transactions on Software Engineering and Methodology
ISSN 1049-331X
e-ISSN 1557-7392
NVI-nivå 2

Om resultatet

Vitenskapelig artikkel
Publiseringsår: 2021
Publisert online: 2021
Volum: 31
Hefte: 1
Open Access

Beskrivelse Beskrivelse

Tittel

Adaptive Hypermutation for Search-Based System Test Generation: A Study on REST APIs with EvoMaster

Sammendrag

REST web services are widely popular in industry, and search techniques have been successfully used to automatically generate system-level test cases for those systems. In this article, we propose a novel mutation operator which is designed specifically for test generation at system-level, with a particular focus on REST APIs. In REST API testing, and often in system testing in general, an individual can have a long and complex chromosome. Furthermore, there are two specific issues: (1) fitness evaluation in system testing is highly costly compared with the number of objectives (e.g., testing targets) to optimize for; and (2) a large part of the genotype might have no impact on the phenotype of the individuals (e.g., input data that has no impact on the execution flow in the tested program). Due to these issues, it might be not suitable to apply a typical low mutation rate like 1/n (where n is the number of genes in an individual), which would lead to mutating only one gene on average. Therefore, in this article, we propose an adaptive weight-based hypermutation, which is aware of the different characteristics of the mutated genes. We developed adaptive strategies that enable the selection and mutation of genes adaptively based on their fitness impact and mutation history throughout the search. To assess our novel proposed mutation operator, we implemented it in the EvoMaster tool, integrated in the MIO algorithm, and further conducted an empirical study with three artificial REST APIs and four real-world REST APIs. Results show that our novel mutation operator demonstrates noticeable improvements over the default MIO. It provides a significant improvement in performance for six out of the seven case studies, where the relative improvement is up to +12.09% for target coverage, +12.69% for line coverage, and +32.51% for branch coverage.

Bidragsytere

Man Zhang

  • Tilknyttet:
    Forfatter
    ved School of Economics, Innovation, and Technology ved Høyskolen Kristiania

Andrea Arcuri

  • Tilknyttet:
    Forfatter
    ved Institutt for informasjonsteknologi ved OsloMet - storbyuniversitetet
  • Tilknyttet:
    Forfatter
    ved School of Economics, Innovation, and Technology ved Høyskolen Kristiania
1 - 2 av 2