A Realistic Simulator for Regression Testingwithin an Embedded Defence System
2025 (English)Independent thesis Basic level (professional degree), 10 credits / 15 HE credits
Student thesis
Abstract [en]
Ensuring robustness and reliability in embedded defence systems requires extensive testing, often under conditions that are difficult or costly to replicate in the field. This thesis presents the design, implementation, and evaluation of a proof-of-concept regression testing system for Product A, a system within SAAB’s embedded defence portfolio. To address the limitations of traditional field and code-based testing, a simulator was developed to emulate Product A’s operational environment, replicating both normal and faulty behaviours of connected subsystems. The system focuses on serial communication using protocols such as Universal Asynchronous Receiver/Transmitter (UART) and Recommended Standard 232 (RS-232), combined with error-detection mechanisms like Cyclic Redundancy Check (CRC) to ensure data integrity. A complete hardware and software architecture was implemented, utilizing STM32 microcontrollers, level converters, logic analysers, and a suite of development tools including STM32CubeMX. The simulator’s modular design allows for configurable fault injection and automated regression testing, enabling systematic evaluation of Product A’s error handling and delay tolerance. Extensive testing was performed, generating comprehensive communication logs and performance metrics. These results were analysed using statistical methods and visualized to highlight system stability and error resilience. The findings demonstrate the simulator’s capability to reliably detect faults and performance anomalies, validating its effectiveness as a regression testing tool within embedded defence applications. The thesis further discusses development challenges such as integration of hardware and software components, debugging complex communication protocols, and managing project scope under time constraints. The presented solution offers a scalable, repeatable, and automated approach to regression testing, contributing to more efficient verification processes in embedded defence systems.
Place, publisher, year, edition, pages
2025.
Keywords [en]
Embedded Systems, Regression Testing, Serial Communication, Error Detection, STM32 Microcontroller, System Simulation.
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:oru:diva-121816OAI: oai:DiVA.org:oru-121816DiVA, id: diva2:1976093
Subject / course
Computer Engineering
Supervisors
Examiners
2025-06-242025-06-242025-06-24Bibliographically approved