Simulation-Based Metamorphic Testing for System Verification of Cyber-Physical Systems - A Systematic Assessment of Seamless EV Charging Systems Under Dynamic Conditions

dc.contributor.authorCronvall, Oscar
dc.contributor.authorPettersson, Linus
dc.contributor.departmentChalmers tekniska högskola / Institutionen för data och informationstekniksv
dc.contributor.departmentChalmers University of Technology / Department of Computer Science and Engineeringen
dc.contributor.examinerGay, Gregory
dc.contributor.supervisorErlenhov, Linda
dc.date.accessioned2026-09-01T08:25:17Z
dc.date.issued2026
dc.date.submitted
dc.description.abstractThe increasing adoption of electric vehicles has driven demand for reliable public charging infrastructure, as well as the backend software systems that support it. Seamless charging services, which link charging sessions to vehicles by correlating asynchronous event streams from charge point operators and vehicle systems, introduce a verification challenge that conventional testing approaches are not well suited to address. There is no precomputable ground truth against which each matching decision can be evaluated, and reproducing relevant adversarial conditions through physical testing is not feasible at scale. This thesis presents the design, implementation, and evaluation of a simulation based metamorphic testing framework that addresses these constraints. The frame work combines discrete-event simulation, which generates realistic and adversarial event sequences in a reproducible execution environment, with metamorphic relations, which act as a substitute oracle by defining behavioral properties that must hold across related executions. Eight metamorphic relations that characterize correct vehicle-to-session matching behavior were derived through a four-step process consisting of source code analysis, brainstorming, peer review with the development team, and consolidation. The framework was evaluated against the Seamless Charging Service operated by WirelessCar AB across 18 scenarios. The simulator generated 467 validation reports. Six of the eight metamorphic relations held across the dataset, while two, matching exclusivity and match quality monotonicity, revealed 43 violations across 11 reports. These violations were traceable to structural inconsistencies in the system’s observed behavior, despite the system producing zero incorrect matches across 998 attempted matches. No confirmed false positives were observed across 397 control executions. The findings demonstrate that simulation-based metamorphic testing can detect meaningful behavioral deviations in event-driven cyber-physical systems without access to a traditional test oracle. At the same time, the strength of this conclusion is bounded by the conditions the framework was able to execute: the densest concurrency and event ordering scenarios did not complete within the configured execution budget, leaving the system’s behaviour under the highest-stress conditions unverified.
dc.identifier.coursecodeDATX05
dc.identifier.urihttps://hdl.handle.net/20.500.12380/312335
dc.language.isoeng
dc.setspec.uppsokTechnology
dc.subjectmetamorphic testing, discrete-event simulation, cyber-physical systems, verification, oracle problem, electric vehicle charging, event-driven systems
dc.titleSimulation-Based Metamorphic Testing for System Verification of Cyber-Physical Systems - A Systematic Assessment of Seamless EV Charging Systems Under Dynamic Conditions
dc.type.degreeExamensarbete för masterexamensv
dc.type.degreeMaster's Thesisen
dc.type.uppsokH
local.programmeSoftware engineering and technology (MPSOF), MSc

Ladda ner

Original bundle

Visar 1 - 1 av 1
Hämtar...
Bild (thumbnail)
Namn:
CSE 26-167 OC LP.pdf
Size:
15.57 MB
Format:
Adobe Portable Document Format

License bundle

Visar 1 - 1 av 1
Hämtar...
Bild (thumbnail)
Namn:
license.txt
Size:
2.35 KB
Format:
Item-specific license agreed upon to submission
Description: