Segura Rueda, SergioAlonso Valenzuela, Juan CarlosMartín López, AlbertoDurán Toro, AmadorTroya Castilla, JavierRuiz Cortés, Antonio2022-11-072022-11-072022Segura Rueda, S., Alonso, J.C., Martín López, A., Durán Toro, A., Troya, J. y Ruiz Cortés, A. (2022). Automated Generation of Metamorphic Relations for Query-Based Systems. En MET 2022: IEEE/ACM 7th International Workshop on Metamorphic Testing (48-55), Pittsburgh, PA, USA: IEEE Computer Society.978-1-4503-9307-2https://hdl.handle.net/11441/139069Searching and displaying data based on user queries is a pervasive feature of most software applications such as information systems, web portals, and web APIs. The large volume of data managed by these types of systems, henceforth called query-based systems (QBSs), makes them extremely hard to test due to the difficulty to assess whether the output of a query is correct, the so-called test oracle problem. Metamorphic testing has proved to be a very effec tive approach to alleviate the oracle problem in QBSs, by exploiting the relations among multiple executions of the QBS under test, so called metamorphic relations (MRs). However, the identification of MRs mostly remains a manual and creative task, limiting the appli cability of the approach. In this paper, we propose a method for the automated generation of MRs in QBSs starting from a lightweight specification of the query parameters of the system. Evaluation results show that hundreds of MRs can be automatically identified in real-world systems like IMDb, SkyScanner, or YouTube in just a few secondsapplication/pdf8engAttribution-NonCommercial-NoDerivatives 4.0 Internacionalhttp://creativecommons.org/licenses/by-nc-nd/4.0/Metamorphic testingMetamorphic relationOracle problemAutomated Generation of Metamorphic Relations for Query-Based Systemsinfo:eu-repo/semantics/conferenceObjectinfo:eu-repo/semantics/openAccesshttps://doi.org/10.1145/3524846.3527338