Vis enkel innførsel

dc.contributor.authorZhang, Man
dc.contributor.authorMarculescu, Bogdan
dc.contributor.authorArcuri, Andrea
dc.date.accessioned2022-04-20T08:35:01Z
dc.date.available2022-04-20T08:35:01Z
dc.date.created2021-06-03T16:47:14Z
dc.date.issued2021
dc.identifier.citationEmpirical Software Engineering. 2021, 26 .en_US
dc.identifier.issn1382-3256
dc.identifier.issn1573-7616
dc.identifier.urihttps://hdl.handle.net/11250/2991533
dc.description.abstractNowadays, RESTful web services are widely used for building enterprise applications. REST is not a protocol, but rather it defines a set of guidelines on how to design APIs to access and manipulate resources using HTTP over a network. In this paper, we propose an enhanced search-based method for automated system test generation for RESTful web services, by exploiting domain knowledge on the handling of HTTP resources. The proposed techniques use domain knowledge specific to RESTful web services and a set of effective templates to structure test actions (i.e., ordered sequences of HTTP calls) within an individual in the evolutionary search. The action templates are developed based on the semantics of HTTP methods and are used to manipulate the web services’ resources. In addition, we propose five novel sampling strategies with four sampling methods (i.e., resource-based sampling) for the test cases that can use one or more of these templates. The strategies are further supported with a set of new, specialized mutation operators (i.e., resource-based mutation) in the evolutionary search that take into account the use of these resources in the generated test cases. Moreover, we propose a novel dependency handling to detect possible dependencies among the resources in the tested applications. The resource-based sampling and mutations are then enhanced by exploiting the information of these detected dependencies. To evaluate our approach, we implemented it as an extension to the EVOMASTER tool, and conducted an empirical study with two selected baselines on 7 open-source and 12 synthetic RESTful web services. Results show that our novel resource-based approach with dependency handling obtains a significant improvement in performance over the baselines, e.g., up to +130.7% relative improvement (growing from +27.9% to +64.3%) on line coverage.en_US
dc.description.sponsorshipThis work is supported by the Research Council of Norway (project on Evolutionary Enterprise Testing, grant agreement No 274385). Open Access funding provided by Kristiania University College.en_US
dc.language.isoengen_US
dc.publisherSpringeren_US
dc.relation.ispartofseriesEmpirical Software Engineering;26, Article number: 76 (2021)
dc.rightsNavngivelse 4.0 Internasjonal*
dc.rights.urihttp://creativecommons.org/licenses/by/4.0/deed.no*
dc.subjectSearch-based software testingen_US
dc.subjectRESTful APIsen_US
dc.subjectWeb servicesen_US
dc.subjectTest case generationsen_US
dc.titleResource and dependency based test case generation for RESTful Web servicesen_US
dc.typePeer revieweden_US
dc.typeJournal articleen_US
dc.description.versionpublishedVersionen_US
dc.rights.holder© The Author(s) 2021en_US
dc.source.articlenumber76en_US
cristin.ispublishedtrue
cristin.fulltextoriginal
cristin.qualitycode2
dc.identifier.doihttps://doi.org/10.1007/s10664-020-09937-1
dc.identifier.cristin1913622
dc.source.journalEmpirical Software Engineeringen_US
dc.source.volume26en_US
dc.source.issue26en_US
dc.source.pagenumber61en_US
dc.relation.projectNorges forskningsråd: 274385en_US
dc.relation.projectNotur/NorStore: NN9476Ken_US


Tilhørende fil(er)

Thumbnail

Denne innførselen finnes i følgende samling(er)

Vis enkel innførsel

Navngivelse 4.0 Internasjonal
Med mindre annet er angitt, så er denne innførselen lisensiert som Navngivelse 4.0 Internasjonal