Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Exploring Fuzz-Driven Property-Based Testing in Pharmacovigilance Software
Uppsala University, Disciplinary Domain of Science and Technology, Mathematics and Computer Science, Department of Information Technology, Computer Systems.
2025 (English)Independent thesis Advanced level (professional degree), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

Pharmacovigilance software, systems used to monitor the safety of pharmaceutical products, plays a critical role in safeguarding public health. Ensuring the correctness of such systems is essential, yet software testing remains a complex and time-consuming task. One approach to automated testing is Property-Based Testing (PBT), which verifies that defined properties hold for a wide range of randomly generated inputs. However, PBT suffers from key limitations: it generates inputs without learning from previous executions and requires manual implementation of custom input generators for complex data structures, an effort that is both time-consuming and error-prone. This thesis explores the use of coverage-guided fuzzing as an alternative input generation method to enhance the effectiveness of PBT, particularly within the context of pharmacovigilance software and the .NET ecosystem. The aim is to improve bug-finding capabilities through feedback-driven input exploration while simultaneously removing the need for manual generator development. To evaluate, a case study was conducted to compare traditional PBT with two fuzzing-extended variants, Coverage-Guided Property-Based Testing (CGPBT) and Structure-Aware Coverage-Guided Property-Based Testing (SAPBT). Results showed that coverage guidance significantly improved performance in scenarios with sparse input conditions, while also revealing that structure-aware mutations were essential even for relatively simple data structures. Consequently, only SAPBT was applied to preexisting property tests within the real-world pharmacovigilance system, System X. Although no actual bugs were uncovered by SAPBT, the false positive results revealed weaknesses in the definitions of the data structures used. These false positives were caused by implicit assumptions in the property tests that were not explicitly encoded in the structural definitions of the data types. However, SAPBT also encountered technical challenges, particularly with the complexity of integration. In conclusion, property-based testing enhanced with structure-aware coverage-guided input generation shows strong potential for improving test effectiveness. This thesis presents both a proof of concept and a functional prototype of the approach within the .NET ecosystem. However, the current implementation remains time-intensive, impractical for broader use, and limited to executing only a single property test at a time. To enable wider adoption, future work should focus on transforming the prototype into a more scalable and efficient tool, developed as a .NET package.

Place, publisher, year, edition, pages
2025.
Series
UPTEC X ; 25034
Keywords [en]
Software Testing, Property-Based Testing, Fuzzing, Pharmacovigilance Software
National Category
Software Engineering
Identifiers
URN: urn:nbn:se:uu:diva-563267OAI: oai:DiVA.org:uu-563267DiVA, id: diva2:1981750
External cooperation
Uppsala Monitoring Centre
Educational program
Molecular Biotechnology Engineering Programme
Supervisors
Examiners
Available from: 2025-08-13 Created: 2025-07-05 Last updated: 2025-08-13Bibliographically approved

Open Access in DiVA

fulltext(655 kB)255 downloads
File information
File name FULLTEXT01.pdfFile size 655 kBChecksum SHA-512
2520e45721e1a116aafa2a5a087784726fa7e11a1973712b94d9c3f9d4356e1fc50e7ceaa57023af406d009c38d8deeee8c09cfc0a44543167d07d3af22d356f
Type fulltextMimetype application/pdf

By organisation
Computer Systems
Software Engineering

Search outside of DiVA

GoogleGoogle Scholar
Total: 259 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 452 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf