[Paper Review] Morphy: A Datamorphic Software Test Automation Tool
This paper introduces Morphy, a test automation tool that formalizes software testing as a composition of test entities and test morphisms—transformations on those entities. By enabling automated test generation, execution, and strategy composition via datamorphism combinations, Morphy supports reusable, composable, and scriptable testing for both traditional software and AI applications, as demonstrated in three case studies including face recognition.
This paper presents an automated tool called Morphy for datamorphic testing. It classifies software test artefacts into test entities and test morphisms, which are mappings on testing entities. In addition to datamorphisms, metamorphisms and seed test case makers, Morphy also employs a set of other test morphisms including test case metrics and filters, test set metrics and filters, test result analysers and test executers to realise test automation. In particular, basic testing activities can be automated by invoking test morphisms. Test strategies can be realised as complex combinations of test morphisms. Test processes can be automated by recording, editing and playing test scripts that invoke test morphisms and strategies. Three types of test strategies have been implemented in Morphy: datamorphism combination strategies, cluster border exploration strategies and strategies for test set optimisation via genetic algorithms. This paper focuses on the datamorphism combination strategies by giving their definitions and implementation algorithms. The paper also illustrates their uses for testing both traditional software and AI applications with three case studies.
Motivation & Objective
- To address the challenge of automating testing for AI applications, which are difficult and expensive to test using conventional methods.
- To enable reusability and composability of test components such as seed test case generators, datamorphisms, and metamorphisms across different software projects.
- To provide a framework for automating entire test processes through recording, editing, and replaying test scripts composed of morphism invocations.
- To extend the datamorphic testing paradigm with a structured tool that supports test strategy composition and integration of diverse testing techniques.
- To demonstrate the applicability of the approach to both traditional software and AI-based systems through real-world case studies.
Proposed method
- The framework classifies testing artifacts into test entities (e.g., test cases, test suites, programs under test) and test morphisms—functions that map between entities.
- Test morphisms include seed test case makers, datamorphisms (data transformations), metamorphisms (correctness assertions), and auxiliary morphisms like filters, metrics, and executers.
- Test strategies are implemented as composite compositions of morphisms, including datamorphism combination strategies, cluster border exploration, and genetic algorithm-based test set optimization.
- Test processes are automated via a script facility that records and replays sequences of morphism and strategy invocations through a GUI.
- The tool integrates existing testing techniques—such as fuzzing, mutation testing, combinatorial testing, and model-based generation—by wrapping them as morphisms.
- The implementation supports declarative test specification, where morphisms are declared and executed via a GUI or script, enabling high-level test process automation.
Experimental results
Research questions
- RQ1How can test automation be generalized across diverse software systems, especially AI applications, by abstracting test artifacts into reusable entities and morphisms?
- RQ2In what ways can test morphisms be composed to form complex test strategies that improve test coverage and effectiveness?
- RQ3How can test processes be automated through recording and replaying sequences of morphism and strategy invocations?
- RQ4To what extent can existing testing techniques be encapsulated as morphisms and integrated into a unified testing framework?
- RQ5How effective are datamorphism combination strategies in generating meaningful test data for both traditional and AI-based software?
Key findings
- Morphy successfully automates basic testing activities through a GUI-driven invocation of test morphisms, enabling non-expert users to perform testing without writing code.
- The tool supports the creation and reuse of test strategies via modular composition of morphisms, enhancing test code reusability and composability.
- Test scripts recorded from interactive sessions allow full automation of test processes, including test set management, execution, and result analysis.
- Datamorphism combination strategies were effectively applied in three case studies: triangle classification, trigonometric functions, and face recognition, demonstrating utility across diverse domains.
- The integration of existing testing techniques—such as random testing, mutation testing, and combinatorial testing—as morphisms in Morphy enables a unified, extensible testing environment.
- The case study on face recognition showed that Morphy could effectively leverage existing test data and morphisms to validate AI model behavior, supporting regression and quality assurance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.