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
The Logic of Glass Box Test Coverage: A formal model for coverage through weakest preconditions
KTH, School of Electrical Engineering and Computer Science (EECS).
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesisAlternative title
Logiken bakom testtäckning i glasbox : En formell modell för täckning genom svagaste förhandsvillkor (Swedish)
Abstract [en]

Testing is an essential activity of software development, and despite the vast use of testing by the industry, little formal reasoning can be found in the scientific literature of the field. The project presents an extensively formal approach to glass box testing from the underlying language to the graph model of a program, its execution, and reasoning on preconditions for its paths. In this paper, programs are modelled as executable Control Flow Graphs and test requirements are paths of the graphs. We study a logic to infer the weakest precondition of a given path of the graph. Weakest preconditions let us reason on relations between test requirements, which in turn let us optimise the test requirements set. The model uses a minimal language with the integer data type and first-order logic. This language can be extended as defined in this work to suit the need of the reader. Several metatheorems are proved for any language extending the minimal language we provide, including soundness, completeness under the restrictions to obtain a weakest precondition formula, and undecidability.

Abstract [sv]

Testning är en viktig aktivitet inom programvaruutveckling, och trots den omfattande användningen av testning inom industrin finns det få formella resonemang i den vetenskapliga litteraturen inom området. Projektet presenterar ett omfattande formellt tillvägagångssätt för glasbox-testning från det underliggande språket till grafmodellen för ett program, dess exekvering och resonemang om förutsättningar för dess vägar. I detta dokument modelleras program som exekverbara kontrollflödesgrafer och testkrav är banor i graferna. Vi studerar en logik för att härleda det svagaste förhandsvillkoret för en given väg i grafen. Svagaste förhandsvillkor låter oss resonera om relationer mellan testkrav, vilket i sin tur låter oss optimera testkravsuppsättningen. Modellen använder ett minimalt språk med datatypen heltal och första ordningens logik. Detta språk kan utökas enligt definitionen i detta arbete för att passa läsarens behov. Flera metateorem bevisas för alla språk som utvidgar det minimala språk vi tillhandahåller, inklusive sundhet, fullständighet under restriktionerna för att få en svagaste förhandsvillkorformel och oavgörbarhet.

Place, publisher, year, edition, pages
2025. , p. 88
Series
TRITA-EECS-EX ; 2025:58
Keywords [en]
Software testing, Glass box testing, Test requirement redundancy, Mathemat- ical models, Proof systems, Control-flow graphs
Keywords [sv]
Programvara testning, Glasbox-testning, Testkrav redundans, Matematiska modeller, Bevissystem, Kontrollflödesdiagram
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-361861OAI: oai:DiVA.org:kth-361861DiVA, id: diva2:1949047
Supervisors
Examiners
Available from: 2025-04-08 Created: 2025-04-01 Last updated: 2025-04-08Bibliographically approved

Open Access in DiVA

fulltext(1541 kB)28 downloads
File information
File name FULLTEXT02.pdfFile size 1541 kBChecksum SHA-512
39967352842833e238065d59345f7ffacf02dcae2b2f2849eb0389e4e3812284391c0ed993afc1fa58e15ef7af9aa6e04a8c5805fc61465e90cfbdb1f6ed33a0
Type fulltextMimetype application/pdf

By organisation
School of Electrical Engineering and Computer Science (EECS)
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 28 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: 388 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