Conventional mutation-based fault injection techniques generally produce single-line syntactic faults, which often fail to represent realistic errors at the functional requirement level because requirement context, execution paths, and functional dependencies are not considered. To address this limitation, this study proposes scenario-driven fault injection (SDFI), a scenario-based fault insertion approach that derives faults from functional requirements and test cases. SDFI integrates operational fault localization, web fault taxonomy, fault injection patterns, and functional scenario mapping to produce targeted fault injections at relevant code locations, resulting in a realistic bug dataset with multi-line faults. An experimental evaluation on a real web application produced 29 mutants, achieving a fault detection rate of 89.29% based on the RIP model. Further analysis shows that the generated mutants replicate common real-world bug characteristics, including logic errors, validation anomalies, inter-function data propagation, and multi-line faults affecting client–server application behavior. These results demonstrate that SDFI is effective in producing realistic bug datasets for evaluating software testing quality, improving test case effectiveness, and supporting further research on requirement-based fault realism.
Collaboration network of the authors
3 authors ·
3 co-authorship links
Hover or tap a name to highlight its co-authors. Double-click to open the author's page.
Politeknik Negeri Bandung
Different organisations
Same organisation
Affiliation unknown
Thicker line = more joint articles · bigger circle = more articles
Show as table
Co-author
Organisation
Joint articles
Affiliations come from OpenAlex; journal OAI-PMH metadata carries none. Authors without an OpenAlex ID are matched by name, which can merge or split people.