Testing compositionality
Year: 2026
Type: article
Abstract: Compositionality supports the manipulation of large systems by working on their components. For model-based testing, this means that large systems can be tested by modelling and testing their components: passing tests for all components implies passing tests for the whole system. In previous work [1], we defined mutual acceptance for specification models and proved that this property is a sufficient condition for compositionality in model-based testing. In this paper, we present three approaches for checking mutual acceptance in practice. In the first approach, we give an algorithm to verify mutual acceptance on specifications, from which compositionality can be derived for all correct implementations of these specifications. The second approach uses two model-based testing procedures to check for mutual acceptance. Testing the correctness of a large system can be decomposed into testing each component implementation for uioco-conformance to its component specification, and testing each component implementation for environmental conformance to the specification of its environment. The third approach optimises the second by combining the two testing procedures into one. We argue that the three approaches go from general, but expensive for the first, to more efficient for the third, but at the expense of genericity. This allows picking the most suitable approach for a given application and situation, trading in more generalisable results for faster runtime. One such application of this theory is retesting after an update of a component, where it is shown that the more general approach requires less retesting.
Source: Science of Computer Programming
Authors: Gijs van Cuyck, Lars van Arragon, Jan Tretmans
Institution: Radboud University Nijmegen
Language: English
Subfield: Software
Field: Computer Science
Domain: Physical Sciences
Open Access status: hybrid
Estimated APC paid: $2,600
OpenAlex ID: W4400480782
