Validation of dynamic simulation models using metamorphic testing and given-when-then patterns

Research output: Chapter in Book/Conference proceedingPublished conference proceedingScientificpeer-review

1 Downloads (Pure)

Abstract

As the maritime industry evolves, there is a focus on simulation-driven design, testing, and validation using novel technology solutions. Simulation models designed to represent the behaviour and features of real systems are increasingly available for testing during the early phase of the full development, but in many cases, their testing suffers from the availability of test oracles. Metamorphic testing has become increasingly used in different application domains as an approach to test systems when an explicit test oracle is unavailable. In order to increase its adoption by domain experts, we combine metamorphic testing with Behaviour Driven development for the verification and validation of simulation models. The tool-based approach facilitates automated test generation based on domain-specific custom metamorphic transformations to generate meaningful test inputs for metamorphic input relations. The method also uses features and scenarios extracted from system requirements and domain expertise to define metamorphic output relations. By automating test generation based on system behaviours as features,scenarios, metamorphic transformations, and output candidates for metamorphic relations in a Gherkin-like format, the tool enables practitioners to verify models based on domain-specific constraints and metamorphic relation checks. Our preliminary evaluation shows that the tool can detect MR violations in the simulation models under test and that automated test generation provides improved coverage.
Original languageEnglish
Title of host publicationProceedings of the 16th International Modelica&FMI Conference, September 8 – 10, 2025, Lucerne University of Applied Sciences and Arts (HSLU) 
PublisherLinköping University Electronic Press
Pages139-146
Volume218
ISBN (Print)978-91-8118-266-8
DOIs
Publication statusPublished - 24 Oct 2025
MoE publication typeA4 Article in a conference publication
EventProceedings of the 16th International Modelica&FMI Conference - Lucerne, Switzerland
Duration: 8 Sept 202510 Sept 2025
Conference number: 16
https://www.fbk.eu/en/event/34322/16th-international-modelica-fmi-conference/

Publication series

NameLinköping Electronic Conference Proceedings
PublisherLinköping University Electronic Press
Number218
ISSN (Print)1650-3686
ISSN (Electronic)1650-3740

Conference

ConferenceProceedings of the 16th International Modelica&FMI Conference
Country/TerritorySwitzerland
CityLucerne
Period08/09/2510/09/25
Internet address

Keywords

  • Metamorphic testing
  • Simulation
  • FMI
  • FMU
  • Validation

Fingerprint

Dive into the research topics of 'Validation of dynamic simulation models using metamorphic testing and given-when-then patterns'. Together they form a unique fingerprint.

Cite this