Automation of Integration Testing of RESTful Hypermedia Systems: A Model-driven Approach

Henry Vu, Tobias Fertig, Peter Braun

Abstract

The proper design of Representational State Transfer (REST) APIs is not trivial because developers have to deal with a flood of recommendations and best practices, especially the proper application of the hypermedia constraint requires some decent experience. Furthermore, testing RESTful APIs is a missing topic within literature. Especially hypermedia testing is not mentioned at all. Manual hypermedia testing is time-consuming and hard to maintain. Testing a hypermedia API requires many test cases that have similar structure, especially when different user roles and error cases are considered. In order to tackle this problem, we proposed a Model-driven Testing (MDT) approach for hypermedia systems using the metamodel within our existing Model Driven Software Development (MDSD) approach. This work discusses challenges and results of hypermedia testing for RESTful APIs using MDT techniques that were discovered within our research. MDT allows white-box testing, hence covering complete program structure and behavior of the generated application. By doing this, we are able to achieve a high automated test coverage. Moreover, any runtime behavior deviated from the metamodel reveals bugs within the generators.

Download


Paper Citation


in Harvard Style

Vu H., Fertig T. and Braun P. (2018). Automation of Integration Testing of RESTful Hypermedia Systems: A Model-driven Approach.In Proceedings of the 14th International Conference on Web Information Systems and Technologies - Volume 1: APMDWE, ISBN 978-989-758-324-7, pages 404-411. DOI: 10.5220/0006932004040411


in Bibtex Style

@conference{apmdwe18,
author={Henry Vu and Tobias Fertig and Peter Braun},
title={Automation of Integration Testing of RESTful Hypermedia Systems: A Model-driven Approach},
booktitle={Proceedings of the 14th International Conference on Web Information Systems and Technologies - Volume 1: APMDWE,},
year={2018},
pages={404-411},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0006932004040411},
isbn={978-989-758-324-7},
}


in EndNote Style

TY - CONF

JO - Proceedings of the 14th International Conference on Web Information Systems and Technologies - Volume 1: APMDWE,
TI - Automation of Integration Testing of RESTful Hypermedia Systems: A Model-driven Approach
SN - 978-989-758-324-7
AU - Vu H.
AU - Fertig T.
AU - Braun P.
PY - 2018
SP - 404
EP - 411
DO - 10.5220/0006932004040411