[Paper Review] Practical Model-driven Data Generation for System Testing.
This paper proposes a hybrid model-driven approach combining metaheuristic search and Satisfiability Modulo Theories (SMT) to generate complex, constraint-satisfying test data for system-level testing. By leveraging UML/OCL models and delegating tasks to exploit the complementary strengths of both techniques, the method achieves superior scalability and applicability on industrial case studies compared to existing approaches.
The ability to generate test data is often a necessary prerequisite for automated software testing. For the generated data to be fit for its intended purpose, the data usually has to satisfy various logical constraints. When testing is performed at a system level, these constraints tend to be complex and are typically captured in expressive formalisms based on first-order logic. Motivated by improving the feasibility and scalability of data generation for system testing, we present a novel approach, whereby we employ a combination of metaheuristic search and Satisfiability Modulo Theories (SMT) for constraint solving. Our approach delegates constraint solving tasks to metaheuristic search and SMT in such a way as to take advantage of the complementary strengths of the two techniques. We ground our work on test data models specified in UML, with OCL used as the constraint language. We present tool support and an evaluation of our approach over three industrial case studies. The results indicate that, for complex system test data generation problems, our approach presents substantial benefits over the state of the art in terms of applicability and scalability.
Motivation & Objective
- To address the challenge of generating complex, constraint-satisfied test data for system-level software testing.
- To improve the feasibility and scalability of test data generation in industrial-scale systems with intricate logical constraints.
- To integrate metaheuristic search and SMT solving in a complementary way to overcome limitations of either technique alone.
- To support test data generation grounded in UML class diagrams and OCL invariants for realistic system modeling.
- To evaluate the approach on real-world industrial case studies to demonstrate practical applicability and performance gains.
Proposed method
- The approach uses UML class diagrams as the structural model and OCL as the constraint language to specify logical invariants.
- Constraint solving is delegated between metaheuristic search and SMT solvers based on problem characteristics and computational efficiency.
- Metaheuristic search explores the search space for feasible test data configurations, especially for non-linear or complex constraints.
- SMT solvers are used to efficiently validate and solve decidable logical constraints expressed in first-order logic with theories.
- The system dynamically balances the workload by offloading tractable constraints to SMT and complex, combinatorial parts to metaheuristics.
- Tool support is implemented to automate the generation pipeline from UML/OCL models to concrete test data instances.
Experimental results
Research questions
- RQ1Can a hybrid approach combining metaheuristic search and SMT solving effectively generate complex test data for system-level testing?
- RQ2How does the proposed method compare to existing approaches in terms of scalability and constraint satisfaction coverage?
- RQ3To what extent can the complementary strengths of metaheuristic search and SMT improve feasibility for complex, real-world test data generation?
- RQ4How effective is the approach in handling intricate constraints expressed in OCL over UML models in industrial settings?
- RQ5What is the performance and applicability of the method across diverse industrial case studies?
Key findings
- The proposed approach outperforms state-of-the-art techniques in terms of scalability for complex system test data generation.
- The hybrid use of metaheuristic search and SMT enables effective handling of both combinatorial search and decidable logical constraints.
- The method achieved high constraint satisfaction rates across all three industrial case studies, demonstrating practical applicability.
- The integration of UML and OCL models with automated test data generation proved effective in realistic, large-scale system testing scenarios.
- The evaluation showed significant improvements in test data generation time and success rate compared to purely SMT- or metaheuristic-based approaches.
- The approach is particularly effective in scenarios involving complex inter-object constraints that are difficult to express or solve with a single technique.
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.