Content area

Abstract

Automated test data generation for unit testing C/C++ functions using concolic testing has been known for improving software quality while reducing human testing effort. However, concolic testing could face challenging problems when tackling complex practical projects. This paper proposes a concolic-based method named Automated Unit Testing and Stubbing (AUTS) for automated test data and stub generation. The key idea of the proposed method is to apply the concolic testing approach with three major improvements. Firstly, the test data generation, which includes two path search strategies, not only is able to avoid infeasible paths but also achieves higher code coverage. Secondly, AUTS generates appropriate values for specialized data types to cover more test scenarios. Finally, the proposed method integrates automatic stub preparation and generation to reduce the costs of human effort. The method even works on incomplete source code or missing libraries. AUTS is implemented in a tool to test various C/C++ industrial and open-source projects. The experimental results show that the proposed method significantly improves the coverage of the generated test data in comparison with other existing methods.

Details

Business indexing term
Title
Automated test data generation and stubbing method for C/C++ embedded projects
Author
Nguyen Tung, Lam 1 ; Binh Duong, Nguyen Vu 1 ; Le, Khoi Nguyen 1 ; Hung, Pham Ngoc 1 

 Vietnam National University, University of Engineering and Technology, Hanoi, Vietnam (GRID:grid.267852.c) (ISNI:0000 0004 0637 2083) 
Publication title
Volume
31
Issue
2
Pages
52
Publication year
2024
Publication date
Nov 2024
Publisher
Springer Nature B.V.
Place of publication
Dordrecht
Country of publication
Netherlands
ISSN
09288910
e-ISSN
15737535
Source type
Scholarly Journal
Language of publication
English
Document type
Journal Article
Publication history
 
 
Online publication date
2024-06-10
Milestone dates
2024-05-24 (Registration); 2024-01-30 (Received); 2024-05-24 (Accepted)
Publication history
 
 
   First posting date
10 Jun 2024
ProQuest document ID
3066135649
Document URL
https://www.proquest.com/scholarly-journals/automated-test-data-generation-stubbing-method-c/docview/3066135649/se-2?accountid=208611
Copyright
© The Author(s), under exclusive licence to Springer Science+Business Media, LLC, part of Springer Nature 2024. Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
Last updated
2024-10-29
Database
ProQuest One Academic