Test Case Generation from Graph Transformation Systems Using Deep Reinforcement Learning
Ghasemi, S.
ORCID: 0000-0001-8174-1422, Rafe, V.
ORCID: 0000-0003-3935-5151, Mehrabi, M.
ORCID: 0009-0006-6461-0790 , Heckel, R.
ORCID: 0000-0003-4719-0772 & Al-Azzoni, I.
ORCID: 0000-0002-2758-8145 (2025).
Test Case Generation from Graph Transformation Systems Using Deep Reinforcement Learning.
In:
Graph Transformations.
18th International Conference, ICGT 2025, Held as Part of STAF 2025, 11 - 12 Jun 2025, Koblenz, Germany.
doi: 10.1007/978-3-031-94706-3_9
Abstract
Graph transformations can be used to specify and analyse software systems by modelling operations as rules and generating the labelled transition system (LTS) as a representation of system behaviour. Model-based testing (MBT) often uses model checking over LTS to discover paths that satisfy certain test requirements. Significant challenges include the size of the state space and the complexity of model checking. Meta-heuristic search-based approaches try to cope with this problem by exploring only a small portion of the LTS to produce paths that cover maximal test objectives. Despite acceptable results in small case studies, these approaches also do not scale well. MBT approaches using graph transformation face the same limitations as LTS-based MBT in general, exacerbated by the more complex nature of graph-based LTS. However, apart from the behavioural information of the LTS, here we are able to use the graph structure of states and rules to define and evaluate test objectives. This enables a new method based on deep reinforcement learning to generate test suites for systems specified through graph transformations. We use the reward/penalty mechanism of reinforcement learning to optimise the selection of moves within the state space, enabling the generation of test cases based on prior decisions. Our goal is to achieve greater coverage of test objectives while minimising the size of the test cases. The method has been implemented in GROOVE, an open-source toolset for designing and model checking graph transformation systems. Experimental results in well-known case studies demonstrate that our approach generates test cases with improved coverage scores while reducing the cost of testing compared to existing works.
| Publication Type: | Conference or Workshop Item (Paper) |
|---|---|
| Additional Information: | This version of the contribution has been accepted for publication, after peer review but is not the Version of Record and does not reflect post-acceptance improvements, or any corrections. The Version of Record is to be available online at: https://doi.org/10.1007/978-3-031-94706-3_9. Use of this Accepted Version is subject to the publishers Accepted Manuscript terms of use https://www.springernature.com/gp/open-research/policies/accepted-manuscript-terms |
| Publisher Keywords: | Model Checking-based Testing, Test Suite Generation, Graph Transformation Systems, Deep Reinforcement Learning, Neural Network |
| Subjects: | Q Science > QA Mathematics > QA75 Electronic computers. Computer science Q Science > QA Mathematics > QA76 Computer software |
| Departments: | School of Science & Technology School of Science & Technology > Department of Computer Science |
| SWORD Depositor: |
This document is not freely accessible until 13 June 2026 due to copyright restrictions.
To request a copy, please use the button below.
Request a copyExport
Downloads
Downloads per month over past year
Metadata
Metadata