From BDD Scenarios to Test Case Generation

Tannaz Zameni*, Petra van den Bos, Jan Tretmans, Johan Foederer, Arend Rensink

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionAcademicpeer-review

26 Downloads (Pure)

Abstract

Model-based testing (MBT) offers the possibility of automatic generation and execution of tests. However, it is not yet widely used in industry due to the difficulty in creating and maintaining models. On the other hand, Behavior Driven Development (BDD) is becoming more popular in the agile development process to achieve a common understanding of the system under development among stakeholders and to automate testing. However, BDD scenarios are written in human language and are usually not precise enough. Moreover, tests extracted from BDD scenarios are too short and incomplete; they only cover a very small part of the system. Our goal is to combine these two approaches to benefit from the usability of BDD and the test automation capabilities of MBT. In this paper, we first define a formal model of scenarios that we call BDD Transition Systems, second, we create more complete tests by composing scenarios (model composition), and finally, we generate and execute tests automatically. We demonstrate the applicability of this approach in a real-world example: an industrial printer.

Original languageEnglish
Title of host publicationProceedings - 2023 IEEE 16th International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2023
Place of PublicationPiscataway, NJ
PublisherIEEE
Pages36-44
Number of pages9
ISBN (Electronic)979-8-3503-3335-0
ISBN (Print)979-8-3503-3336-7
DOIs
Publication statusPublished - 29 May 2023
Event16th IEEE International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2023 - Dublin, Ireland
Duration: 16 Apr 202320 Apr 2023
Conference number: 16

Conference

Conference16th IEEE International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2023
Abbreviated titleICSTW 2023
Country/TerritoryIreland
CityDublin
Period16/04/2320/04/23

Keywords

  • Behavior-Driven Development
  • Compositional testing
  • Model-Based testing
  • 2023 OA procedure

Fingerprint

Dive into the research topics of 'From BDD Scenarios to Test Case Generation'. Together they form a unique fingerprint.

Cite this