Metamorphic Relation Patterns for Query-Based Systems
Authors:
- 1 May 2019
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 24-31
Abstract
Searching and displaying data based on user queries is a key feature of most software applications such as information systems, web portals, web APIs, and data analytic platforms. The large volume of data managed by these types of systems, henceforth called query-based systems (QBS), makes them extremely hard to test due to the difficulty to assess whether the output of a query is correct, the so-called oracle problem. Metamorphic testing has proved to be a very effective approach to alleviate the oracle problem in QBS, enabling the detection of bugs in data repositories, large e-commerce sites, and some of the most used software applications worldwide such as Google Search and YouTube. We have observed, however, that the metamorphic relations used to test different types of QBS are very similar, regardless of their domain, since all of them exploit standard query features such as filtering and ordering. Inspired by this finding, in this paper we present a catalogue of metamorphic relation patterns to assist testers in the identification and inference of metamorphic relations in QBS. For the definition of the patterns we resorted to the root of most query languages: relational algebra. We show how the proposed patterns help in the identification of metamorphic relations in the e-commerce platform PrestaShop, the email service Gmail, and the mobile application of video streaming HBO.Keywords
This publication has 17 references indexed in Scilit:
- A Survey on Metamorphic TestingIEEE Transactions on Software Engineering, 2016
- Dataset Coverage for Testing Machine Learning Computer Programs2016
- Metamorphic Testing for Software Quality Assessment: A Study of Search EnginesIEEE Transactions on Software Engineering, 2015
- Metamorphic Model-Based Testing Applied on NASA DAT -- An Experience Report2015
- Dynamic Inference of Likely Metamorphic Properties to Support Differential Testing2015
- The Oracle Problem in Software Testing: A SurveyIEEE Transactions on Software Engineering, 2015
- Using machine learning techniques to detect metamorphic relations for programs without test oracles2013
- Automated functional testing of online search servicesSoftware Testing, Verification and Reliability, 2010
- On Testing Non-Testable ProgramsThe Computer Journal, 1982
- A relational model of data for large shared data banksCommunications of the ACM, 1970