🤖 AI Summary
This work addresses a key challenge in behavior-driven development (BDD): how to compose alternative behavioral scenarios—expressed as BDD textual specifications—into integrated models for model-driven testing while preserving their original test capabilities. The authors propose a disjunctive composition approach that formalizes BDD scenarios as transition systems and defines their composition via symbolic semantics, ensuring that the resulting system is test-equivalent to the original scenarios with respect to failure behaviors. This is the first method to incorporate symbolic semantics into BDD scenario composition, providing a rigorous guarantee of test equivalence. Empirical evaluation on industrial case studies demonstrates the approach’s effectiveness, confirming that it accurately models integrated system behavior without compromising the original testing power.
📝 Abstract
We introduce a compositional approach to model-based test generation in Behavior-Driven Development (BDD). BDD is an agile methodology in which system behavior is specified through textual scenarios that, in our approach, are translated into transition systems used for model-based testing. This paper formally defines disjunction composition, to combine BDD transition systems that represent alternative system behaviors. Disjunction composition allows for modeling and testing the integrated behavior while ensuring that the testing power of the original set of scenarios is preserved. This is proved using a symbolic semantics for BDD transition systems, with the property that the symbolic equivalence of two BDD transition systems guarantees that they fail the same test cases. Also, we demonstrate the potential of disjunction composition by applying the composition in an industrial case study.