Towards Model-driven Hypermedia Testing for RESTful Systems

Henry Vu, Tobias Fertig, Peter Braun

2017

Abstract

Testing RESTful systems is a missing topic within literature. Especially hypermedia testing is not mentioned at all. We discuss the challenges of hypermedia testing that were discovered within our research. We will differ between client-side and server-side challenges since REpresentational State Transfer (REST) describes a client-server system. Therefore, both sides have to be considered. Hypermedia tests for the server have to ensure that there is no response without hypermedia links. However, the client also has to be hypermedia compliant. Thus, we propose to simulate a server update to check whether the client breaks. Since we use Model-driven Software Development (MDSD) to generate RESTful systems we also propose a model-driven approach for hypermedia testing. This allows us to generate tests for a server based on its underlying model. Moreover, we can build a crawler to verify our generated servers and to test all hypermedia links for different user roles. Any modification to the model can result in a server update, which can be used to test hypermedia clients.

References

  1. Amundsen, M. (2015). Learning Client Hypermedia from the Ground Up. http://amundsen.com/talks/2015-06- ndcoslo/2015-06-ndcoslo-slides.pdf. Last accessed on Mar 17, 2017.
  2. Choi, W., Necula, G., and Sen, K. (2013). Guided GUI Testing of Android Apps with Minimal Restart and Approximate Learning. In Proceedings of the 2013 ACM SIGPLAN International Conference on Object Oriented Programming Systems Languages & Applications, OOPSLA 7813, pages 623-640, New York, NY, USA. ACM.
  3. Fertig, T. and Braun, P. (2015). Model-driven Testing of RESTful APIs. In Proceedings of the 24th International Conference on World Wide Web Companion, WWW 7815 Companion, pages 1497-1502, Republic and Canton of Geneva, Switzerland. International World Wide Web Conferences Steering Committee.
  4. Fielding, R. (2000). REST: Architectural Styles and the Design of Network-based Software Architectures. Doctoral dissertation, University of California, Irvine.
  5. Fielding, R. (2008). REST APIs must be hyper-text driven. http://roy.gbiv.com/untangled/2008/rest-apismust-be-hypertext-driven. Last accessed on Mar 17, 2017.
  6. Hambling, B. and van Goethem, P. (2013). User Acceptance Testing: A Step-by-step Guide. BCS Learning & Development Limited.
  7. Hernández, A. G. and García, M. N. M. (2010). A Formal Definition of RESTful Semantic Web Services. In Proceedings of the First International Workshop on RESTful Design, WS-REST 7810, pages 39-45, New York, NY, USA. ACM.
  8. Hevery, M., Musser, J., Rexer, P., Sarid, U., and Lazarov, I. (2017). RAML. http://raml.org/. Last accessed on Mar 17, 2017.
  9. Josuttis, N. M. (2007). SOA in Practice - The Art of Distributed System Design. ”O'Reilly Media, Inc.”, Sebastopol, 1. aufl. edition.
  10. Prescod, P. (2002). REST and the Real World. http://www.xml.com/pub/a/ws/2002/02/20/rest.html. Last accessed on Mar 17, 2017.
  11. Schreibmann, V. and Braun, P. (2015). Model-Driven Development of RESTful APIs. In Proceedings of the 11th International Conference of Web Information Systems and Technologies, pages 5-14. INSTICC, SciTePress.
  12. Vinoski, S. (2008). RESTful Web Services Development Checklist. IEEE Internet Computing, 12(6):96-95.
  13. Webber, J., Parastatidis, S., and Robinson, I. (2010). REST in Practice - Hypermedia and Systems Architecture. ”O'Reilly Media, Inc.”, Sebastopol.
  14. Zuzak, I., Budiselic, I., and Delac, G. (2011). Web Engineering: 11th International Conference, ICWE 2011, Paphos, Cyprus, June 20-24, 2011, chapter Formal Modeling of RESTful Systems Using Finite-State Machines, pages 346-360. Springer Berlin Heidelberg.
Download


Paper Citation


in Harvard Style

Vu H., Fertig T. and Braun P. (2017). Towards Model-driven Hypermedia Testing for RESTful Systems . In Proceedings of the 13th International Conference on Web Information Systems and Technologies - Volume 1: WEBIST, ISBN 978-989-758-246-2, pages 340-343. DOI: 10.5220/0006353403400343


in Bibtex Style

@conference{webist17,
author={Henry Vu and Tobias Fertig and Peter Braun},
title={Towards Model-driven Hypermedia Testing for RESTful Systems},
booktitle={Proceedings of the 13th International Conference on Web Information Systems and Technologies - Volume 1: WEBIST,},
year={2017},
pages={340-343},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0006353403400343},
isbn={978-989-758-246-2},
}


in EndNote Style

TY - CONF
JO - Proceedings of the 13th International Conference on Web Information Systems and Technologies - Volume 1: WEBIST,
TI - Towards Model-driven Hypermedia Testing for RESTful Systems
SN - 978-989-758-246-2
AU - Vu H.
AU - Fertig T.
AU - Braun P.
PY - 2017
SP - 340
EP - 343
DO - 10.5220/0006353403400343